mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-09-14 07:45:48 +00:00
This is the current config. Moved old to the v1-config branch
This commit is contained in:
74
automation/weather.yaml
Normal file
74
automation/weather.yaml
Normal file
@@ -0,0 +1,74 @@
|
||||
#
|
||||
#
|
||||
# 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
|
Reference in New Issue
Block a user