Created
May 25, 2020 00:54
-
-
Save wallacemreis/76f2018f898891d1b7d514d9a1576256 to your computer and use it in GitHub Desktop.
This file contains 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
energy_consp: | |
card: | |
type: vertical-stack | |
cards: | |
- type: custom:vertical-stack-in-card | |
title: '[[appliance_name]]' | |
cards: | |
- type: entities | |
entities: | |
- entity: '[[power_button]]' | |
icon: 'mdi:power-plug' | |
name: Energia | |
- type: vertical-stack | |
in_card: true | |
cards: | |
- type: glance | |
show_icon: false | |
entities: | |
- entity: '[[daily_cost]]' | |
name: "Hoje" | |
- entity: '[[weekly_cost]]' | |
name: "Semanal" | |
- entity: '[[monthly_cost]]' | |
name: "Mensal" | |
- entity: '[[yearly_cost]]' | |
name: "Anual" | |
- type: glance | |
show_icon: false | |
show_name: false | |
entities: | |
- entity: '[[daily_spent]]' | |
- entity: '[[weekly_spent]]' | |
- entity: '[[monthly_spent]]' | |
- entity: '[[yearly_spent]]' | |
- type: entities | |
entities: | |
- entity: input_select.consp_measure | |
name: Medida | |
- type: 'custom:config-template-card' | |
variables: | |
- 'states[''input_select.consp_measure''].state' | |
entities: | |
- input_select.consp_measure | |
card: | |
type: custom:mini-graph-card | |
show: | |
graph: bar | |
average: true | |
extrema: true | |
animate: true | |
hour24: true | |
hours_to_show: 48 | |
points_per_hour: 12 | |
entities: | |
- entity: "${vars[0] === 'Watts' ? '[[watts_graph]]' : vars[0] === 'Corrente' ? '[[ampere_graph]]':'[[voltage_graph]]'}" | |
name: "${vars[0] === 'Watts' ? vars[0] : vars[0] === 'Corrente' ? vars[0] : vars[0]}" | |
state_adaptive_color: true |
This file contains 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
- type: custom:decluttering-card | |
template: energy_consp | |
variables: | |
- appliance_name: "Servidor" | |
- power_button: switch.server | |
- daily_cost: sensor.costs_server_daily_um | |
- weekly_cost: sensor.costs_server_weekly_um | |
- monthly_cost: sensor.costs_server_monthly_um | |
- yearly_cost: sensor.costs_server_yearly_um | |
- daily_spent: sensor.es_server_daily | |
- weekly_spent: sensor.es_server_weekly | |
- monthly_spent: sensor.es_server_monthly | |
- yearly_spent: sensor.es_server_yearly | |
- voltage_graph: sensor.server_energy_voltage | |
- ampere_graph: sensor.server_energy_current | |
- watts_graph: sensor.server_energy_power |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment