openLuup: SmartSwitch plugin
-
I can't believe I never did it... but it's done now!
@akbooer On a related note, what do we put in for the ID if we have a plugin that never was in the Vera App Marketplace and has no Vera plugin ID?
-
@toggledbits said in openLuup: SmartSwitch plugin:
@akbooer On a related note, what...
Something unique, not numeric, so SmartSwitch, for example.
-
In the device list we have:
Is it easy to add "Zone 10" just under "Mode: Off" ?
Zone 10 is coming from the settings "tab"This way, it will be easy to see which devices trigger the smartswitch without having to do them 1 by 1 and check in the Settings tab...
-
The Settings tab is all JavaScript stuff, not Lua. Although the device panel data is stored in a device variable (and set in Lua) I'm not sure where to find the relevant information. I'll have to look more closely.
-
@dest said in openLuup: SmartSwitch plugin:
I never use multiple devices
OK, you'll find an updated Lua file, v2.0.3, here:
It lists the name of the first trigger device. In the event that you do use more than one trigger, there will be an ellipsis "..." added after the first name (to give at least some visual indication that something is going on.)
I've done nothing to guard against the line overflowing or wrapping because of a long name.
-
thanks Ak
-
Ah, OK, my misunderstading. It's not a device I've used myself, and I didn't test it with more than one SmartSwitch.
..but at least it shows this should be possible in Lua, without any additional JavaScript.
-
It works now!
I got the right device name and if no device are specified I have a "?"
thanks -
akbooerreplied to toggledbits on Jul 26, 2021, 4:44 PM last edited by akbooer Jul 26, 2021, 12:45 PM
@toggledbits said in openLuup: SmartSwitch plugin:
I can't believe I never did it... but it's done now!
Is it just me? ... I can't see it in the Alt App Store.
-
I can't see the SmartSwitch plugin in the app store list in the console. And the sorting seems case sensitive, so the openWeather plugin appears last when you do a list "All Apps" in the store list. So you also get "RaZberry (ALPHA)" before "Rachio". A case conversion before sort would be good.