gkl_sf
(George)
May 7, 2016, 5:48am
117
I also like having the mode displayed without having to tap the hamburger menu, and so here’s a device/app to switch modes and show current mode in the Things list
I put together a very simple virtual device and helper app in order to quickly switch modes (and see which mode is active). The modes are hard-coded in the device, since can’t change the UI dynamically. Devices can’t do setLocationMode, thus the need for the helper. The one I’m posting here has Home, Away, and Night as the modes. The screenshot has Office instead of Home. Thought somebody might find it helpful.
[image]
Installation Instructions
Install the DH in the IDE
click “My Device Handlers”
click “Create New Device Handler”
click “From Code”
paste the code for the device
click “Create”
click “My Devices”
click “New Device”
enter “Name”
enter “Device Network ID” (any number, I recommend > 991)
choose “Type” “Mode Switch”
choose “Location”
click “Create”
Install the SmartApp
c…
1 Like