homeassistant/scripts.yaml

181 lines
4.2 KiB
YAML
Raw Normal View History

2025-01-10 21:08:35 -08:00
all_off:
alias: All Off
sequence:
- service: light.turn_off
target:
area_id:
- bar
- dining_room
- entry
- hallway
- kitchen
- master_bathroom
- master_bedroom
- office
- upstairs_bathroom
- service: switch.turn_off
target:
entity_id:
- switch.fireplace
- switch.garage_main_lights
- service: media_player.turn_off
target:
entity_id: media_player.tv_downstairs
- service: fan.turn_off
target:
entity_id: fan.sonoff_100110cd31
mode: single
icon: mdi:power
set_active_thermostat:
alias: Set Active Thermostat
sequence:
- service: climate.set_temperature
data:
target_temp_low: 65
hvac_mode: heat_cool
target_temp_high: 80
target:
entity_id: climate.sensi_st75u_thermostat
mode: single
icon: mdi:home-thermometer
set_away_thermostat:
alias: Set Passive Thermostat
sequence:
- data:
target_temp_low: 55
hvac_mode: heat_cool
target_temp_high: 98
target:
entity_id: climate.sensi_st75u_thermostat
action: climate.set_temperature
mode: single
icon: mdi:home-thermometer-outline
bed_time:
alias: Bed Time
sequence:
- data: {}
target:
entity_id: lock.front_door_deadbolt
action: lock.lock
- data: {}
target:
area_id:
- bar
- hallway
- dining_room
device_id:
- 450292563dacb1dff60b80e6732f1e01
- a4eb13866d7b6a4879742480c3141ed3
- c62e113ed82e042e2d2d8e609a7d46d4
- 66568d758c2b1f902afd337051181083
- 8b5cc977386dc8046390e9e274fc51bd
- dfb14d7be0e2860d96fa94b1b70886de
- a34b60a472120b07383ca0919ea5e0f3
- 90ac4212eec3165938da0845b28f5112
- 084ac7868c8a81c4038f69479fb22057
- 44ae1043569d5eff7f355b37949950b2
- d2367a399ee2683f658e141bd1bc7a7a
- c7daff2ca2de9e255dbabc66bdb7a980
- 8356a00a9e87a02de9c3422b2778c170
- 63e602f184339607849660b8087bbeb6
- 0465503d919b2acc59e4c91a697ba688
- c81c3d42e0cb630c0a7177aa6b697fd1
- 1af06d336b8777318acb08ce6e8e898a
entity_id:
- switch.back_yard_floodlight
- light.entry_light
- light.livingroom_room_light
- light.livingroom_light
action: homeassistant.turn_off
- data: {}
action: script.set_away_thermostat
- if:
- condition: state
entity_id: person.daniel
state: home
then:
- data:
timestamp: '{{ states(''sensor.daniel_s24_next_alarm'') | as_timestamp - 1800
}}'
target:
entity_id: input_datetime.wake_up
action: input_datetime.set_datetime
- target:
entity_id: scene.bedroom_night
metadata: {}
action: scene.turn_on
- delay:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
- data:
transition: 60
target:
area_id: master_bedroom
action: light.turn_off
mode: single
icon: mdi:bed
water_back_lawn:
alias: Water Back Lawn
sequence:
- service: switch.turn_on
data: {}
target:
entity_id: switch.yard_sprinkler
- wait_for_trigger:
- type: humidity
platform: device
device_id: fa11693b0a010609e10b2608bf075c08
entity_id: 33c9c19f9222979fca34dbf9e0f462ea
domain: sensor
above: 60
timeout:
hours: 0
minutes: 30
seconds: 0
milliseconds: 0
- service: switch.turn_off
data: {}
target:
entity_id: switch.yard_sprinkler
mode: single
icon: mdi:sprinkler
wake_up:
alias: Wake Up
sequence:
- service: script.set_active_thermostat
data: {}
- service: light.turn_on
data:
brightness_pct: 1
color_temp: 269
target:
area_id: master_bedroom
- service: light.turn_on
data:
brightness_pct: 100
transition: 300
target:
area_id: master_bedroom
mode: single
icon: mdi:bed
vacuum_downstairs:
alias: Vacuum Downstairs
sequence:
- service: vacuum.start
data: {}
target:
device_id: a4eb13866d7b6a4879742480c3141ed3
- delay:
hours: 0
minutes: 45
seconds: 0
milliseconds: 0
- service: vacuum.return_to_base
data: {}
target:
device_id: a4eb13866d7b6a4879742480c3141ed3
mode: single
icon: mdi:timer-outline