Valeu por compartilhar o conhecimento @douglasit dei uma ajeitada no lovelace pessoal aqui, vou deixar o código abaixo para caso queiram.
Consumo de Água:
type: vertical-stack
cards:
- type: custom:button-card
color_type: label-card
icon: mdi:water-pump
layout: icon_name_state
name: Consumo de Água
styles:
card:
- height: 40px
- background-color: var(--card-background-color)
- font-size: 14px
- padding: 8px
- color: var(--state-icon-active-color)
- box-shadow: 4px 0px 0px 0px var(--state-icon-active-color)
- type: horizontal-stack
cards:
- type: custom:mini-graph-card
color_thresholds:
- color: '#FF0000'
value: 500
- color: '#FF9933'
value: 250
- color: '#E5FFCC'
value: 75
entities:
- sensor.sensor_caixa_d_agua_fluxo_de_vazao
font_size: 80
height: 110
hours_to_show: 12
line_width: 1
name: Vazão (24h)
points_per_hour: 10
show:
extrema: true
fill: true
average: true
- type: horizontal-stack
cards:
- type: custom:mini-graph-card
color_thresholds:
- color: '#C62828'
value: 1000
- color: '#FF8000'
value: 500
- color: '#66FF66'
value: 400
entities:
- entity: sensor.sensor_caixa_d_agua_temperatura_da_agua
index: 0
font_size: 50
hours_to_show: 24
line_width: 2
points_per_hour: 2
name: Temperatura da Água
show:
icon: false
state: true
name: true
- type: custom:mini-graph-card
color_thresholds:
- color: '#C62828'
value: 500
- color: '#FF8000'
value: 250
- color: '#66FF66'
value: 125
entities:
- entity: sensor.sensor_caixa_d_agua_volume_percentual
index: 0
font_size: 50
hours_to_show: 24
line_width: 2
points_per_hour: 2
name: Nível da Água
show:
icon: false
state: true
name: true
- cards:
- entity: sensor.consumo_agua_diario
name: Diário
show_icon: false
show_state: true
styles:
name:
- font-weight: 500
state:
- font-size: 12px
type: custom:button-card
- entity: sensor.consumo_agua_semanal
icon: hass:water
name: Semanal
show_icon: false
show_state: true
styles:
name:
- font-weight: 500
state:
- font-size: 12px
type: custom:button-card
- entity: sensor.consumo_agua_mensal
icon: hass:water
name: Mensal
show_icon: false
show_state: true
styles:
name:
- font-weight: 500
state:
- font-size: 12px
type: custom:button-card
- entity: sensor.consumo_agua_anual
icon: hass:water
name: Anual
show_icon: false
show_state: true
styles:
name:
- font-weight: 500
state:
- font-size: 12px
type: custom:button-card
type: horizontal-stack
- cards:
- entity: sensor.agua_total_gasta_hoje
type: custom:button-card
show_icon: true
show_name: false
show_state: true
units: ' '
icon: mdi:currency-brl
styles:
icon:
- margin-left: 3px
- height: 20px
state:
- margin-right: '-30px'
- margin-top: '-20px'
- font-size: 18px
- entity: sensor.agua_total_gasta_semanal
type: custom:button-card
show_icon: true
show_name: false
show_state: true
units: ' '
styles:
icon:
- margin-left: 3px
- height: 20px
state:
- margin-right: '-30px'
- margin-top: '-20px'
- font-size: 18px
- entity: sensor.agua_total_gasta_mensal
type: custom:button-card
show_icon: true
show_name: false
show_state: true
units: ' '
styles:
icon:
- margin-left: 3px
- height: 20px
state:
- margin-right: '-30px'
- margin-top: '-20px'
- font-size: 18px
- entity: sensor.agua_total_gasta_anual
type: custom:button-card
show_icon: true
show_name: false
show_state: true
units: ' '
styles:
icon:
- margin-left: 3px
- height: 20px
state:
- margin-right: '-30px'
- margin-top: '-20px'
- font-size: 18px
type: horizontal-stack
Informações da Caixa D’ Água:
type: vertical-stack
cards:
- type: custom:button-card
color_type: label-card
icon: mdi:water-boiler
layout: icon_name_state
name: Informações da Caixa D' Água
styles:
card:
- height: 40px
- background-color: var(--card-background-color)
- font-size: 14px
- padding: 8px
- color: var(--state-icon-active-color)
- box-shadow: 4px 0px 0px 0px var(--state-icon-active-color)
- type: custom:mini-graph-card
entities:
- entity: sensor.sensor_caixa_d_agua_volume
name: Volume
color: green
- entity: sensor.sensor_caixa_d_agua_volume_com_o_nivel_maximo
name: Volume com o Nível Máximo
font_size: 80
height: 110
hours_to_show: 24
line_width: 1
unit: L
name: Volume
points_per_hour: 1
show:
extrema: true
fill: true
average: true
- type: custom:mini-graph-card
entities:
- entity: sensor.sensor_caixa_d_agua_coluna_de_agua_atual
name: Coluna de Água
color: green
- entity: sensor.sensor_caixa_d_agua_distancia_medida_sensor
name: Distância de Medida do Sensor
font_size: 80
height: 110
hours_to_show: 24
line_width: 1
name: Distância de Medida dos Sensores
points_per_hour: 1
value_factor: 2
unit: CM
show:
extrema: true
fill: true
average: true
Informações de Água:
type: vertical-stack
cards:
- type: custom:button-card
color_type: label-card
icon: mdi:water
layout: icon_name_state
name: Informações de Água
styles:
card:
- height: 40px
- background-color: var(--card-background-color)
- font-size: 14px
- padding: 8px
- color: var(--state-icon-active-color)
- box-shadow: 4px 0px 0px 0px var(--state-icon-active-color)
- type: entities
entities:
- entity: input_number.tarifa_agua_litro
- entity: input_number.caixa_agua_alerta_nivel_maximo
- entity: binary_sensor.sensor_caixa_d_agua_nivel_maximo_de_alerta
- entity: input_number.caixa_agua_alerta_nivel_minimo
- entity: binary_sensor.sensor_caixa_d_agua_nivel_minimo_de_alerta
- entity: switch.sensor_caixa_d_agua_reiniciar
name: Reiniciar Monitoramento