Hi, I am working on an application to control my home alarm system. I have been previously using an application called smartrules to manage the alarm. This is brilliant, I would just like to implement this automation in my own application. (Android)
At the moment, I am just using a webhook to grab the status and set the status, but how do I program in groovy to take the inputs and devices to create a simple rule for checking sensor status then triggering this etc.
There is no information regarding this in the developer’s section, I am very confident in programming, I just cannot find how to get the rules to be saved onto the smart things cloud, like the smart rules app does.
Any pointers or help would be much appreciated.