Forked from r3mcos3/ikea_open_close_remote.yaml
Last active
January 18, 2025 06:23
-
-
Save MrTechGadget/39b88509286fab06dec0c7a93d7b02e3 to your computer and use it in GitHub Desktop.
Home Assistant Blueprint For ZHA IKEA Open/Close Remote
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: 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: | |
integration: zha | |
model: TRADFRI open/close remote | |
cover: | |
name: Roller Blind | |
description: Roller blind to control | |
selector: | |
entity: | |
domain: cover | |
mode: single | |
max_exceeded: silent | |
trigger: | |
- platform: event | |
event_type: zha_event | |
event_data: | |
device_id: !input 'remote' | |
action: | |
- variables: | |
command: '{{ trigger.event.data.command }}' | |
- choose: | |
- conditions: | |
- '{{ command == ''up_open'' }}' | |
sequence: | |
- service: cover.open_cover | |
entity_id: !input cover | |
- conditions: | |
- '{{ command == ''down_close'' }}' | |
sequence: | |
- service: cover.close_cover | |
entity_id: !input cover | |
- conditions: | |
- '{{ command == ''stop'' }}' | |
sequence: | |
- service: cover.stop_cover | |
entity_id: !input cover | |
- conditions: | |
- '{{ command == ''stop_opening'' }}' | |
sequence: | |
- service: cover.stop_cover | |
entity_id: !input cover | |
- conditions: | |
- '{{ command == ''stop_closing'' }}' | |
sequence: | |
- service: cover.stop_cover | |
entity_id: !input cover |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment