Search found 2 matches
- Saturday 19 August 2017 19:58
- Forum: LUA
- Topic: Lua - loop through devices
- Replies: 6
- Views: 2707
Re: Lua - loop through devices
You can try to use this: local S1 = domoticz.devices.('OB_MS6') local S2 = domoticz.devices.('LO_FGMS001') local S3 = domoticz.devices.('KP_FGMS001') local S4 = domoticz.devices.('CH_FGMS001') If (S1.state == 'Off' and S2.state == 'Off' and S3.state == 'Off' and S4.state == 'Off') then -- (if all ...
- Friday 11 August 2017 22:19
- Forum: LUA
- Topic: Unifi controller - Presence detection
- Replies: 21
- Views: 6311
Re: Unifi controller - Presence detection
I would really like to use this function in my Domoticz. I'm not very experienced with LUA, can you explain me how I can implement this? I did create a User Variable 'UniResult' and I've copied your function to a LUA script and call the function in a dzVents like this: return { active = true, on ...