Created
August 14, 2020 12:53
-
-
Save pjanuario/c4f66675df86c5a7ecb0a1be07e16b86 to your computer and use it in GitHub Desktop.
Homeassistant Energy View
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title: Energia | |
icon: mdi:transmission-tower | |
path: energy | |
background: var(--background-image) | |
cards: | |
- type: vertical-stack | |
cards: | |
- type: horizontal-stack | |
cards: | |
- type: entities | |
title: Energia Consumida | |
show_header_toggle: false | |
entities: | |
- type: section | |
label: Dia | |
- entity: sensor.daily_energy_simple | |
name: Energia Simples | |
- entity: sensor.energy_invoice_simple_day | |
name: Energia Simples | |
- entity: sensor.daily_energy_fora_de_vazio | |
name: Energia Hora de Ponta | |
- entity: sensor.daily_energy_vazio | |
name: Energia Vazio | |
- entity: sensor.energy_invoice_bi_day | |
name: Energia Bi-Horário | |
- type: section | |
label: Mês | |
- entity: sensor.monthly_energy_simple | |
name: Energia Simples | |
- entity: sensor.energy_invoice_simple | |
name: Energia Simples | |
- entity: sensor.monthly_energy_fora_de_vazio | |
name: Energia Hora de Ponta | |
- entity: sensor.monthly_energy_vazio | |
name: Energia Vazio | |
- entity: sensor.energy_invoice_bi | |
name: Energia Bi-Horário | |
style: | | |
ha-card { | |
border: solid 2px var(--primary-color); | |
- type: vertical-stack | |
cards: | |
# Total Power | |
- type: 'custom:mini-graph-card' | |
name: Potência Total (24h) | |
color_thresholds: | |
- color: '#039BE5' | |
value: 0 | |
- color: '#0da035' | |
value: 600 | |
- color: '#e0b400' | |
value: 1200 | |
- color: '#e45e65' | |
value: 2400 | |
color_thresholds_transition: hard | |
entities: | |
- sensor.power_shellyem_b9e975 | |
- color: 'rgba(0,0,255,1)' | |
entity: binary_sensor.dark_outside | |
show_line: false | |
y_axis: secondary | |
group: false | |
hour24: true | |
hours_to_show: 24 | |
line_width: 4 | |
points_per_hour: 4 | |
show: | |
extrema: true | |
fill: fade | |
icon: true | |
labels: false | |
name: true | |
state: true | |
state_map: | |
- label: Dia | |
value: 'off' | |
- label: Noite | |
value: 'on' | |
style: | | |
ha-card { | |
border: solid 2px var(--primary-color); | |
# Voltage | |
- type: 'custom:mini-graph-card' | |
name: Voltagem (24h) | |
line_color: '#0da035' | |
entities: | |
- sensor.voltage_shellyem_b9e975 | |
group: false | |
hour24: true | |
hours_to_show: 24 | |
line_width: 4 | |
points_per_hour: 4 | |
show: | |
extrema: true | |
fill: fade | |
icon: true | |
labels: false | |
name: true | |
state: true | |
style: | | |
ha-card { | |
border: solid 2px var(--primary-color); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The view uses mini-graph and use the following sensors:
Pricing sensor calculation
Shelly sensors
I use Shelly EM to monitor the power usage of the entire home, can be replaced by something similar.
Electricity and utility meter