yes, you’re right, the availability sensor on my binary_sensor vijverpompen doesnt help.
And yes, they are being recreated (show yellow in the frontend and state entity is unavailable)
The set of conditions doesnt help either. I’ve only been able to prevent this automation from triggering by adding the additional condition in the action block:
- alias: Vijverpompen aan
id: Vijverpompen aan
trigger:
platform: state
entity_id: binary_sensor.vijverpompen
from: 'off'
to: 'on'
condition:
- >
{{trigger.to_state.state != 'None'}}
- >
{{trigger.from_state is not none and
trigger.to_state is not none and
trigger.to_state.state != trigger.from_state.state}}
action:
- condition: state
entity_id: input_boolean.vijverpompen_alterneren
state: 'on'
- service: input_boolean.turn_off
entity_id: input_boolean.vijverpompen_alterneren
this being the binary:
vijverpompen:
friendly_name: Vijverpompen
value_template: >
{{states('sensor.pond_tools_buiten_sensor_calibrated_temperature')|float > 6 and
is_state('binary_sensor.outside_daylight_sensor','on')}}
delay_off:
minutes: 60
this is straying form the threads topic though, sorry.