I created this to use a Heltec ESP8266 board with an OLED display to show the Status of my laundry machine. I used this board from az-delivery. Text on the display is in German, but feel free to fork this repo and change to your likings.
- Shows cute symbol of a laundry machine
- Laundry machine symbol is animated, if the laundry machine is running
- Another animation when the laundry machine is finished
- Screen shuts off after 1 hour if the laundry machine is off
- Uses MQTT to determine the status of the laundry machine
- Uses MQTT with username/password
- Rename
config.h.TEMPLATE
toconfig.h
and put your WiFi and MQTT settings in. - Build and flash on your board.
Your MQTT Publisher should publish a JSON like this:
"status": 0,
"timestamp": "2023[...]"
The timestamp is actually not used. I might use it later. So you could remove this line from the code:
Line 112 in 57161b7
I publish my laundry machine status using MQTT.Publish on Home Assistant:
service: mqtt.publish
data_template:
payload: >-
{ "status": {{ states('input_number.waschmaschinenstatus') | int }},
"timestamp": "{{ states.input_number.waschmaschinenstatus.last_changed }}" }
topic: waschmaschine/status
retain: true
enabled: true