HomeGenie Forum
Automation Program Plugins and Wizard Scripting => Help => Topic started by: DutchHans on February 11, 2015, 09:37:23 PM
-
I have tasker on my Android and I want to query all door and window sensors if they are closed.
I want to activate a program that checks them and then send a notification to my phone. I read about WebserviceCallReceived to start a HG-program with Tasker.
But how?
I read about it in the Helper Class Reference, but the examplecode comes with an error when its compiled.. I have read the code from other programs.. like the alarm system, but thats not what I want... No Control.On, Control.Off or Toggle... just an execution from a very simple program..
Can anybody put me on the right track?
Thanks in advance.
Hans
-
You could check the state of the sensors and use one of the push scripts to send the notification to your phone. You don't need to use your phone to schedule a check, use the script on your HG system instead.
-
I agree with bkenobi; drive the door and window checking with a program in HG and have it send an email to you.
Take a look at the alarm program again, you basically need the while (Program.IsEnabled)loop. Change the logic to check the door and window modules and modify the send email section as appropriate.