#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.xmas4
- switch.xmas_dual_outlet_1 - switch.xmas_dual_outlet_1
- switch.xmas_dual_outlet_2 - switch.xmas_dual_outlet_2
- switch.outdoor_xmas

View File

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

File diff suppressed because one or more lines are too long