74 lines
1.6 KiB
YAML
74 lines
1.6 KiB
YAML
|
#
|
||
|
#
|
||
|
# Weather
|
||
|
#
|
||
|
############
|
||
|
|
||
|
- alias: Cloudy inside on
|
||
|
trigger:
|
||
|
- platform: time
|
||
|
at: '16:00:00'
|
||
|
condition:
|
||
|
- condition: numeric_state
|
||
|
entity_id: sensor.dark_sky_cloud_coverage
|
||
|
above: 70
|
||
|
- condition: state
|
||
|
entity_id: group.family
|
||
|
state: home
|
||
|
action:
|
||
|
- service: notify.ios_jeffreystonesiphone
|
||
|
data:
|
||
|
message: Cloudy, turning on LR Lamp
|
||
|
|
||
|
- alias: Cloudy porch on early
|
||
|
trigger:
|
||
|
- platform: sun
|
||
|
event: sunset
|
||
|
offset: -01:30:00
|
||
|
condition:
|
||
|
- condition: numeric_state
|
||
|
entity_id: sensor.dark_sky_cloud_coverage
|
||
|
above: 70
|
||
|
action:
|
||
|
- service: switch.turn_on
|
||
|
data:
|
||
|
entity_id: switch.front_porch_left
|
||
|
- service: switch.turn_on
|
||
|
data:
|
||
|
entity_id: switch.front_porch_right
|
||
|
|
||
|
- alias: Kill Audible Tornado Alarm
|
||
|
trigger:
|
||
|
- platform: state
|
||
|
entity_id: input_boolean.tornado_alarm
|
||
|
to: 'off'
|
||
|
action:
|
||
|
- service: script.kill_audible_alarm
|
||
|
- service: homeassistant.turn_off
|
||
|
entity_id: script.tornado_alarm
|
||
|
|
||
|
- alias: Sound Audible Tornado Alarm
|
||
|
trigger:
|
||
|
- platform: state
|
||
|
entity_id: input_boolean.tornado_alarm
|
||
|
to: "on"
|
||
|
action:
|
||
|
- service: script.tornado_warning
|
||
|
- service: homeassistant.turn_on
|
||
|
entity_id: script.tornado_alarm
|
||
|
|
||
|
- alias: Tornado Warning
|
||
|
trigger:
|
||
|
- platform: state
|
||
|
entity_id: sensor.tornado_warning
|
||
|
to: "active"
|
||
|
action:
|
||
|
- service: input_boolean.turn_on
|
||
|
entity_id: input_boolean.tornado_alarm
|
||
|
|
||
|
- alias: Wx Alert Notification
|
||
|
trigger:
|
||
|
- platform: state
|
||
|
entity_id: sensor.pws_alerts
|
||
|
action:
|
||
|
- service: script.wxalert_tile
|