Part 5 - Bathroom Mirror with tm1637

 

 

 

 

 

 

 

display:
  platform: tm1637
  clk_pin: GPIO17
  dio_pin: GPIO16
  update_interval: 500ms
  lambda: |-
      auto white = Color(255, 255, 255);
      static int i = 0;
      i++;
      if ((i % 2) == 0)
        it.strftime("%H.%M", id(homeassistant_time).now(),white);
      else
        it.strftime("%H%M", id(homeassistant_time).now()); 

 

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