The project is based on esp8266-07 or 12 and can work with home-assistant.io via MQTT. It designed for case when you want to control e.g. a light manually by a switch or remotely from home automation server or mobile app.
- work via WiFi and reconnecting in case of a failure
- supporting of MQTT communicating and reconnecting in case of a failure
- the solution can work without WiFi and unavailability of MQTT broker
- the relay can be managed by the switch on the board or by MQTT signal
The one was made in KiCad app, here's source of the circuit
The sketch works with home-assisatnt.io, so you need:
- Install home-assistant.io
- Install MQTT broker and configure it for work with HA
- Add configuration of the swicth to config file of HA
- Assign your credentials to credentials.cpp
- Build and upload the code to esp8266-07 via Arduino IDE or PlatformIO
It should work! More information on my site I'll be happy to help you!