Update Alerts
This commit is contained in:
@@ -34,12 +34,33 @@ automation:
|
||||
- alias: Notify if Garage Fridge Sensor is Unavailable
|
||||
mode: queued
|
||||
trigger:
|
||||
- platform: time_pattern
|
||||
minutes: 0
|
||||
condition:
|
||||
- "{{ is_state('sensor.garage_fridge_freezer_temperature', ['unavailable', 'unknown', 'none']) }}"
|
||||
- "{{ is_state('sensor.garage_fridge_refrigerator_temperature', ['unavailable', 'unknown', 'none']) }}"
|
||||
- platform: state
|
||||
entity_id:
|
||||
- sensor.garage_fridge_refrigerator_temperature
|
||||
- sensor.garage_fridge_freezer_temperature
|
||||
to:
|
||||
- 'none'
|
||||
- 'unavailable'
|
||||
- 'unknown'
|
||||
for: '00:05:00'
|
||||
action:
|
||||
- service: notify.everyone
|
||||
data:
|
||||
message: "{{ trigger.to_state.name }} is unavilable, check the power."
|
||||
|
||||
- alias: Notify if Garage Door Left Open
|
||||
mode: queued
|
||||
trigger:
|
||||
- platform: numeric_state
|
||||
entity_id: sun.sun
|
||||
attribute: elevation
|
||||
below: -4.0
|
||||
- platform: state
|
||||
entity_id: binary_sensor.house_presence
|
||||
to: 'off'
|
||||
condition:
|
||||
- "{{ is_state('binary_sensor.garage_door', 'on') }}"
|
||||
action:
|
||||
- service: notify.everyone
|
||||
data:
|
||||
message: Garage Door is Open
|
||||
|
||||
Reference in New Issue
Block a user