Handling the short press/long press/release by the arduino is quite easy.
I can already send a different event regarding what happens on each button, but the event has to be handled by domoticz
Previously, I was using a custom-made software for all my home automation.
I handled the thing like this :
When event is "pulse" :
if timer is OFF and light is OFF :
- Turn a timer ON for 5 seconds.
- Turn light to 1st dim level (levels are 2, 5, 10, 30, 50 and 100%)
if light is ON and timer is ON :
Reset timer to 5s.
Turn light to next dim level
If light is ON but timer is OFF :
Turn light OFF
when event is "hold" :
-do another action (ie. turn on/off another light)...
That was working corretly, I did put this script in a function that I could reuse for each light easily, but it was my own home automation system software, and now I want to turn to another system, no more time to fix/enhance my own software !