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

44 lines
1.2 KiB
YAML
Raw Normal View History

2021-01-11 00:33:46 +00:00
- alias: Goodnight
sequence:
- service: light.turn_off
entity_id:
- light.desk_lamp
- light.computer_lights
- light.tv_lights
- light.couch_lamp
- 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
- service: alarm_control_panel.alarm_arm_night
entity_id: alarm_control_panel.ha_alarm
- service: switch.turn_off
entity_id:
- switch.computer_outlet
- service: input_select.select_option
data:
option: Night
entity_id: input_select.home_mode
mode: single
icon: 'mdi:weather-night'
- alias: Goodmorning
sequence:
- service: alarm_control_panel.alarm_arm_night
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
data: { }
entity_id: switch.computer_outlet
mode: single