The DUMB2SMART Lite is a way for some dumb equipment to gain some intelligence and inform a MQTT broker if they are ON or OFF. It was developed for use with ESP-01 in mind but can be used with other ESPs.
Current version is: DUMB2SMART Lite v0.0.1 (05/06/2018)
- n/a
The ESP-01 should be connected to the device you want to get the state.
If you're using Home Assistant, just add this code:
binary_sensor:
#### GET DEVICE STATE
- platform: mqtt
name: "dumb2smart"
state_topic: "home/test/status"
value_template: "{{ value }}"
payload_on: "Online"
payload_off: "Offline"
device_class: connectivity
This project was created on PlatformIO. If you are using Arduino IDE, you should open the .cpp file inside the src folder. Libraries are inside the lib folder.
- ESP8266WiFi >> https://github.com/esp8266/Arduino
- PubSubClient >> https://github.com/knolleary/pubsubclient
- ESP8266WiFi >>
??
- PubSubClient >>
platformio lib install "PubSubClient"