Great Idea to turn on the lights if the front door is opened. https://github.com/adonno/Home-AssistantConfig/issues/36

This commit is contained in:
ccostan 2020-12-27 16:21:37 -05:00
parent 9a79d92da8
commit ca87dc2d8c
1 changed files with 4 additions and 2 deletions

View File

@ -8,6 +8,8 @@
trigger: trigger:
- platform: state - platform: state
entity_id: group.garage_doors entity_id: group.garage_doors
- platform: state
entity_id: binary_sensor.mcu1_gpio5 #front door
- platform: state - platform: state
entity_id: sun.sun entity_id: sun.sun
to: 'below_horizon' to: 'below_horizon'
@ -45,8 +47,8 @@
- switch.back_landscaping - switch.back_landscaping
- switch.front_door_outlet - switch.front_door_outlet
- switch.foyer_outlet - switch.foyer_outlet
- wait_template: >- - wait_template: "{{ is_state('states.group.entry_points.state', 'off') }}"
{{ states.group.garage_doors.state == 'closed' }} - wait_template: "{{ is_state( 'group.garage_doors', 'closed') }}"
- service: script.monthly_color_scene - service: script.monthly_color_scene
- choose: - choose:
- conditions: > - conditions: >