logo elektroda
logo elektroda
X
logo elektroda

Configuring Multi-Function Button with Domoticz and ESPeasy for Smart Home

matelektronik 1338 1
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 17941382
    matelektronik
    Level 17  
    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
  • ADVERTISEMENT
  • #2 17941580
    xury
    Automation specialist
    If these buttons are hooked up to the ESP8266 and these ESPs are running on ESPEasy or Tasmota software then you can get this functionality with "rules" scripts In my free time I will try to describe this, but for now you will have to search for a description yourself.
ADVERTISEMENT