minor fix

This commit is contained in:
Mahasri Kalavala 2020-09-28 16:58:27 -04:00
parent 7eebcce956
commit 86d1f32caf
1 changed files with 2 additions and 0 deletions

View File

@ -147,6 +147,8 @@ automation:
- binary_sensor.door_window_sensor_158d0004231f7b - binary_sensor.door_window_sensor_158d0004231f7b
- binary_sensor.door_window_sensor_158d0004248d5b - binary_sensor.door_window_sensor_158d0004248d5b
condition: condition:
- condition: template
value_template: "{{ trigger.from_state.state != trigger.to_state.state }}"
- condition: template - condition: template
value_template: "{{ trigger.from_state.state not in ['unavailable', 'unknown'] }}" value_template: "{{ trigger.from_state.state not in ['unavailable', 'unknown'] }}"
- condition: template - condition: template