Last active
October 1, 2024 03:11
-
-
Save felipefdl/d08fec1098edf6859c253c494a1a9fdc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
blueprint: | |
name: Control Blind with Remote | |
description: Use a remote control to operate a blind (open, close, stop) | |
domain: automation | |
input: | |
remote: | |
name: Remote Control | |
description: The remote control to use | |
selector: | |
device: | |
integration: zha | |
manufacturer: IKEA of Sweden | |
blind: | |
name: Blind Cover | |
description: The blind to control | |
selector: | |
entity: | |
domain: cover | |
trigger: | |
- platform: device | |
device_id: !input remote | |
domain: zha | |
type: remote_button_short_press | |
subtype: close | |
id: Close | |
- platform: device | |
device_id: !input remote | |
domain: zha | |
type: remote_button_short_press | |
subtype: open | |
id: Open | |
condition: [] | |
action: | |
- if: | |
- condition: or | |
conditions: | |
- condition: state | |
entity_id: !input blind | |
state: closing | |
- condition: state | |
entity_id: !input blind | |
state: opening | |
then: | |
- service: cover.stop_cover | |
data: | |
entity_id: !input blind | |
else: | |
- if: | |
- condition: trigger | |
id: Open | |
then: | |
- service: cover.open_cover | |
data: | |
entity_id: !input blind | |
else: | |
- service: cover.close_cover | |
data: | |
entity_id: !input blind | |
mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment