Energy Monitor with ESPHome [mini Project]

Do you also love energy monitoring and want the current Wattage to be displayed in more places around the house? Well, I found a diy solution:

Check out the files on Printables: https://www.printables.com/model/975589-energymeter-segment-display

Parts:

  • Wemos D1 Mini (ESP8266) | Amazon
  • LED 4 Digit 7 Segment Display | Amazon

Requirenments:

ESPHome Code:

sensor:
  - platform: homeassistant
    id: ha_entity_sensor
    entity_id: sensor.verbrauch_total

display:
  - platform: tm1637
    id: tm1637_display
    clk_pin: D6
    dio_pin: D5
    inverted: true
    length: 4
    update_interval: 1s
    lambda: |-
      char buffer[5];
      int value = static_cast<int>(id(ha_entity_sensor).state);
      snprintf(buffer, sizeof(buffer), "%4d", value);
      it.print(buffer);

switch:
  - platform: gpio
    name: "Display Power"
    pin: D7
    inverted: false
    id: display_power_switch
    restore_mode: ALWAYS_ON

Connect the display to the Wemos D1 Mini according to the following table:

Wemos D1 MiniLED Segment Display
GGND
D7VCC
D5DIO
D6CLK

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
Scroll to Top