Different treatment of manual vs scripted actions

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.
Post Reply
Ewaldharmsen
Posts: 67
Joined: Tuesday 07 February 2017 16:00
Target OS: Linux
Domoticz version:
Contact:

Different treatment of manual vs scripted actions

Post by Ewaldharmsen » Thursday 06 December 2018 22: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?

User avatar
waaren
Posts: 1352
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Different treatment of manual vs scripted actions

Post by waaren » Thursday 06 December 2018 22:34

Ewaldharmsen wrote:
Thursday 06 December 2018 22: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.
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, , dzVents 2.6, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave, Amazon echo

Ewaldharmsen
Posts: 67
Joined: Tuesday 07 February 2017 16:00
Target OS: Linux
Domoticz version:
Contact:

Re: Different treatment of manual vs scripted actions

Post by Ewaldharmsen » Friday 07 December 2018 9:59

yes please!

User avatar
waaren
Posts: 1352
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Different treatment of manual vs scripted actions

Post by waaren » Friday 07 December 2018 10:44

Ewaldharmsen wrote:
Friday 07 December 2018 9:59
yes please!
Send you a PM
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, , dzVents 2.6, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave, Amazon echo

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests