Skip to content

Show Laundry machine status with a Heltec ESP8266 board with OLED display

License

Notifications You must be signed in to change notification settings

diecknet/display-ding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

display-ding

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.

display-ding-scheduled

display-ding2

Features

  • 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

Setup

  • Rename config.h.TEMPLATE to config.h and put your WiFi and MQTT settings in.
  • Build and flash on your board.

MQTT

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:

const char* timestamp = doc["timestamp"];

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

About

Show Laundry machine status with a Heltec ESP8266 board with OLED display

Resources

License

Stars

Watchers

Forks

Languages