/esp8266-multi-wifi-switch-powered

A wifi enabled switch, which uses Homie (MQTT) to send and receive commands

Primary LanguageC++

Multi Wifi Switch - Powered

The multi wifi switch is based on an ESP 8266 Node MCU Board and the Homie ESP Library, which uses MQTT. It has 4 Buttons and 3 LEDs and therefore uses most of the usable ESP 8266 pins. The pin of a button can easily be used for a LED and vice versa. Any combination ranging from 7 buttons to 7 LEDs is conceivable.

The box itself is relativly "dumb". It relies on an external controller (like Home Assistant, IoBroker, ...) for controlling the switch.

Buttons

Three different button presses are supported:

  • Short single press
  • Long single press
  • Double press

LEDs

A LED can be in one of five states:

  • OFF: The LED is off
  • ON: The LED is on
  • SHORT_PULSE: The LED is blinking fast
  • LONG_PULSE: The LED is blinking slow
  • TRIPPLE_PULSE: The LED is blinking three times fast, makes a break and is blinking fast again

Circuit schematic

Schematic

Final box

Final box