-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzha-fyrtur-openclose.yaml
49 lines (48 loc) · 1.46 KB
/
zha-fyrtur-openclose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# https://community.home-assistant.io/t/zha-ikea-open-close-switch-for-covers-e-g-kadrilj-fyrtur/258904
# https://github.com/PerfectlyNormal/ha-blueprint/blob/main/zha-fyrtur-openclose.yaml
blueprint:
name: Cover control with Tradfri open/close remote
description: |
Control a cover with an Ikea Tradfri open/close button remote over ZHA
Short press on ☼ button will open the cover.
Short press on ☰ button will close the cover.
Long press on ☼ or ☰ will stop the cover.
domain: automation
input:
remote:
name: Remote
description: "IKEA open/close remote to use"
selector:
device:
integration: zha
model: "TRADFRI open/close remote"
cover:
name: Cover
description: The cover to control
selector:
target:
entity:
domain: cover
trigger:
- platform: event
event_type: zha_event
event_data:
device_id: !input remote
action:
- choose:
- conditions:
- '{{ trigger.event.data.command == "up_open" }}'
sequence:
- service: cover.open_cover
target: !input cover
- conditions:
- '{{ trigger.event.data.command == "down_close" }}'
sequence:
- service: cover.close_cover
target: !input cover
- conditions:
- '{{ trigger.event.data.command in ("stop", "stop_opening", "stop_closing") }}'
sequence:
- service: cover.stop_cover
target: !input cover
mode: restart