So, I looked everywhere for a decent device handler for the Leeo that could be controllable through IFTTT commands. I didn’t find one that I liked, so I’m working on my own. I am by no means experienced; this is my absolute first shot at creating a device handler. It’s still a work in progress, but as I found that there are several people who are interested in the same thing I am, I thought I would post here.
Currently, triggering smoke, carbon monoxide, and water alerts is possible through ifttt. I know that at least the smoke and carbon monoxide alerts are registered within SHM if you attach this device type as a smoke detector. I have not tested the water.
The triggers work like this:
send command “strobe” to get a smoke alert
send command “siren” to get a carbon monoxide alert.
send command “both” to get a water alert.
I went nuts and added in a bunch of capabilities that I’m beginning to realize are pointless. I was going to use lock/unlock and close/open for the smoke and CO, but that seems slightly more unintuitive than what I described above. I’m considering keeping the lock and unlock commands, because as of right now, I haven’t tested to see if sending the off command to the alarm would also turn off the switch, which is controlled by the bottom tile for lighting. I would think that IFTTT is sending “off” to the alarm functionality, but I have not had a chance to play with that. If anyone would like to report back on that, it would be much appreciated. I’m wondering about this, because I also don’t know if dismissing the alert from SHM that pops up will revert The Leeo DT to deactivated. If it does not, I’m sure most people would like an easier method of doing that, which I assume would make use of IFTTT again.
The switch itself is not attached to anything in particular, but I’m using it, again through IFTTT, to change my Leeo’s color depending on the SHM mode. Placed by the backdoor, I know if I can expect a siren to go off when I let my dog out in the morning. The color changing attribute on this tile was intended to work through the artik cloud service, to send a command to change the leeo to a corresponding color. Every time the command was sent to IFTTT, an issue with the Leeo service was reported. I cannot even get artik to sync devices anymore, so I’ll be looking into using webcore to accomplish that. Again, any help with that is much appreciated.
The last thing, I’ll be needing the most assistance with. When I’ve got the time I definitely research as much as I can to find out how to get humidity and temperature readings to display where the the empty squares are. Sending a command, through webcore, to updateHumidity or updateTemperature, I at least got a preview of how these things will look. The temperature will dictate the background of the temperature display when this is actually working. My lack of understanding is preventing me from getting the information from a webhook to display here. I’ll be contacting more advanced users to see if they can help me with this.
To those of you who said you wanted to test, and to anyone else who is interested, I’m curious about your thoughts.
Colors - are they alright?
Capabilities - leave or remove lock/unlock and open/close (and what these commands should do, if they should do anything related to Leeo, or just function as a lock and a door which could trigger other events?)
Anything I’m missing?
Here’s the link