If the widget references the automation program module itself, the domain and the address for
HG.WebApp.Data._CurrentModule will be
HomeAutomation.HomeGenie.Automation (default programs domain) and
1002 (program ID).
An automation program domain/address cannot be changed.
If you want to use custom domain/address, then your program has to register a virtual module using the
Program.AddVirtualModule or
Program.AddVirtualModules function.
See
http://www.homegenie.it/docs_api/advanced.html for further informations about
Virtual Modules.
When you register a virtual module, this will be added in the modules list under the domain of your choice (eg. Garage.Doors).
So, for your specific case, add these lines in the trigger code:
Program.Setup(()=>
{
Program.AddVirtualModule("Garage.Doors", "1", "Sensor", "homegenie/generic/doorwindow");
});
After that, remember to pick the module "Garage.Doors.1" instead of the automation program.
This will make
HG.WebApp.Data._CurrentModule reference the virtual module domain/address that will thus match the one you registered in the
WebServiceCallReceived.
Cheers,
g.