Hi. I’m using Broadlink RM Bridge to control my A/C using @af950833’s code as a starter. Basically, I find that defining buttons as momentary buttons rather than a switch seems to be a better way for me. So I have something like
I can send those commands fine. Now I’m trying to work with IFTTT so that when the door opens, say, have the A/C turn off. When I get to IFTTT setup (in Smartthings app), my custom device doesn’t show up. I believe IFTTT only shows devices with some specific capabilities (switches, motion sensors, contact sensors, etc.) but not momentary buttons. Just curious if there’s a way I can have the THAT part be a custom command.
This thread seems to suggest that a SmartApp could do that… but the code seems to have been removed. Any pointers would be very much appreciated.
Then I should be able to create a device with one switch, right? That sounds reasonable enough. Thanks for the pointer!
I guess my next question is how do I create a device with many momentary buttons. One way is to create each button as a switch, then create a composite device. That seems a bit too cumbersome though. What I had in mind was having IFTTT calling a custom command in a device handler directly. Guess that’s not supported?