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

275 lines
7.6 KiB
YAML

good_night:
alias: Good Night
mode: single
icon: mdi:weather-night
sequence:
- service: input_boolean.turn_off
target:
entity_id:
- input_boolean.meal_helper
- input_boolean.meal_alert
- service: input_select.select_option
data:
option: Night
entity_id: input_select.home_mode
- service: script.cctv_on
- service: script.alarm_arm_stay
- service: script.bedroom_lights_off
- service: script.bedroom_bed_lamp_on
- choose:
- conditions:
- condition: state
entity_id: input_boolean.3d_printer_timelapse
state: 'off'
sequence:
- service: light.turn_off
entity_id:
- light.3d_printer_light
- service: switch.turn_off
entity_id:
- switch.printer_switch
- service: script.humidifier_off
- service: cover.close_cover
entity_id:
- cover.bedroom_blinds
- cover.dining_blinds
- cover.office_blinds
- choose:
- conditions:
- condition: state
entity_id: lock.front_door_lock_doorlock
state: unlocked
sequence:
- service: lock.lock
target:
entity_id: lock.front_door_lock_doorlock
- choose:
- conditions:
- condition: numeric_state
entity_id: sensor.ble_temperature_bedroom_sensor_ble
below: '26'
sequence:
- service: climate.turn_off
target:
entity_id: climate.ac
- 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: script.tv_off
- service: climate.set_temperature
data:
temperature: 20
target:
entity_id:
- climate.office_thermostat
- climate.dining_thermostat
- service: light.turn_off
entity_id:
- light.wled_star
- light.couch_lights
- light.tv_lights
- light.office
- light.kitchen_lights
- light.bedroom_lights
- light.bed_lightstrip
- light.kitchen_sink_lighstrip
- light.bathroom_lights
- light.shower_lights
- light.bathroom_mirror_lights
- light.bathroom_color_zha_group_0x0007
- light.hallway_light
- light.hallway_lightstrip
- light.balcony
- light.table_lamp_lights
- light.lego_bookcase_light
before_wakeup:
alias: Before wakeup
sequence:
- service: climate.set_temperature
data:
temperature: 25
target:
entity_id:
- climate.office_thermostat
- climate.dining_thermostat
good_morning:
alias: Good Morning
mode: single
icon: mdi:weather-sunny
sequence:
- service: script.alarm_disarm
- service: input_select.select_option
data:
option: Day
entity_id: input_select.home_mode
- service: input_boolean.turn_on
target:
entity_id: input_boolean.meal_alert
- service: input_boolean.turn_off
target:
entity_id: input_boolean.daily_coffee
- service: script.cctv_off
- service: cover.open_cover
entity_id:
- cover.bedroom_blinds
- cover.dining_blinds
- cover.office_blinds
- service: switch.turn_on
entity_id:
- switch.computer_outlet
- service: script.humidifier_on
- service: switch.turn_on
target:
entity_id: switch.coffee_machine_on_off
- service: light.turn_on
target:
entity_id: light.lego_bookcase_light
- service: climate.set_temperature
data:
temperature: 23
target:
entity_id:
- climate.dining_thermostat
- service: climate.set_temperature
data:
temperature: 25
target:
entity_id:
- climate.office_thermostat
- service: climate.set_temperature
data:
temperature: 21
target:
entity_id:
- climate.bedroom_thermostat
- choose:
- conditions:
- condition: state
entity_id: switch.3d_printer
state: 'on'
sequence:
- service: light.turn_on
entity_id: light.3d_printer_light
leave_home:
alias: Leave Home
mode: single
icon: mdi:home-export-outline
sequence:
- service: script.alarm_arm_away
- service: input_select.select_option
data:
option: Away
entity_id: input_select.home_mode
- service: script.cctv_on
- choose:
- conditions:
- condition: state
entity_id: input_boolean.3d_printer_timelapse
state: 'off'
sequence:
- service: light.turn_off
entity_id:
- light.3d_printer_light
- service: switch.turn_off
entity_id:
- switch.printer_switch
- service: script.pc_sleep
- choose:
- conditions:
- condition: state
entity_id: lock.front_door_lock_doorlock
state: unlocked
sequence:
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.front_door_open_close
state: 'on'
sequence:
- wait_for_trigger:
- platform: state
entity_id: binary_sensor.front_door_open_close
to: 'off'
- service: lock.lock
data: { }
target:
entity_id: lock.front_door_lock_doorlock
- service: script.tv_off
- service: climate.turn_off
target:
entity_id: climate.ac
- service: script.vacuum_today
- service: climate.set_temperature
data:
temperature: 18
target:
entity_id:
- climate.office_thermostat
- climate.dining_thermostat
- climate.bedroom_thermostat
- service: light.turn_off
entity_id:
- light.couch_lights
- light.tv_lights
- light.office
- light.kitchen_lights
- light.bedroom_lights
- light.bed_lamps
- light.bed_lightstrip
- light.kitchen_sink_lighstrip
- light.bathroom_lights
- light.shower_lights
- light.bathroom_mirror_lights
- light.bathroom_color_zha_group_0x0007
- light.hallway_light
- light.hallway_lightstrip
- light.balcony
- light.table_lamp_lights
- light.lego_bookcase_light
arrive_home:
alias: Arrive Home
mode: single
icon: mdi:home-import-outline
sequence:
- service: script.alarm_disarm
- service: input_select.select_option
data:
option: Day
entity_id: input_select.home_mode
- service: script.cctv_off
- service: switch.turn_on
entity_id:
- switch.computer_outlet
- service: climate.set_temperature
data:
temperature: 23
target:
entity_id:
- climate.dining_thermostat
- climate.bedroom_thermostat
- service: climate.set_temperature
data:
temperature: 25
target:
entity_id:
- climate.office_thermostat
- choose:
- conditions:
- condition: state
entity_id: switch.3d_printer
state: 'on'
sequence:
- service: light.turn_on
entity_id: light.3d_printer_light
- service: light.turn_on
entity_id:
- light.lego_bookcase_light