Last active
June 5, 2023 13:26
-
-
Save devilmonastery/5dfe1c101e66b5907dd394554b5bb0d2 to your computer and use it in GitHub Desktop.
Home Assistant KNX blinds automation example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias: "general: blinds vs the daystar" | |
description: "" | |
trigger: | |
- platform: state | |
entity_id: | |
- binary_sensor.knx_31_1_100 | |
to: "off" | |
- platform: state | |
entity_id: | |
- binary_sensor.sun_in_east_windows | |
- binary_sensor.sun_in_north_windows | |
condition: [] | |
action: | |
- choose: | |
- conditions: | |
- condition: state | |
entity_id: binary_sensor.sun_in_east_windows | |
state: "on" | |
sequence: | |
- service: cover.close_cover | |
data: {} | |
target: | |
entity_id: | |
- cover.dining_room | |
- cover.guest_room | |
- cover.living_room_left | |
- cover.living_room_right | |
- cover.office_side | |
- cover.owners_suite | |
- cover.downstairs_awning | |
- cover.upstairs_awning | |
- conditions: | |
- condition: state | |
entity_id: binary_sensor.sun_in_east_windows | |
state: "off" | |
sequence: | |
- service: cover.open_cover | |
data: {} | |
target: | |
entity_id: | |
- cover.dining_room | |
- cover.downstairs_awning | |
- cover.guest_room | |
- cover.office_side | |
- cover.owners_suite | |
- cover.upstairs_awning | |
- condition: state | |
entity_id: binary_sensor.living_room_media_playing | |
state: "off" | |
- service: cover.open_cover | |
data: {} | |
target: | |
entity_id: | |
- cover.living_room_left | |
- cover.living_room_right | |
- choose: | |
- conditions: | |
- condition: state | |
entity_id: binary_sensor.sun_in_north_windows | |
state: "on" | |
sequence: | |
- service: cover.close_cover | |
data: {} | |
target: | |
entity_id: | |
- cover.office_rear | |
- conditions: | |
- condition: state | |
entity_id: binary_sensor.sun_in_north_windows | |
state: "off" | |
sequence: | |
- service: cover.open_cover | |
data: {} | |
target: | |
entity_id: | |
- cover.office_rear | |
mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment