Part 5 - Bathroom Mirror with display tm1637
Part 5 - Bathroom Mirror with tm1637
ESP32 32PIN expansion board -> D17 D16 3V gnd
time:
- platform: homeassistant
id: homeassistant_time
# https://blog.matterxiaomi.com/blog/bathroom-mirror-part5/
# https://esphome.io/components/display/tm1637
# ESP32 32PIN expansion board -> D17 D16 3V gnd
display:
platform: tm1637
clk_pin: GPIO17
dio_pin: GPIO16
update_interval: 500ms
lambda: |-
static int i = 0;
i++;
if ((i % 2) == 0)
it.strftime("%H.%M", id(homeassistant_time).now());
else
it.strftime("%H%M", id(homeassistant_time).now());
come from:https://esphome.io/components/display/tm1637
other display
SSD1306 OLED Display
nextion显示屏
useful links
Installing mirror lighting on ESPHome
https://chochol.io/en/smart-home/home-assistant-installing-mirror-lighting-on-esphome/
tm1637
https://github.com/electrofun-smart/display_tm1637_esphome/blob/main/displaytm.yaml
Comments
Comments are closed