Skip to content

Commit

Permalink
Added sun elevation before opening blinds based on luminosity.
Browse files Browse the repository at this point in the history
  • Loading branch information
dannytsang committed Jan 19, 2025
1 parent 11d5424 commit d5d94d6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/rooms/living_room.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,12 @@ automation:
- condition: state
entity_id: binary_sensor.living_room_windows
state: "off"
- condition: state
entity_id: group.family_computer
state: "not_home"
- condition: state
entity_id: group.terinas_work_computer
state: "not_home"
- or:
- condition: numeric_state
entity_id: cover.living_room_blinds_left
Expand Down
4 changes: 4 additions & 0 deletions packages/rooms/office.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,10 @@ automation:
- condition: state
entity_id: light.office_key_lights
state: "off"
- condition: numeric_state
entity_id: sun.sun
attribute: elevation
above: input_number.office_blinds_afternoon_sun_elevation_threshold
actions:
- parallel:
- action: script.send_to_home_log
Expand Down

0 comments on commit d5d94d6

Please sign in to comment.