I add some new code for link sensors state to Squeeze app:
On trigger Setup:
Program.AddFeature("Switch,Sensor,DoorWindow", "squeezebox.EnabledSensor", "Enable Squeezebox Activation");
and on the cycle:
if (Modules.InDomain("HomeAutomation.Squeezebox").WithAddress("2").Get().Parameter("Status.Level").Value == "100") {
var squeezeModules = Modules.WithFeature("Squeezebox.EnabledSensor");
squeezeModules.Each((module)=>{
Program.Notify("SqueezeBox", module.Instance.Name);
if (module.IsOfDeviceType("Switch,Sensor,DoorWindow"))
{
}
return true;
}
);
}
but when I active a sensor, the cycle doesn t catch this module.
Dani, can you help me? very thx