smart
(Ron S)
January 19, 2015, 7:58pm
1
A very basic question. How do you subscribe to hello home actions in a SmartApp? Not to be confused with mode change.
Suppose I have hello home phrases like:
“Lights on at Sunset”
“Turn on Family Room Lights”
Is there a way to capture when these events happens in your code?
625alex
(Alex, ActionTiles Control Panel)
January 19, 2015, 8:21pm
2
Create a virtual switch that corresponds to a phrase. When phrase is executed, have it trigger a switch and subscribe to switch events as usual.
It’s a hack, but so is everything else.
4 Likes
smart
(Ron S)
January 19, 2015, 8:29pm
3
Hats off to you, Alex!
So basically there is no “proper” way to subscribe to a hello home phrase actions.
bravenel
(Bruce)
January 20, 2015, 1:48am
4
Not only is there no “proper” way, there is no way at all. Because, Hello Home phrases are just apps. The Tile Buttons, momentary and on/off, are built-in device types to accomplish this. The phrase turns them on or off, your app has subscribed to those events, the rest is up to your imagination…
1 Like
tgauchat
(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy)
February 2, 2015, 3:35am
6
Can you tell us your use case??
Some of these SmartThings “quirks” (or “inflexibilities”) are, pardon the cliché, actually features.
More precisely, some of our peeves are intentional in the design of the platform.
The problem is that there is insufficient guideline documentation to help us understand what is a bug vs feature vs. workaround vs. proper usage…r