I did some further searching and it seems that device.state is different from device._state (well, obviously...). Your script seems to work if the first if is replaced by
if string.match(device._state,'Set Level') then
domoticz.log('Ignore because set manual after switching on',domoticz.LOG ...
Search found 4 matches
- Sunday 13 October 2019 20:31
- Forum: dzVents
- Topic: Set the dimlevel according to the time of day
- Replies: 4
- Views: 469
- Sunday 13 October 2019 17:29
- Forum: dzVents
- Topic: Set the dimlevel according to the time of day
- Replies: 4
- Views: 469
Re: Set the dimlevel according to the time of day
I'm trying to make a light turn on at the right dimlevel according to the time of day. I have tried a variety of scripts, but I couldn't make it work so that I could adjust the dimlevel after the script had run.
Not sure I completely understand your requirement but does this work ?
*code ...
- Sunday 13 October 2019 10:30
- Forum: dzVents
- Topic: Set the dimlevel according to the time of day
- Replies: 4
- Views: 469
Set the dimlevel according to the time of day
I'm trying to make a light turn on at the right dimlevel according to the time of day. I have tried a variety of scripts, but I couldn't make it work so that I could adjust the dimlevel after the script had run.
The switch is a fibaro dimmer 2 with one button attached. The problem that I seem to ...
The switch is a fibaro dimmer 2 with one button attached. The problem that I seem to ...
- Wednesday 26 December 2018 14:31
- Forum: dzVents
- Topic: Using an IDE to develop dzVents scripts
- Replies: 2
- Views: 621
Using an IDE to develop dzVents scripts
I've been searching all over for this, but haven't been able to find clues on how to use an IDE to develop dzVents scripts. I would think that something like LDT should be able to build scripts which then could be uploaded to domoticz. However, to be useful the IDE should have knowledge about the ...