Skip to content

Commit

Permalink
turn on or off office blind automated control on work from home days
Browse files Browse the repository at this point in the history
  • Loading branch information
yp87 committed Nov 2, 2024
1 parent 7ee2698 commit 0e1cd0c
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions hass/automation/appliances/blinds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,51 @@
action:
- service: cover.close_cover
entity_id: cover.office_window_blind

- alias: Sync office blind with sun when working
id: sync_office_blind_with_sun_when_working
trigger:
- platform: time
at: "07:00:00"
- platform: time
at: "16:20:00"
condition:
- condition: time
weekday:
- mon
- wed
- fri
action:
- service: >
{% if trigger.now.strftime('%H:%M:%S') == '07:00:00' %}
switch.turn_on
{% elif trigger.now.strftime('%H:%M:%S') == '16:20:00' %}
switch.turn_off
{% endif %}
entity_id: switch.vertical_toggle_control_office
- alias: Turn on office blind control in the morning on work from home days
id: turn_on_office_blind_in_the_morning
trigger:
- platform: time
at: "07:00:00"
weekday:
- mon
- wed
- fri
action:
- service: switch.turn_on
entity_id: switch.vertical_toggle_control_office

- alias: Turn off office blind control in the evening on work from home days
id: turn_off_office_blind_in_the_evening
trigger:
- platform: time
at: "16:20:00"
weekday:
- mon
- wed
- fri
action:
- service: switch.turn_off
entity_id: switch.vertical_toggle_control_office

0 comments on commit 0e1cd0c

Please sign in to comment.