Quantcast
Channel: HomeSeer Message Board
Viewing all articles
Browse latest Browse all 4847

Toggle Device On / Off

$
0
0
Trying to think of various ways to toggle a device On/Off from HS Touch.

Normally, I would just use a HS Touch device action to toggle device On/Off but in this case, it doesn't seem to work. Device On and Device Off both work.

I may need a script
Code:

Get Device State
If Device On then
Set Device Off
Else
Set Device On

Just wondering if anyone has done it differently or already has a code snippet?

Viewing all articles
Browse latest Browse all 4847

Trending Articles