AutomationDataset/Firemogle/Firemogle_automations.yaml

1084 lines
29 KiB
YAML

- id: irrigattion
alias: irrigation
trigger:
- platform: calendar
event: start
entity_id: calendar.teamcarriger_gmail_com
condition:
- condition: template
value_template: '{{ ''Irrigate'' in trigger.calendar_event.summary }}'
action:
- if:
- '{{ trigger.event == ''start'' }}'
then:
- service: switch.turn_on
entity_id: switch.rainbrarrel_backyard_irrigation
mode: queued
- alias: turn_off_projector
initial_state: 'off'
trigger:
- platform: time
at: '1:30:00'
condition: []
action:
- data:
entity_id: switch.projector
service: switch.turn_off
- id: basement_hall_sync
alias: basement_hall_sync
trigger:
- entity_id: light.hallway_light
platform: state
- entity_id: light.basement_stair_light
platform: state
condition: []
action:
- if:
- condition: template
value_template: '{{ trigger.to_state.state == ''on'' }}'
then:
- service: light.turn_on
data:
entity_id: light.basement_stair_light
- service: light.turn_on
data:
entity_id: light.hallway_light
else:
- service: light.turn_off
data:
entity_id: light.basement_stair_light
- service: light.turn_off
data:
entity_id: light.hallway_light
mode: queued
- id: va_thunderstorm_sounds
alias: va_thunderstorm_sounds
mode: parallel
triggers:
- trigger: conversation
command: play thunderstorm sounds
conditions: []
actions:
- action: media_player.turn_on
target:
entity_id: media_player.{{ area_name(trigger.device_id) }}speaker
- action: media_player.play_media
target:
entity_id: media_player.{{ area_name(trigger.device_id) }}speaker
data:
media_content_id: media-source://media_source/media/Server/media/Sorted Music/thunder.mp3
media_content_type: audio/mpeg
metadata:
title: thunder.mp3
thumbnail: null
media_class: music
children_media_class: null
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://media_source
- media_content_type: ''
media_content_id: media-source://media_source/media/Server
- media_content_type: ''
media_content_id: media-source://media_source/media/Server/media
- media_content_type: ''
media_content_id: media-source://media_source/media/Server/media/Sorted Music
- id: va_stop_goog_speaker
alias: va_stop_goog_speaker
mode: parallel
triggers:
- trigger: conversation
command: stop sounds
conditions: []
actions:
- action: media_player.media_stop
target:
entity_id: media_player.{{ area_name(trigger.device_id) }}speaker
- action: media_player.turn_off
target:
entity_id: media_player.{{ area_name(trigger.device_id) }}speaker
- id: va_alarm_goog_speaker
alias: va_alarm_goog_speaker
mode: parallel
triggers:
- platform: state
entity_id: binary_sensor.master_headboard_eth_va_master_headboard_eth_va_alarm_on
to: 'on'
- platform: state
entity_id: binary_sensor.kitchen_cabinet_eth_va_kitchen_cabinet_eth_va_alarm_on
to: 'on'
- platform: state
entity_id: binary_sensor.livingroom_eth_va_livingroom_eth_va_alarm_on
to: 'on'
conditions: []
actions:
- action: media_player.turn_on
target:
entity_id: media_player.{{ area_name(trigger.entity_id) }}speaker
- repeat:
sequence:
- delay: 00:00:03
- action: media_player.play_media
target:
entity_id: media_player.{{ area_name(trigger.entity_id) }}speaker
data:
media_content_id: media-source://media_source/media/Server/media/Sorted
Music/beep-6-96243.mp3
media_content_type: audio/mpeg
metadata:
title: beep-6-96243.mp3
thumbnail: null
media_class: music
children_media_class: null
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://media_source
- media_content_type: ''
media_content_id: media-source://media_source/media/Server
- media_content_type: ''
media_content_id: media-source://media_source/media/Server/media
- media_content_type: ''
media_content_id: media-source://media_source/media/Server/media/Sorted
Music
while:
- condition: template
value_template: '{{ is_state(trigger.entity_id, ''on'') }}'
- id: va_set_vol_goog_speaker
alias: va_set_vol_goog_speaker
mode: parallel
triggers:
- platform: state
entity_id: media_player.masterbedroomspeaker
conditions: []
actions:
- action: media_player.volume_set
target:
entity_id: media_player.{{ area_name(trigger.device_id) }}speaker
data_template:
volume_level: '{{ state_attr(trigger.entity_id, ''volume_level'') | float }}
'
- id: calendar_announce
alias: calendar_announce
trigger:
- platform: calendar
event: start
entity_id: calendar.teamcarriger_gmail_com
condition:
- condition: template
value_template: '{{ ''Announce'' in trigger.calendar_event.summary }}'
actions:
- action: assist_satellite.announce
metadata: {}
data:
message: '{{ trigger.calendar_event.description }}'
target:
area_id:
- 36a7e54132e84284a4368f292e945bb0
- 63db88fe052b434c86e1d37781ce0972
- 259e54ef72a347c2b9fa159e5bcd32b7
- id: button_announce
alias: button_announce
triggers:
- trigger: state
entity_id: input_text.announce_textbox
actions:
- action: assist_satellite.announce
metadata: {}
data:
message: '{{ states(''input_text.announce_textbox'') }}'
target:
area_id:
- 36a7e54132e84284a4368f292e945bb0
- 63db88fe052b434c86e1d37781ce0972
- 259e54ef72a347c2b9fa159e5bcd32b7
- id: emi_fan_speed
alias: emi_fan_speed
initial_state: 'off'
trigger:
- entity_id: sensor.emi_temp
platform: state
- entity_id: fan.emi_fan
platform: state
condition:
- condition: state
entity_id: fan.emi_fan
state: 'on'
action:
- service: fan.set_percentage
data_template:
entity_id: fan.emi_fan
data:
percentage: "{% if (states.sensor.emi_temp.state|float(default=0) > 80 ) %}\n\
\ 100\n{% elif (states.sensor.emi_temp.state|float(default=0) <= 80 ) and\
\ (states.sensor.emi_temp.state|float(default=0) > 76 ) %} \n 75\n{% elif\
\ (states.sensor.emi_temp.state|float(default=0) <= 76 ) and (states.sensor.emi_temp.state|float(default=0)\
\ > 74 ) %} \n 50\n{% elif (states.sensor.emi_temp.state|float(default=0)\
\ <= 74 ) %} \n 25\n{% endif %}\n"
- id: emi_tv_off
alias: emi_tv_off
initial_state: 'off'
trigger:
- platform: time
at: '20:30:00'
condition: []
action:
- data:
entity_id: switch.emi_tv
service: switch.turn_off
- id: emi_tv_on
alias: emi_tv_on
initial_state: 'off'
condition:
alias: Emi TV Time
condition: time
after: '6:00:00'
before: '20:30:00'
trigger:
platform: state
entity_id: media_player.emi_shield
from: 'off'
action:
- data:
entity_id: switch.emi_tv
service: switch.turn_on
- id: emi_tv_off_idle
alias: emi_tv_off_idle
initial_state: 'off'
condition: []
trigger:
platform: state
entity_id: media_player.emi_shield
from: 'on'
action:
- data:
entity_id: switch.emi_tv
service: switch.turn_off
- id: girls_bedroom_wakeup
alias: girls_bedroom_wakeup
initial_state: 'off'
trigger:
- platform: time
at: '7:30:00'
condition: []
action:
- service: light.turn_on
data:
entity_id: light.emi_star_lamp
brightness: 10
kelvin: 2700
- delay: 00:00:30
- service: light.turn_on
data:
entity_id: light.emi_star_lamp
brightness: 255
transition: 1800
- id: independence_day_on
alias: independence_day_on
trigger:
- platform: calendar
event: start
entity_id: calendar.teamcarriger_gmail_com
- platform: calendar
event: end
entity_id: calendar.teamcarriger_gmail_com
condition:
- condition: template
value_template: '{{ ''4th of July Lights'' in trigger.calendar_event.summary }}'
action:
- if:
- '{{ trigger.event == ''start'' }}'
then:
- service: input_boolean.turn_on
entity_id: input_boolean.independence_day
else:
- service: input_boolean.turn_off
entity_id: input_boolean.independence_day
mode: queued
- id: halloween_on
alias: halloween_on
trigger:
- platform: calendar
event: start
entity_id: calendar.teamcarriger_gmail_com
- platform: calendar
event: end
entity_id: calendar.teamcarriger_gmail_com
condition:
- condition: template
value_template: '{{ ''Halloween Lights'' in trigger.calendar_event.summary }}'
action:
- if:
- '{{ trigger.event == ''start'' }}'
then:
- service: input_boolean.turn_on
entity_id: input_boolean.halloween
else:
- service: input_boolean.turn_off
entity_id: input_boolean.halloween
mode: queued
- id: house_sts_xmas_lights
alias: house_sts_xmas_lights
trigger:
- platform: calendar
event: start
entity_id: calendar.teamcarriger_gmail_com
- platform: calendar
event: end
entity_id: calendar.teamcarriger_gmail_com
condition:
- condition: template
value_template: '{{ ''xmas_lights'' in trigger.calendar_event.summary }}'
action:
- if:
- '{{ trigger.event == ''start'' }}'
then:
- service: input_boolean.turn_on
entity_id: input_boolean.house_sts_xmas_lights
else:
- service: input_boolean.turn_off
entity_id: input_boolean.house_sts_xmas_lights
mode: queued
- id: morning_xmas
alias: morning_xmas
trigger:
- platform: time
at: '7:30:00'
condition:
- condition: template
value_template: '{{ is_state(''input_boolean.house_sts_xmas_lights'', ''on'')
}}'
action:
- data:
entity_id: switch.garage_wall_switch
service: switch.turn_off
- service: light.turn_on
data:
brightness_pct: 100
rgb_color:
- 255
- 255
- 255
effect: Rainbow
target:
entity_id:
- light.cabinet_top
- light.uhall_ban_hall_ban
mode: queued
- id: house_hvac_set
alias: house_hvac_set
initial_state: 'off'
mode: queued
max: 25
trigger:
- platform: state
entity_id: binary_sensor.house_sts_dte_cheap
- platform: state
entity_id: binary_sensor.house_sts_guest
- platform: state
entity_id: binary_sensor.house_sts_vacation
- platform: state
entity_id: binary_sensor.house_sts_hvac_run
action:
- service: script.turn_on
target:
entity_id: script.hvac_run_stop_uni
- id: house_humid
alias: house_humid
initial_state: 'off'
trigger:
- entity_id: sensor.hvac_target_humidity
platform: state
condition: []
action:
- service: humidifier.set_humidity
target:
entity_id: humidifier.house
data:
humidity: '{{ states(''sensor.hvac_target_humidity'')|int(default=20) }}
'
- id: house_booster_on
alias: house_booster_on
initial_state: 'off'
trigger:
- entity_id: binary_sensor.hvac_fan_req
platform: state
condition: []
action:
- data:
entity_id: climate.hvac_local
fan_mode: "{% if is_state('binary_sensor.hvac_fan_req', 'on') %}\n Low\n{%\
\ else %} \n Auto low\n{% endif %}\n"
service: climate.set_fan_mode
- id: kitchen_fan_speed
alias: kitchen_fan_speed
initial_state: 'off'
trigger:
- entity_id: sensor.garage_entry_temperature
platform: state
- entity_id: fan.kitchen_fan
platform: state
condition:
- condition: state
entity_id: fan.kitchen_fan
state: 'on'
action:
- service: fan.set_percentage
data_template:
entity_id: fan.kitchen_fan
percentage: "{% if (states.sensor.garage_entry_temperature.state|float(default=0)\
\ > 80 ) %}\n 100\n{% elif (states.sensor.garage_entry_temperature.state|float(default=0)\
\ <= 80 ) and (states.sensor.garage_entry_temperature.state|float(default=0)\
\ > 76 ) %} \n 75\n{% elif (states.sensor.garage_entry_temperature.state|float(default=0)\
\ <= 76 ) and (states.sensor.garage_entry_temperature.state|float(default=0)\
\ > 74 ) %} \n 50\n{% elif (states.sensor.garage_entry_temperature.state|float(default=0)\
\ <= 74 ) %} \n 25\n{% endif %}\n"
- id: petbowl_leak
alias: petbowl_leak
initial_state: 'off'
trigger:
- platform: state
entity_id: binary_sensor.petbowl_leak
action:
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.petbowl_leak
state: 'off'
sequence:
- service: switch.turn_on
target:
entity_id: switch.water_bowl
default:
- service: switch.turn_off
target:
entity_id: switch.water_bowl
- id: main_bath_vent_control
alias: main_bath_vent_control
initial_state: 'off'
trigger:
- platform: state
entity_id: binary_sensor.main_bath_vent_needed
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.main_bath_vent_needed
state: 'on'
sequence:
- service: switch.turn_on
target:
entity_id: switch.main_bath_fan
default:
- service: switch.turn_off
target:
entity_id: switch.main_bath_fan
- alias: turn_off_house_water
initial_state: 'off'
trigger:
- entity_id: binary_sensor.leak_detectrd
platform: state
condition: []
action:
- data:
entity_id: switch.hub_drop_4_4025c2_water_supply
service: switch.turn_off
- id: off_occ_on
alias: off_occ_on
initial_state: 'off'
trigger:
- entity_id: binary_sensor.office_eth_va_office_eth_va_presence
platform: state
action:
- service: climate.set_hvac_mode
data_template:
hvac_mode: "{% if is_state('binary_sensor.office_eth_va_office_eth_va_presence',\
\ 'off') or is_state('binary_sensor.house_sts_hvac_heat_req', 'off') %}\n\
\ off\n{% else %}\n heat\n{% endif %}\n"
entity_id: climate.office_climate
- id: brett_home
alias: brett_home
initial_state: 'off'
trigger:
- entity_id: binary_sensor.brett_ble
platform: state
from: 'off'
to: 'on'
condition: []
action:
- service: device_tracker.see
data:
dev_id: device_tracker.google_maps_116842525089175776476
location_name: home
- id: liz_home
alias: liz_home
initial_state: 'off'
trigger:
- entity_id: binary_sensor.liz_ble
platform: state
from: 'off'
to: 'on'
condition: []
action:
- service: device_tracker.see
data:
dev_id: google_maps_108379141181739394475
location_name: home
- id: nursery_fan_speed
alias: nursery_fan_speed
initial_state: 'off'
trigger:
- entity_id: sensor.lottie_room_air_temperature
platform: state
- entity_id: fan.nursery_fan
platform: state
condition:
- condition: state
entity_id: fan.nursery_fan
state: 'on'
action:
- service: fan.set_percentage
data_template:
entity_id: fan.nursery_fan
data:
percentage: "{% if (states.sensor.lottie_room_air_temperature.state|float(default=0)\
\ > 80 ) %}\n 100\n{% elif (states.sensor.lottie_room_air_temperature.state|float(default=0)\
\ <= 80 ) and (states.sensor.lottie_room_air_temperature.state|float(default=0)\
\ > 76 ) %} \n 75\n{% elif (states.sensor.lottie_room_air_temperature.state|float(default=0)\
\ <= 76 ) and (states.sensor.lottie_room_air_temperature.state|float(default=0)\
\ > 74 ) %} \n 50\n{% elif (states.sensor.lottie_room_air_temperature.state|float(default=0)\
\ <= 74 ) %} \n 25\n{% endif %}\n"
- id: update_abode_disarmed
alias: update_abode_disarmed
initial_state: 'off'
trigger:
platform: state
entity_id: alarm_control_panel.abode_alarm
to: disarmed
action:
service: alarm_control_panel.alarm_disarm
entity_id: alarm_control_panel.alarm_panel
data:
code: secret alarmcode
- id: update_from_abode_disarmed
alias: update_from_abode_disarmed
initial_state: 'off'
trigger:
platform: state
entity_id: alarm_control_panel.alarm_panel
to: disarmed
action:
service: alarm_control_panel.alarm_disarm
entity_id: alarm_control_panel.abode_alarm
- id: update_abode_armed_away
alias: update_abode_armed_away
initial_state: 'off'
trigger:
platform: state
entity_id: alarm_control_panel.abode_alarm
to: armed_away
action:
service: alarm_control_panel.alarm_arm_away
entity_id: alarm_control_panel.alarm_panel
data:
code: secret alarmcode
- id: update_from_abode_armed_away
alias: update_from_abode_armed_away
initial_state: 'off'
trigger:
platform: state
entity_id: alarm_control_panel.alarm_panel
to: armed_away
action:
service: alarm_control_panel.alarm_arm_away
entity_id: alarm_control_panel.abode_alarm
- id: update_abode_armed_home
alias: update_abode_armed_home
initial_state: 'off'
trigger:
platform: state
entity_id: alarm_control_panel.abode_alarm
to: armed_home
action:
service: alarm_control_panel.alarm_arm_home
entity_id: alarm_control_panel.alarm_panel
data:
code: secret alarmcode
- id: update_from_abode_armed_home
alias: update_from_abode_armed_home
initial_state: 'off'
trigger:
platform: state
entity_id: alarm_control_panel.alarm_panel
to: armed_home
action:
service: alarm_control_panel.alarm_arm_home
entity_id: alarm_control_panel.abode_alarm
- id: kansas_playing
alias: kansas_playing
trigger:
- entity_id: sensor.kansas_basketball
platform: state
from:
- PRE
- IN
to:
- IN
- POST
- entity_id: sensor.kansas_football
platform: state
from:
- PRE
- IN
to:
- IN
- POST
- entity_id: sensor.kansas_volleyball
platform: state
from:
- PRE
- IN
to:
- IN
- POST
condition: []
action:
- if:
- condition: template
value_template: '{{ trigger.to_state.state == ''IN'' }}'
then:
- service: light.turn_on
data:
brightness: 255
entity_id: light.uhall_ban_hall_ban
color_name: white
effect: Jayhawks
- service: light.turn_on
data:
brightness: 255
entity_id: light.cabinet_top
color_name: white
effect: Jayhawks
- service: light.turn_on
data:
entity_id: light.jayhawk_candle
- data_template:
message: Jayhawks be playing.
service: notify.group_notify
else:
- service: light.turn_on
data:
brightness: 50
entity_id: light.uhall_ban_hall_ban
color_name: white
effect: None
- service: light.turn_on
data:
brightness: 255
entity_id: light.cabinet_top
color_name: white
effect: None
- service: light.turn_off
data:
entity_id: light.jayhawk_candle
mode: queued
- id: chiefs_playing
alias: chiefs_playing
trigger:
- entity_id: sensor.kansas_city_chiefs
platform: state
from:
- PRE
- IN
to:
- IN
- POST
condition: []
action:
- if:
- condition: template
value_template: '{{ trigger.to_state.state == ''IN'' }}'
then:
- service: light.turn_on
data:
brightness: 255
entity_id: light.uhall_ban_hall_ban
color_name: white
effect: Chiefs
- service: light.turn_on
data:
brightness: 255
entity_id: light.cabinet_top
color_name: white
effect: Chiefs
- data_template:
message: Chiefs be playing.
service: notify.group_notify
else:
- service: light.turn_on
data:
brightness: 50
entity_id: light.uhall_ban_hall_ban
color_name: white
effect: None
- service: light.turn_on
data:
brightness: 255
entity_id: light.cabinet_top
color_name: white
effect: None
mode: queued
- alias: ha_start
id: ha_start
trigger:
- platform: homeassistant
event: start
action:
- delay: 00:05:00
- variables:
cal_on: '{{ is_state(''calendar.teamcarriger_gmail_com'', ''on'') }}'
cal_msg: '{{ state_attr(''calendar.teamcarriger_gmail_com'', ''message'') |
default('''') | lower }}'
- service: input_boolean.turn_{{ 'on' if cal_on and 'dte cheap' in cal_msg else
'off' }}
target:
entity_id: input_boolean.house_sts_dte_cheap
- service: input_boolean.turn_{{ 'on' if cal_on and '4th of july lights' in cal_msg
else 'off' }}
target:
entity_id: input_boolean.independence_day
- service: input_boolean.turn_{{ 'on' if cal_on and 'xmas_lights' in cal_msg else
'off' }}
target:
entity_id: input_boolean.house_sts_xmas_lights
- service: automation.turn_on
target:
entity_id: all
- service: notify.group_notify
data:
message: Rejoice For now is the blessed time for home assistant has once again
booted.
data:
timeout: 300
tag: system
color: red
- alias: ha_down
id: ha_down
trigger:
- platform: homeassistant
event: shutdown
action:
- service: notify.group_notify
data:
message: Home Assistant is now shutting down
data:
timeout: 300
tag: system
color: red
- alias: house_sts_occupants
id: house_sts_occupants
trigger:
- platform: state
entity_id: binary_sensor.house_sts_occupants
action:
- service: script.turn_on
target:
entity_id: script.hvac_run_stop_uni
- choose:
- conditions: '{{ is_state(''binary_sensor.house_sts_occupants'', ''off'') and
is_state(''binary_sensor.house_sts_guest'', ''off'') }}
'
sequence:
- service: alarm_control_panel.alarm_arm_away
data:
entity_id: alarm_control_panel.alarm_panel
code: secret alarmcode
- service: script.turn_on
target:
entity_id: script.house_away
- conditions: '{{ is_state(''binary_sensor.house_sts_occupants'', ''off'') and
is_state(''binary_sensor.house_sts_vacation'', ''on'') }}
'
sequence:
- service: alarm_control_panel.alarm_arm_away
data:
entity_id: alarm_control_panel.alarm_panel
code: secret alarmcode
- service: scene.turn_on
target:
entity_id: scene.house_away
default:
- service: alarm_control_panel.alarm_disarm
data:
entity_id: alarm_control_panel.alarm_panel
code: secret alarmcode
- service: script.turn_on
target:
entity_id: script.house_home
- service: notify.group_notify
data:
message: Occupancy mode changed to {{ states('binary_sensor.house_sts_occupants')
}}
data:
timeout: 1200
channel: Occupancy
- alias: DTE_cheap_switch
id: DTE_cheap_switch
mode: queued
trigger:
- platform: calendar
event: start
entity_id: calendar.teamcarriger_gmail_com
- platform: calendar
event: end
entity_id: calendar.teamcarriger_gmail_com
condition:
- condition: template
value_template: '{{ ''DTE Cheap'' in trigger.calendar_event.summary }}'
action:
- choose:
- conditions: '{{ trigger.event == ''start'' }}'
sequence:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.house_sts_dte_cheap
default:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.house_sts_dte_cheap
- alias: house_guest_switch
id: house_guest_switch
mode: queued
trigger:
- platform: calendar
event: start
entity_id: calendar.teamcarriger_gmail_com
- platform: calendar
event: end
entity_id: calendar.teamcarriger_gmail_com
condition:
- condition: or
conditions:
- condition: template
value_template: '{{ ''in town'' in trigger.calendar_event.summary }}'
- condition: template
value_template: '{{ ''Date Night'' in trigger.calendar_event.summary }}'
- condition: template
value_template: '{{ ''Cleaners'' in trigger.calendar_event.summary }}'
action:
- choose:
- conditions: '{{ trigger.event == ''start'' }}'
sequence:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.house_sts_guest
default:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.house_sts_guest
- alias: house_vacation_switch
id: house_vacation_switch
mode: queued
trigger:
- platform: calendar
event: start
entity_id: calendar.teamcarriger_gmail_com
- platform: calendar
event: end
entity_id: calendar.teamcarriger_gmail_com
condition:
- condition: template
value_template: '{{ ''vacation'' in trigger.calendar_event.summary }}'
action:
- choose:
- conditions: '{{ trigger.event == ''start'' }}'
sequence:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.house_sts_vacation
default:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.house_sts_vacation
- id: update_abode_disarmed
alias: update_abode_disarmed
initial_state: 'off'
trigger:
platform: state
entity_id: alarm_control_panel.abode_alarm
to: disarmed
action:
service: alarm_control_panel.alarm_disarm
entity_id: alarm_control_panel.alarm_panel
data:
code: secret alarmcode
- id: update_from_abode_disarmed
alias: update_from_abode_disarmed
initial_state: 'off'
trigger:
platform: state
entity_id: alarm_control_panel.alarm_panel
to: disarmed
action:
service: alarm_control_panel.alarm_disarm
entity_id: alarm_control_panel.abode_alarm
- id: update_abode_armed_away
alias: update_abode_armed_away
initial_state: 'off'
trigger:
platform: state
entity_id: alarm_control_panel.abode_alarm
to: armed_away
action:
service: alarm_control_panel.alarm_arm_away
entity_id: alarm_control_panel.alarm_panel
data:
code: secret alarmcode
- id: update_from_abode_armed_away
alias: update_from_abode_armed_away
initial_state: 'off'
trigger:
platform: state
entity_id: alarm_control_panel.alarm_panel
to: armed_away
action:
service: alarm_control_panel.alarm_arm_away
entity_id: alarm_control_panel.abode_alarm
- id: update_abode_armed_home
alias: update_abode_armed_home
initial_state: 'off'
trigger:
platform: state
entity_id: alarm_control_panel.abode_alarm
to: armed_home
action:
service: alarm_control_panel.alarm_arm_home
entity_id: alarm_control_panel.alarm_panel
data:
code: secret alarmcode
- id: update_from_abode_armed_home
alias: update_from_abode_armed_home
initial_state: 'off'
trigger:
platform: state
entity_id: alarm_control_panel.alarm_panel
to: armed_home
action:
service: alarm_control_panel.alarm_arm_home
entity_id: alarm_control_panel.abode_alarm
- id: house_wakeup
alias: house_wakeup
initial_state: 'off'
trigger:
- platform: state
entity_id: binary_sensor.house_wakeup
to: 'on'
action:
- service: script.turn_on
target:
entity_id:
- script.hvac_run_stop_uni
- script.house_wakeup
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.house_sts_xmas_lights
state: 'on'
sequence:
- service: script.turn_on
target:
entity_id: script.xmas_light
- id: house_evening_mode
alias: house_evening_mode
initial_state: 'off'
trigger:
- platform: state
entity_id: binary_sensor.evening
to: 'on'
action:
- service: script.turn_on
target:
entity_id:
- script.hvac_run_stop_uni
- script.house_evening
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.house_sts_independence_day
state: 'on'
sequence:
- service: script.turn_on
target:
entity_id: script.independence_day
- conditions:
- condition: state
entity_id: binary_sensor.house_sts_xmas_lights
state: 'on'
sequence:
- service: script.turn_on
target:
entity_id: script.xmas_light
- conditions:
- condition: state
entity_id: binary_sensor.house_sts_halloween
state: 'on'
sequence:
- service: script.turn_on
target:
entity_id: script.halloween_light
- id: house_night_mode
alias: house_night_mode
initial_state: 'off'
trigger:
- platform: state
entity_id: binary_sensor.night
to: 'on'
action:
- service: cover.close_cover
target:
entity_id: cover.garage_door
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.house_sts_vacation
state: 'on'
sequence:
- service: alarm_control_panel.alarm_arm_away
data:
entity_id: alarm_control_panel.alarm_panel
code: secret alarmcode
default:
- service: alarm_control_panel.alarm_arm_home
data:
entity_id: alarm_control_panel.alarm_panel
code: secret alarmcode
- service: script.turn_on
target:
entity_id:
- script.hvac_run_setpoint
- script.house_night
- script.update_all_esphome_devices
- id: ext_lights_off
alias: ext_lights_off
initial_state: 'off'
trigger:
- platform: state
entity_id: binary_sensor.morning
to: 'on'
- platform: state
entity_id: binary_sensor.morning
to: 'on'
for:
hours: 1
minutes: 30
seconds: 0
action:
- service: script.turn_on
target:
entity_id: script.ext_lights_off