Home-AssistantConfig/config/automation/late_night_outside_helper.yaml

64 lines
1.9 KiB
YAML
Raw Normal View History

2018-01-02 00:00:45 +00:00
###################################
## Late Night lights Section
# @CCOSTAN
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
###################################
- alias: 'Late Night Helper outside'
2020-07-20 18:33:03 +00:00
id: 14115d72-6bea-41c1-8411-1eaf41b4ef2b
2018-01-02 00:00:45 +00:00
trigger:
- platform: state
entity_id: group.garage_doors
- platform: state
entity_id: binary_sensor.mcu1_gpio5 #front door
2018-01-02 00:00:45 +00:00
- platform: state
entity_id: sun.sun
to: 'below_horizon'
from: 'above_horizon'
condition:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
2018-01-02 00:00:45 +00:00
action:
- service: scene.turn_on
entity_id: scene.front_full_brightness
2020-06-09 17:57:37 +00:00
2020-09-23 00:15:39 +00:00
- choose:
- conditions: >
{{ states.group.entry_points.state == 'on' or
states.group.garage_doors.state != 'closed' }}
sequence:
- service: scene.turn_on
entity_id: scene.Red_living_Room
default:
- service: scene.turn_on
entity_id: scene.tv_time
- service: >
{% set hour=states("sensor.time").split(':')[0] | int %}
{% if hour >= 5 and hour <= 9 and states.group.bed.state == 'on'%}
switch.turn_off
{% else %}
switch.turn_on
{% endif %}
2018-01-02 00:00:45 +00:00
entity_id:
2019-08-17 19:18:36 +00:00
- group.master_bathroom_accents
2018-01-02 00:00:45 +00:00
- switch.back_landscaping
- switch.front_door_outlet
- switch.foyer_outlet
- wait_template: "{{ is_state('group.entry_points', 'off') }}"
- wait_template: "{{ is_state('group.garage_doors', 'closed') }}"
2018-01-02 00:00:45 +00:00
- service: script.monthly_color_scene
2020-09-23 00:15:39 +00:00
- choose:
- conditions: >
{{ states.group.entry_points.state == 'on' or
states.group.garage_doors.state != 'closed' }}
sequence:
- service: scene.turn_on
entity_id: scene.Red_living_Room
default:
- service: scene.turn_on
entity_id: scene.tv_time