Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
template:
- sensor:
- name: "Gas Verbrauch Buderus"
unique_id: "gas_verbrauch_buderus"
device_class: "gas"
state_class: "total_increasing"
unit_of_measurement: "m³"
state: >
{% set kwh = states('sensor.recording_ractualpower') | float %} # kWh Sensor setzen
{% set normdichte_value = 0.80314 | float %} # normdichte setzen
{% set mengengewichtet_value = 11.5593 | float %} # mengengewichtet setzen
{{ ( kwh/(normdichte_value * mengengewichtet_value) ) | round(1) }} # (kwh / (Normdichte * mengengewichtet)) gerundet auf 0,1
style: |
ha-card {
opacity: 80%
}
type: entities
style: |
ha-card {
opacity: 80%
}
entities:
- type: divider
- entity: input_number.gas_normdichte
icon: mdi:fire
secondary_info: null
name: Normdichte
full_row: true
hide_state: false
- type: divider
- type: divider
- entity: input_number.gas_mengengewichtet
icon: mdi:fire
secondary_info: null
name: Mengengewichtet
full_row: true
hide_state: false
- type: divider
title: Gas kWh zu m³ berechnen
state_color: false
show_header_toggle: false
template:
- sensor:
- name: "Gas Verbrauch Buderus"
unique_id: "gas_verbrauch_buderus"
device_class: "gas"
state_class: "total_increasing"
unit_of_measurement: "m³"
state: >
{% set kwh = states('sensor.recording_ractualpower') | float %}
{% set normdichte_value = input_number.gas_normdichte | float %}
{% set mengengewichtet_value = input_number.gas_mengengewichtet | float %}
{{ ( kwh/(normdichte_value * mengengewichtet_value) ) | round(1) }}
template:
- sensor:
- name: "Gas Verbrauch Buderus"
unique_id: "gas_verbrauch_buderus"
device_class: "gas"
state_class: "total_increasing"
unit_of_measurement: "m³"
state: >
{% set kwh = states('sensor.recording_ractualpower') | float %}
{% set normdichte_value = states('input_number.gas_normdichte') | float %}
{% set mengengewichtet_value = states('input_number.gas_mengengewichtet') | float %}
{{ ( kwh/(normdichte_value * mengengewichtet_value) ) | round(1) }}