New here, and new to Home assistant and in need of help. I’ve added two sensors using templates to break out attributes from my thermostat. I can get the correct attributes value in the template editor, and I dont get any errors in the configuration.yaml, or groups.yaml when i check the config but I only get ‘unknown’ when I look at it in the group on the frontend ui.
I have been working on this all night now and any direction would be appreciated!
sensor:
# tstat battery level
- platform: template
sensors:
thermostat_battery:
friendly_name: "Thermostat Battery Level"
unit_of_measurement: "%"
value_template: >-
{% if states.zwave['2gig_technologies_ct101_thermostat_iris'].attributes.battery_level %}
{{ states.zwave['2gig_technologies_ct101_thermostat_iris'].attributes.battery_level }}
{% else %}
Unknown
{% endif %}
# tstat operation status
- platform: template
sensors:
thermostat_status:
friendly_name: "Thermostate Status"
value_template: >-
{{ states.climate['2gig_technologies_ct101_thermostat_iris_heating_1'].attributes.operating_state }}
#Climate control group
climate_control:
name: Climate Control
view: no
entities:
- sensor.2gig_technologies_ct101_thermostat_iris_temperature
- sensor.thermostat_battery
- sensor.thermostat_status
- climate.2gig_technologies_ct101_thermostat_iris_cooling_1
- climate.2gig_technologies_ct101_thermostat_iris_heating_1