How to capture when a Hello Home phrase executes in SmartApp


(Ron S) #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?


(Alex) #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.


(Ron S) #3

Hats off to you, Alex! :slight_smile:

So basically there is no “proper” way to subscribe to a hello home phrase actions.


(Bruce) #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…


(Ron S) #5

Darn. :frowning: 20.5 characters


(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy) #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