Skip to content

Instantly share code, notes, and snippets.

@busla
Created June 27, 2022 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save busla/57fe8f86cd74d7998a9013c0263ff27f to your computer and use it in GitHub Desktop.
Save busla/57fe8f86cd74d7998a9013c0263ff27f to your computer and use it in GitHub Desktop.
home assistant Fyrtur blueprint
# 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