Force Dim

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
nickgosling
Posts: 33
Joined: Wednesday 06 January 2016 10:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Force Dim

Post by nickgosling »

I am ripping my hair out.

I had a perfect dzvents script that would turn down a light to a dimmed value dependent on the time of day if it was set to a value higher than that. However I managed to delete all my devices and events (don't ask) and I can not re-write the code. Can someone tell me what is the variable that stores the value of the set dim level. For example domoticz.devices('Loft Bedroom').setValue >.


I want to have the script run if the dim setting is higher than 50 at night when the device is turned on.
pvm
Posts: 550
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: 4.10538
Location: NL
Contact:

Re: Force Dim

Post by pvm »

This is stored in the 'level', information can be found by searching for 'level' in https://www.domoticz.com/wiki/DzVents:_ ... _scripting
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest