Hello Colleagues.
I've been doing a bit of digging around with my Smart Home recently and I've come up with a couple of LED circuits for which there are no physical switches on the wall. I have wired the circuits to the ESP modules via relays and can of course virtually control them via the dashboard on the wall (tablet) but I would like to control this as I mentioned also via the existing buttons on the wall. The switches on the wall are monostable and control the already existing lighting in the rooms. I am interested in the following operating scheme:
1. single click under 1000ms - event 1 (on/off of existing circuit)
2. double click less than 1000ms - event #2 (on/off LED circuit)
3. holding the button for more than 1000ms - event no. 3 (switch off both circuits)
Of course I will program such a thing in C or Bascom, having variables at my disposal. Unfortunately in Domoticz (Blockly) or ESPeasy (Rules) I don't really know how to approach this.
Best regards Mateusz
I've been doing a bit of digging around with my Smart Home recently and I've come up with a couple of LED circuits for which there are no physical switches on the wall. I have wired the circuits to the ESP modules via relays and can of course virtually control them via the dashboard on the wall (tablet) but I would like to control this as I mentioned also via the existing buttons on the wall. The switches on the wall are monostable and control the already existing lighting in the rooms. I am interested in the following operating scheme:
1. single click under 1000ms - event 1 (on/off of existing circuit)
2. double click less than 1000ms - event #2 (on/off LED circuit)
3. holding the button for more than 1000ms - event no. 3 (switch off both circuits)
Of course I will program such a thing in C or Bascom, having variables at my disposal. Unfortunately in Domoticz (Blockly) or ESPeasy (Rules) I don't really know how to approach this.
Best regards Mateusz