Search found 4 matches
- Sunday 26 August 2018 22:20
- Forum: dzVents
- Topic: PIR + light: how to go to previous state
- Replies: 9
- Views: 2040
Re: PIR + light: how to go to previous state
Thanks!!! I will try it tomorrow. Today I tried a different approach, but faced an issue with cancelQueuedCommands. How should it work? I though that when I call device.cancelQueuedCommands() Then the whole queue for device "device" will be cleaned. But unfortunately it doesn't work this way. Is it ...
- Saturday 25 August 2018 18:09
- Forum: dzVents
- Topic: PIR + light: how to go to previous state
- Replies: 9
- Views: 2040
Re: PIR + light: how to go to previous state
Thanks waaren! But still I cannot make it. I tried do it in this way: 1. create trigger for RGBW light device which saves the state to a global variable domoticz.globalData.rgbwLastState[device.idx] 2. create a PIR trigger: prev_state = domoticz.globalData.rgbwLastState[light1.idx] light1 ...
- Friday 24 August 2018 18:27
- Forum: dzVents
- Topic: PIR + light: how to go to previous state
- Replies: 9
- Views: 2040
Re: PIR + light: how to go to previous state
I don't think that cancelQueuedCommands can help me. If i discard the queue for device I will lost the previous state.
Thanks for the link, I will try to do it.
However don't you think that resetting the forMin timer (to count from zero once again) will the best solution?
Thanks for the link, I will try to do it.
However don't you think that resetting the forMin timer (to count from zero once again) will the best solution?
- Friday 24 August 2018 16:32
- Forum: dzVents
- Topic: PIR + light: how to go to previous state
- Replies: 9
- Views: 2040
PIR + light: how to go to previous state
Hi, I have a PIR sensor which should trigger the light. But the light can also be set manually (this is the main issue). It is the RGBW switch (it's the second). The most common answer on the forum for forMin issues: light.switchOff().checkFirst().afterMin(2) light.switchOn().checkFirst().forMin(2 ...