cdj wrote: Hi again,
I've just setup an automation program that send an sms when a door is opened :
public void Setup()
{
EventHelper.ModuleChangedHandler((o, m, p) =>
{
Console.WriteLine(m.Address + " in program id "+ Program.ProgramId.ToString()+ " property "+ p.Property + " value " + p.Value);
if ((m.Domain == Domains.VIRTUAL) && (m.Address == "N8S0") && (p.Property == "Sensor.DoorWindow") && (p.Value == "1"))
{
SmsHelper.SendSms("+39XXXX","Porta di casa aperta");
}
return true;
});
}
public void Run()
{
}
and it works perfectly.
But when i activate or deactivate program it seems to rest active. and arrive sms regulary....
In other words, in this moment my automation program is DISABLED but SMS arrive if i open the door....
Thanks
Dario
I've noticed the same yesterday. If I disable program EventHelper stays active (or even all program??). It helps only if I restart server. I will fix that in next release.
The following user(s) said Thank You: cdj, sharonlei
Hello
It seems that I have the same problem.
and one question on how to set the delay between sending each sms? so to me sent a maximum of 1 per 15 minutes
Sorry for my bad English