Ja.
Her er mitt oppsett:
Templates i configuration.yaml:
- platform: template
sensors:
tibber_nett:
friendly_name: "Nett Eier"
value_template: "{{ state_attr('sensor.electricity_price__ADRESSE_nr, 'grid_company') }}"
icon_template: mdi:fuse
tibber_max:
friendly_name: "Max pris"
unit_of_measurement: "NOK/kWh"
value_template: "{{ state_attr('sensor.electricity_price__ADRESSE_nr, 'max_price') }}"
icon_template: mdi:currency-usd
tibber_avg:
friendly_name: "Gjennomsnittspris"
unit_of_measurement: "NOK/kWh"
value_template: "{{ state_attr('sensor.electricity_price__ADRESSE_nr, 'avg_price') }}"
icon_template: mdi:currency-usd
tibber_min:
friendly_name: "Minimumspris"
unit_of_measurement: "NOK/kWh"
value_template: "{{ state_attr('sensor.electricity_price__ADRESSE_nr, 'min_price') }}"
icon_template: mdi:currency-usd
tibber_estimert:
unit_of_measurement: 'kWh'
friendly_name: "Estimert forbruk"
value_template: "{{ state_attr('sensor.electricity_price__ADRESSE_nr, 'estimated_annual_consumption') }}"
icon_template: mdi:power-plug
tibber_time:
friendly_name: "Sist oppdatert"
value_template: "{{ state_attr('sensor.real_time_consumption__ADRESSE_nr, 'timestamp') }}"
icon_template: mdi:clock-outline
tibber_minpower:
friendly_name: "Laveste forbruk"
unit_of_measurement: "W"
value_template: "{{ state_attr('sensor.real_time_consumption__ADRESSE_nr, 'minPower') }}"
icon_template: mdi:power-plug
tibber_averagepower:
friendly_name: "Gjennomsnitts forbruk"
unit_of_measurement: "W"
value_template: "{{ state_attr('sensor.real_time_consumption__ADRESSE_nr, 'averagePower') }}"
icon_template: mdi:power-plug
tibber_maxpower:
friendly_name: "Høyeste forbruk"
unit_of_measurement: "W"
value_template: "{{ state_attr('sensor.real_time_consumption__ADRESSE_nr, 'maxPower') }}"
icon_template: mdi:power-plug
tibber_accumulatedconsumption:
friendly_name: "Forbruk i dag"
unit_of_measurement: 'kWh'
value_template: "{{ state_attr('sensor.real_time_consumption__ADRESSE_nr, 'accumulatedConsumption') }}"
icon_template: mdi:power-plug
tibber_accumulatedcost:
friendly_name: "Kostnad i dag"
unit_of_measurement: 'Kr'
value_template: "{{ state_attr('sensor.real_time_consumption__ADRESSE_nr, 'accumulatedCost') }}"
icon_template: mdi:currency-usd
tibber_volt:
friendly_name: "Spenning"
unit_of_measurement: 'V'
value_template: "{{ state_attr('sensor.real_time_consumption__ADRESSE_nr, 'voltagePhase1') }}"
icon_template: mdi:flash
tibber_amp:
friendly_name: "Strøm"
unit_of_measurement: 'A'
value_template: "{{ state_attr('sensor.real_time_consumption__ADRESSE_nr, 'currentPhase1') }}"
icon_template: mdi:current-ac
ui-lovelace.yaml:
views:
- title: AMS
cards:
- type: gauge
entity: sensor.real_time_consumption_ADRESSE_nr
min: 0
max: 6000
severity:
green: 700
yellow: 2500
red: 4500
- type: gauge
entity: sensor.electricity_price_ADRESSE_nr
min: 0
max: 1
severity:
green: 0.2
yellow: 0.6
red: 1
- type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: entities
entities:
- entity: sensor.tibber_minpower
name: Min
secondary_info: last-changed
- type: section
- entity: sensor.tibber_averagepower
name: Snitt
- type: section
- entity: sensor.tibber_maxpower
name: Max
secondary_info: last-changed
- type: section
- entity: sensor.tibber_accumulatedconsumption
name: Forbruk
- type: entities
entities:
- entity: sensor.tibber_min
name: Min
- type: section
- entity: sensor.tibber_avg
name: Snitt
- type: section
- entity: sensor.tibber_max
name: Max
- type: section
- entity: sensor.tibber_accumulatedcost
name: Kostnad
- type: entities
entities:
- input_number.max_w
- type: glance
entities:
- sensor.tibber_volt
- sensor.tibber_amp
- type: entities
entities:
- entity: sensor.tibber_nett
icon: mdi:fuse
- entity: sensor.tibber_estimert
- entity: sensor.tibber_time