Emit Enocean long press from a domoticz switch device
Posted: Sunday 12 November 2017 10:27
I am wondering if there is a way to emit an Enocean long press from a domoticz switch device.
In my case I would like it to implement the full open/close feature for a blinds actor. Per default this actor (PEHA 452 FU-EBI JR o.T) behaves as follows when connected to a switch:
- short press on/off -> move blinds up/down while the button is pressed
- long press on/off -> fully open/close blinds (to the open/close end position)
In domoticz I didn't find a way to make a switch type "Blinds" (or any other switch type) to emit a long press. Can anyone point me to the solution how to achieve this?
(The actor has many other EEPs (Enocean equipment profiles) but none of the seems to implement the "fully open/close" on short press.)
AFAIK, the Enocean switch information is always transmitted via two Enocean messages, one on button down ("press") and one on button up ("release"). Thus for a long press the time distance between these messages is more than a certain "long press threshold". It would be very nice if this time distance could be configured for a domoticz switch, but I didn't figure out how to do it.
Maybe there is a way to do that with some complicated scripting (which I didn't take a look at yet), but the "long press" seems quite essential to me and might be usefull for other devices as well, so I fell like I miss something here, right?
Thanks a lot in advance for any help!
Lorenz
In my case I would like it to implement the full open/close feature for a blinds actor. Per default this actor (PEHA 452 FU-EBI JR o.T) behaves as follows when connected to a switch:
- short press on/off -> move blinds up/down while the button is pressed
- long press on/off -> fully open/close blinds (to the open/close end position)
In domoticz I didn't find a way to make a switch type "Blinds" (or any other switch type) to emit a long press. Can anyone point me to the solution how to achieve this?
(The actor has many other EEPs (Enocean equipment profiles) but none of the seems to implement the "fully open/close" on short press.)
AFAIK, the Enocean switch information is always transmitted via two Enocean messages, one on button down ("press") and one on button up ("release"). Thus for a long press the time distance between these messages is more than a certain "long press threshold". It would be very nice if this time distance could be configured for a domoticz switch, but I didn't figure out how to do it.
Maybe there is a way to do that with some complicated scripting (which I didn't take a look at yet), but the "long press" seems quite essential to me and might be usefull for other devices as well, so I fell like I miss something here, right?
Thanks a lot in advance for any help!
Lorenz