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:
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 Mini | LED Segment Display |
---|---|
G | GND |
D7 | VCC |
D5 | DIO |
D6 | CLK |