Adding smartwings and switchbot curtains to the automations.

This commit is contained in:
Jeffrey Stone 2022-02-24 23:37:03 -05:00
parent df4aea44fa
commit ab3719c5a2
1 changed files with 15 additions and 8 deletions

View File

@ -168,6 +168,10 @@ automation:
- service: switch.turn_on - service: switch.turn_on
data: data:
entity_id: switch.front_porch_light entity_id: switch.front_porch_light
- service: cover.close_cover
entity_id:
- cover.south_shade
- cover.living_room_2
- service: scene.turn_on - service: scene.turn_on
entity_id: scene.normal_livingroom_lighting entity_id: scene.normal_livingroom_lighting
- service: script.sunset_garage_open - service: script.sunset_garage_open
@ -263,16 +267,14 @@ automation:
trigger: trigger:
- platform: sun - platform: sun
event: sunrise event: sunrise
offset: 01:30:00 offset: 00:20:00
condition:
- condition: template
value_template: >
{%- if states.weather.klzu_hourly.state == "sunny" or states.weather.klzu_hourly.state == "partlycloudy" or states.weather.klzu_hourly.state == "clear" -%}
true
{%- endif -%}
action: action:
- service: scene.turn_on - service: scene.turn_on
entity_id: scene.skylar_room_day entity_id: scene.skylar_room_day
- service: cover.open_cover
entity_id:
- cover.south_shade
- cover.living_room_2
- id: 82b96b73-2407-49d7-8ea2-1f78a69e025b - id: 82b96b73-2407-49d7-8ea2-1f78a69e025b
alias: Jeff eta home alias: Jeff eta home
@ -396,4 +398,9 @@ script:
entity_id: group.garage_doors entity_id: group.garage_doors
state: 'on' state: 'on'
- service: script.turn_on - service: script.turn_on
entity_id: script.driveway_on entity_id: script.driveway_on
good_night_routine:
sequence:
- service: scene.turn_on
entity_id: scene.skylar_room_sleep