Hi all,
My goal is to have a binary sensor which states if any of my climate sensors has a current temperature lower than my target temperature (minus 0.3).
I am using the below configuration for this:
binary_sensor:
- platform: template
sensors:
evohome_heating:
friendly_name: "evohome heating"
value_template: >-
{{ expand('group.evohome_climate_sensors')
| selectattr('attributes.current_temperature', '<', 'attributes.temperature')
| list | count > 0 }}
I am ensuring that all climate sensors return values. However the binary sensor always returns unavailable.
The error log says < is not supported between instance of str and float. However both seem floats in the entity:
hvac_modes:
- 'off'
- heat
min_temp: 5
max_temp: 35
preset_modes:
- none
- temporary
- permanent
current_temperature: 19.2
temperature: 19.5
preset_mode: none
status:
setpoints:
this_sp_from: '2023-01-03T07:10:00+01:00'
this_sp_temp: 19.5
next_sp_from: '2023-01-03T15:00:00+01:00'
next_sp_temp: 19.5
zone_id: '6988629'
active_faults: []
setpoint_status:
target_heat_temperature: 19.5
setpoint_mode: FollowSchedule
temperature_status:
temperature: 19.5
is_available: true
friendly_name: Zitkamer
supported_features: 17
Is my select attribute statement invalid?
And would anyone know how to include the offset of 0.3 in this?