Hello everyone
I want to create a “problem” binary sensor that is on whenever the heat request for my boiler (I get that as a % value from Tado) is above 50% for 30 minutes and the gradient of the temperature (I can get that using the ‘trend’ binary sensor) is < of a certain value
This will highlight when my boiler hasn’t fired up in the morning
What’s the correct sintax for combining a numeric sensor and a binary sensor into a resulting binary sensor?
I want the resulting sensor to be on (problem) when:
Sensor1>50 & Sensor2=Normal
The problem I have is that the combined binary sensor always shows as ‘normal’ no matter the conditions
This is the code I’m using
binary_sensor:
- platform: trend
sensors:
temp_rising:
entity_id: sensor.salotto_temperature
sample_duration: 7200
min_gradient: 0.00008
device_class: heat
- platform: template
sensors:
problem:
device_class: problem
friendly_name: 'BoilerON'
value_template: "{{states('sensor.salotto_heating') | float > 50 }}"
problem2:
device_class: problem
friendly_name: 'BoilerError'
value_template: >-
{{ is_state('problem', 'Problem')
and is_state('temp_rising', 'Normal') }}