Created
June 27, 2022 19:05
-
-
Save busla/57fe8f86cd74d7998a9013c0263ff27f to your computer and use it in GitHub Desktop.
home assistant Fyrtur blueprint
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
# Take from here: https://community.home-assistant.io/t/deconz-ikea-tradfri-open-close-including-press-and-hold/328845?u=vanmak | |
blueprint: | |
name: deCONZ - IKEA Tradfri open/close switch | |
description: | | |
"Control Furtur roller blind with IKEA Tradfri open/close switch | |
Select the Tradfri remote and your blinds. | |
You can open or close the blinds all the way with a single click, hold the button down to adjust them, or hit the opposing button while in motion to stop them." | |
domain: automation | |
input: | |
remote: | |
name: Remote | |
description: The remote that will control the shades | |
selector: | |
device: | |
integration: deconz | |
manufacturer: 'IKEA of Sweden' | |
model: 'TRADFRI open/close remote' | |
cover: | |
name: Cover | |
description: The cover that will be controlled | |
selector: | |
target: | |
entity: | |
domain: cover | |
mode: restart | |
trigger: | |
- platform: event | |
event_type: deconz_event | |
event_data: | |
device_id: !input 'remote' | |
action: | |
- variables: | |
event: "{{ trigger.event.data.event }}" | |
- choose: | |
- conditions: | |
- "{{ event == 1002 }}" | |
sequence: | |
- service: cover.open_cover | |
target: !input 'cover' | |
- conditions: | |
- "{{ event == 2002 }}" | |
sequence: | |
- service: cover.close_cover | |
target: !input 'cover' | |
- conditions: | |
- "{{ event == 1003 }}" | |
sequence: | |
- service: cover.stop_cover | |
target: !input 'cover' | |
- conditions: | |
- "{{ event == 2003 }}" | |
sequence: | |
- service: cover.stop_cover | |
target: !input 'cover' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment