1
0
ansible-home-assistant/scripts/10.modes.yaml

166 lines
4.7 KiB
YAML

good_night:
alias: Good Night
sequence:
- service: alarm_control_panel.alarm_arm_night
entity_id: alarm_control_panel.ha_alarm
- service: input_select.select_option
data:
option: Night
entity_id: input_select.home_mode
- service: light.turn_off
entity_id:
- light.desk_lightbar
- light.desk_lightbar_ambilight
- light.couch_lights
- light.tv_lights
- light.table_lamp
- light.kitchen_lights
- light.kitchen_sink_lighstrip
- light.bathroom_lights
- light.shower_lights
- light.bathroom_mirror_lights
- light.bathroom_minor_lights
- light.bedroom_lights
- light.bed_lightstrip
- light.bed_lamp
- light.hallway_light
- light.hallway_lightstrip
- light.computer_computer_cave_background
- light.bathroom_color_zha_group_0x0007
- service: switch.turn_off
entity_id:
- switch.desk_motor_on_off
- switch.printer_switch
- service: switch.turn_on
entity_id: switch.mute_doorbell
- service: input_boolean.turn_off
target:
entity_id: input_boolean.pc_caffeine
- service: script.pc_safe_off
- service: hassio.addon_stop
data:
addon: core_samba
- service: cover.close_cover
entity_id:
- cover.bedroom_blinds
- cover.computer_cave_blinds
- cover.living_room_blind
- service: lock.lock
target:
entity_id: lock.front_door_25f246fe_door_lock
- service: climate.turn_off
target:
entity_id: climate.ac
- service: script.tv_off
mode: single
icon: mdi:weather-night
good_morning:
alias: Good Morning
sequence:
- service: light.turn_on
data:
kelvin: 2000
brightness: 1
entity_id: light.bedroom_lights
- service: cover.set_cover_position
target:
entity_id: cover.living_room_blind
data:
position: 10
- service: light.turn_on
data:
kelvin: 5300
transition: 1800
brightness: 255
entity_id: light.bedroom_lights
- service: cover.open_cover
entity_id:
- cover.bedroom_blinds
- cover.computer_cave_blinds
- cover.living_room_blind
- service: alarm_control_panel.alarm_disarm
entity_id: alarm_control_panel.ha_alarm
- service: input_select.select_option
data:
option: Day
entity_id: input_select.home_mode
- service: switch.turn_on
entity_id: switch.computer_outlet
- service: switch.turn_off
entity_id: switch.mute_doorbell
mode: single
icon: mdi:weather-sunny
leave_home:
alias: Leave Home
sequence:
- service: alarm_control_panel.alarm_arm_away
entity_id: alarm_control_panel.ha_alarm
- service: input_select.select_option
data:
option: Away
entity_id: input_select.home_mode
- service: light.turn_off
entity_id:
- light.desk_lightbar
- light.desk_lightbar_ambilight
- light.couch_lights
- light.tv_lights
- light.table_lamp
- light.kitchen_lights
- light.kitchen_sink_lighstrip
- light.bathroom_lights
- light.shower_lights
- light.bathroom_mirror_lights
- light.bathroom_minor_lights
- light.bedroom_lights
- light.bed_lightstrip
- light.bed_lamp
- light.hallway_light
- light.hallway_lightstrip
- light.computer_computer_cave_background
- light.bathroom_color_zha_group_0x0007
- service: switch.turn_on
entity_id:
- switch.kitchen_camera_outlet_on_off
- switch.kitchen_state
- switch.hallway_state
- service: switch.turn_off
entity_id:
- switch.desk_motor_on_off
- switch.printer_switch
- service: script.pc_sleep
- service: lock.lock
target:
entity_id: lock.front_door_25f246fe_door_lock
- service: script.tv_off
- service: climate.turn_off
target:
entity_id: climate.ac
- service: climate.turn_off
target:
entity_id: climate.ac
mode: single
icon: mdi:home-export-outline
arrive_home:
alias: Arrive Home
sequence:
- service: alarm_control_panel.alarm_disarm
entity_id: alarm_control_panel.ha_alarm
- service: input_select.select_option
data:
option: Day
entity_id: input_select.home_mode
- service: switch.turn_on
entity_id:
- switch.desk_motor_on_off
- switch.computer_outlet
- service: switch.turn_off
entity_id:
- switch.kitchen_state
- switch.hallway_state
- switch.kitchen_camera_outlet_on_off
mode: single
icon: mdi:home-import-outline