Best way to handle push buttons
Posted: Wednesday 08 February 2017 11:07
Hi !
I'm planning to drive lights with my MySensors devices :
I have a Mysensors device with 8 light outputs,
and I have a Mysensors device with 8 push button inputs.
I'm used to have 3 functions on the same button with my previous home automation system :
I have the "short press" event, "long press begining" event, and the "long press release" event.
Using these events, I usually set different actions on short press events and on long press begin events.
This allows me , i.e., to drive 2 differents lights with the same button, or to set a dim level with a long press, and an ON/OFF command on a short press.
What would be the best way to handle those kind of events in Domoticz ? How should I define my Mysensors devices to return the short press/long press/release events , that can be handled by domoticz ?
By the way, how can a short press toggle a light in domoticz ?
I'm planning to drive lights with my MySensors devices :
I have a Mysensors device with 8 light outputs,
and I have a Mysensors device with 8 push button inputs.
I'm used to have 3 functions on the same button with my previous home automation system :
I have the "short press" event, "long press begining" event, and the "long press release" event.
Using these events, I usually set different actions on short press events and on long press begin events.
This allows me , i.e., to drive 2 differents lights with the same button, or to set a dim level with a long press, and an ON/OFF command on a short press.
What would be the best way to handle those kind of events in Domoticz ? How should I define my Mysensors devices to return the short press/long press/release events , that can be handled by domoticz ?
By the way, how can a short press toggle a light in domoticz ?