Hi,
I added my (new) AVM301 climate thermostat to my HA with the Fritz!Smart Home integration.
How can I add the attribute
battery_level
to my lovelace?
After adding the AVM301 I just got one entity (climate…)
Regards
Hi,
I added my (new) AVM301 climate thermostat to my HA with the Fritz!Smart Home integration.
battery_level
to my lovelace?
After adding the AVM301 I just got one entity (climate…)
Regards
I’m using a template sensor
battery_level:
friendly_name_template: "Batterie"
value_template: '{{ states.climate.fritz_dect_301.attributes["battery_level"] }}'
unit_of_measurement: '%'
Thank you,
I added this to my config.yaml
#Template Sensor
sensor:
- platform: template
sensors:
avm301_heizung_schlafzimmer:
friendly_name_template: "AVM301 Heizung Schlafzimmer"
value_template: '{{ states.climate.avm301_dg_schlafzimmer.attributes["battery_level"] }}'
unit_of_measurement: '%'
device_class: battery
avm301_heizung_buero2:
friendly_name_template: "AVM301 Heizung Buero2"
value_template: '{{ states.climate.avm301_dg_buero2.attributes["battery_level"] }}'
unit_of_measurement: '%'
device_class: battery
looks good