- Posted on
Sat May 25, 2019 12:36 pm
-
FlyingDiver
offline
-
- Posts: 7265
- Joined: Jun 07, 2014
- Location: Southwest Florida, USA
OK, to make it work with Siri (and I assume Alexa, but I'm not sure) you need a status variable to associate with the virtual device.
So, create an Indigo variable. Edit the Virtual Device settings. Enable status, and pick the variable from the list.
Now, you need TWO triggers. One to set the variable to true, another to set it to False.
Create a Trigger of type "Device State Changed". Pick the Harmony Hub device and the "Current Activity" state. Select "Becomes Equal to" and put in "PowerOff". Leave Condition to Always. Set the action to Variable Actions->Modify Variable, pick your status variable, then "Set to false". Save.
Repeat previous step, but this time you want "Becomes Equal to" to be the name of the activity you're starting. And set the status variable to True.
There's probably an easier way to do this with one of the plugins that does smarter virtual devices.
I really should add this directly to the plugin....