#272 - Added in more logic to stem false alarms.

This commit is contained in:
CCOSTAN 2023-12-16 19:27:00 +00:00
parent f30f02dfb9
commit ca0f8c700a
5 changed files with 10 additions and 10 deletions

View File

@ -1 +1 @@
2023.11.3
2023.12.3

View File

@ -32,3 +32,4 @@ Outdoor Seasonal:
- switch.xmas4
- switch.xmas_dual_outlet_1
- switch.xmas_dual_outlet_2
- switch.outdoor_xmas

View File

@ -15,13 +15,14 @@ automation:
trigger:
- platform: state
entity_id: binary_sensor.grid_status
condition:
condition: or
conditions:
- condition: template
value_template: "{{ states('binary_sensor.grid_status') == 'on' }}"
- condition: template
value_template: "{{ states('binary_sensor.grid_status') == 'off' }}"
# Check that both current and previous states are not 'unavailable', 'unknown', or 'null'.
value_template: >-
{{ states('binary_sensor.grid_status') not in ['unavailable', 'unknown', 'null'] and
trigger.from_state.state not in ['unavailable', 'unknown', 'null'] }}
action:
- service: script.notify_engine
data:
@ -37,7 +38,6 @@ automation:
trigger:
- platform: state
entity_id: binary_sensor.grid_status
from: 'True'
to: 'False'
action:
@ -81,7 +81,6 @@ automation:
trigger:
- platform: state
entity_id: binary_sensor.grid_status
from: 'True'
to: 'False'
for:
minutes: 6

File diff suppressed because one or more lines are too long