Page 1 of 1

Different treatment of manual vs scripted actions

Posted: Thursday 06 December 2018 21:24
by Ewaldharmsen
I use ESP Easy a lot, in there I can link Domoticz devices to a switch.

So if I turn on a light which is controlled via ESP Easy a corresponding virtual device is turned on as well.
I have also a turn on and off action defined for that dummy device, which sends an action to the ESP Easy device to turn on the light.
By doing that I can turn on the light via Domoticz or in another way.

My problem is when I somehow turn a light on and off very fast, the domoticz on action fires when the light actually already off.
That makes the light blink.

What I would like to define is that the on and off action only take place when I manually turn on the device in Domoticz.
If I turn it on via other means the action should not be executed.
Is that possible?

Re: Different treatment of manual vs scripted actions

Posted: Thursday 06 December 2018 21:34
by waaren
Ewaldharmsen wrote: Thursday 06 December 2018 21:24 I use ESP Easy a lot, in there I can link Domoticz devices to a switch.

So if I turn on a light which is controlled via ESP Easy a corresponding virtual device is turned on as well.
I have also a turn on and off action defined for that dummy device, which sends an action to the ESP Easy device to turn on the light.
By doing that I can turn on the light via Domoticz or in another way.

My problem is when I somehow turn a light on and off very fast, the domoticz on action fires when the light actually already off.
That makes the light blink.

What I would like to define is that the on and off action only take place when I manually turn on the device in Domoticz.
If I turn it on via other means the action should not be executed.
Is that possible?
This Is possible with some scripting. I implemented something similar with a dzVents script and MQTT as communication between ESPeasy and domoticz.
Let me know if you are interested.

Re: Different treatment of manual vs scripted actions

Posted: Friday 07 December 2018 8:59
by Ewaldharmsen
yes please!

Re: Different treatment of manual vs scripted actions

Posted: Friday 07 December 2018 9:44
by waaren
Ewaldharmsen wrote: Friday 07 December 2018 8:59 yes please!
Send you a PM