Skip to content

Instantly share code, notes, and snippets.

@m-abs
Forked from r3mcos3/ikea_open_close_remote.yaml
Last active November 29, 2025 23:14
Show Gist options
  • Select an option

  • Save m-abs/18f6a20a0db939cc69f4930b8d0bb28f to your computer and use it in GitHub Desktop.

Select an option

Save m-abs/18f6a20a0db939cc69f4930b8d0bb28f to your computer and use it in GitHub Desktop.
Home Assistant Blueprint For ZHA IKEA Open/Close Remote - stop open/close on second click - simplified
blueprint:
name: IKEA Open/Close Remote
description:
'''Control your roller blind with an IKEA 2 button remote (the square
ones).
this is the remote that''s been delivered by the "Fytur" and " Kadrilj"
roller blinds.''
'
domain: automation
input:
remote:
name: Remote
description: IKEA remote to use
selector:
device:
filter:
integration: zha
model: TRADFRI open/close remote
multiple: false
cover:
name: Roller Blind
description: Roller blind to control
selector:
entity:
filter:
domain: cover
multiple: false
source_url: https://gist.github.com/m-abs/18f6a20a0db939cc69f4930b8d0bb28f
mode: single
max_exceeded: silent
variables:
cover_entitity_id: !input cover
triggers:
- trigger: event
event_type: zha_event
event_data:
device_id: !input remote
actions:
- variables:
command: "{{ trigger.event.data.command }}"
current_state: "{{ states(cover_entitity_id) }}"
- action: cover.stop_cover
data:
entity_id: "{{ cover_entitity_id }}"
- choose:
- conditions:
- "{{ command == 'up_open' and current_state != 'opening' }}"
sequence:
- action: cover.open_cover
data:
entity_id: "{{ cover_entitity_id }}"
- conditions:
- "{{ command == 'down_close' and current_state != 'closing' }}"
sequence:
- action: cover.close_cover
data:
entity_id: "{{ cover_entitity_id }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment