diff --git a/packages/door_sensors.yaml b/packages/door_sensors.yaml index 4bbcf8a..4f52641 100644 --- a/packages/door_sensors.yaml +++ b/packages/door_sensors.yaml @@ -147,6 +147,8 @@ automation: - binary_sensor.door_window_sensor_158d0004231f7b - binary_sensor.door_window_sensor_158d0004248d5b condition: + - condition: template + value_template: "{{ trigger.from_state.state != trigger.to_state.state }}" - condition: template value_template: "{{ trigger.from_state.state not in ['unavailable', 'unknown'] }}" - condition: template