Skip to content

Instantly share code, notes, and snippets.

@trunneml
Created November 9, 2024 11:30
Show Gist options
  • Save trunneml/a534a89fa3e9df48c85bf181a659f35d to your computer and use it in GitHub Desktop.
Save trunneml/a534a89fa3e9df48c85bf181a659f35d to your computer and use it in GitHub Desktop.
Home Assistant Blueprint to open Cover when window opens
blueprint:
name: Open Cover when window open
description: Opens the cover when the window was opened
domain: automation
input:
cover_entity:
name: Cover Entity
description: Cover that should be controlled
selector:
entity:
domain:
- cover
window_sensor:
name: Window Sensor
selector:
entity:
domain:
- binary_sensor
device_class:
- door
- window
mode: single
trigger:
- platform: state
entity_id:
- !input window_sensor
to: 'on'
condition: []
action:
- action: cover.open_cover
metadata: {}
data: {}
target:
entity_id: !input cover_entity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment