Skip to content

Instantly share code, notes, and snippets.

@thomaskonrad
Last active April 5, 2022 20:18
Show Gist options
  • Save thomaskonrad/f441c3f3d3bb9f5c722eabb31d4cb3e4 to your computer and use it in GitHub Desktop.
Save thomaskonrad/f441c3f3d3bb9f5c722eabb31d4cb3e4 to your computer and use it in GitHub Desktop.
A Home Assistant blueprint to automatically set the cover position depending on the sun position
blueprint:
name: Automatic Covers
description: A Home Assistant blueprint to automatically set the cover position depending on the sun position
domain: automation
input:
shutter_automatic_input:
name: Shutter Automatic Input
selector:
entity:
domain: input_boolean
start_azimuth:
name: Start Azimuth
default: 180
selector:
number:
min: 0
max: 360
unit_of_measurement: degrees
step: 1.0
mode: slider
end_azimuth:
name: End Azimuth
default: 180
selector:
number:
min: 0
max: 360
unit_of_measurement: degrees
step: 1.0
mode: slider
mode: single
max_exceeded: silent
trigger:
- platform: time_pattern
seconds: "/5"
#condition:
# condition: state
# entity_id: !input 'shutter_automatic_input'
# state: 'true'
action:
- service: system_log.write
data:
message: "Automatic covers automation triggered"
level: warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment