-
Notifications
You must be signed in to change notification settings - Fork 0
/
Z2M_IKEA_SYMFONISK_G2_2123.yaml
207 lines (202 loc) · 6.65 KB
/
Z2M_IKEA_SYMFONISK_G2_2123.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
blueprint:
name: Z2M - IKEA 7-button remote (Symfonisk gen2 2123)
description:
This blueprint is for the IKEA round, 7-button remote when used with
Zigbee2MQTT. It is for genral use so all buttons can be connected to any action
of your choice.
Based on https://community.home-assistant.io/t/zigbee2mqtt-ikea-5-button-remote-general-use/263885
by finch.
source_url: https://github.com/mihsu81/blueprints/blob/main/Z2M_IKEA_SYMFONISK_G2_2123.yaml
domain: automation
input:
remote:
name: Remote
description: IKEA remote to use
selector:
entity:
integration: mqtt
domain: sensor
button_play_pause:
name: Play button
description: Action to run when pressed Play button
default: []
selector:
action: {}
button_track_previous:
name: Previous Track button
description: Action to run when pressed Previous Track button
default: []
selector:
action: {}
button_track_next:
name: Next Track button
description: Action to run when pressed Next Track button
default: []
selector:
action: {}
button_volume_up_short:
name: Volume Up button - short press
description: Action to run when SHORT pressed on Volume Up button
default: []
selector:
action: {}
button_volume_up_long:
name: Volume Up button - long press
description: Action to run when LONG pressed on Volume Up button
default: []
selector:
action: {}
button_volume_down_short:
name: Volume Down button - short press
description: Action to run when SHORT pressed on Volume Down button
default: []
selector:
action: {}
button_volume_down_long:
name: Volume Down button - long press
description: Action to run when LONG pressed on Volume Down button
default: []
selector:
action: {}
button_dots_1_initial_press:
name: 1 Dot button - short press
description: Action to run when SHORT pressed on 1 Dot button
default: []
selector:
action: {}
button_dots_1_long_press:
name: 1 Dot button - long press
description: Action to run when LONG pressed on 1 Dot button
default: []
selector:
action: {}
button_dots_1_double_press:
name: 1 Dot button - double press
description: Action to run when DOUBLE pressed on 1 Dot button
default: []
selector:
action: {}
button_dots_1_short_release:
name: 1 Dot button - release after short press
description: Action to run when released after SHORT pressed on 1 Dot button
default: []
selector:
action: {}
button_dots_1_long_release:
name: 1 Dot button - release after long press
description: Action to run when released after LONG pressed on 1 Dot button
default: []
selector:
action: {}
button_dots_2_initial_press:
name: 2 Dots button - short press
description: Action to run when SHORT pressed on 2 Dots button
default: []
selector:
action: {}
button_dots_2_long_press:
name: 2 Dots button - long press
description: Action to run when LONG pressed on 2 Dots button
default: []
selector:
action: {}
button_dots_2_double_press:
name: 2 Dots button - double press
description: Action to run when DOUBLE pressed on 2 Dots button
default: []
selector:
action: {}
button_dots_2_short_release:
name: 2 Dots button - release after short press
description: Action to run when released after SHORT pressed on 2 Dots button
default: []
selector:
action: {}
button_dots_2_long_release:
name: 2 Dots button - release after long press
description: Action to run when released after LONG pressed on 2 Dots button
default: []
selector:
action: {}
mode: restart
max_exceeded: silent
trigger:
- platform: state
entity_id: !input "remote"
# attribute: action
to:
- "toggle"
- "track_previous"
- "track_next"
- "volume_up"
- "volume_down"
- "volume_up_hold"
- "volume_down_hold"
- "dots_1_initial_press"
- "dots_2_initial_press"
- "dots_1_long_press"
- "dots_2_long_press"
- "dots_1_short_release"
- "dots_2_short_release"
- "dots_1_long_release"
- "dots_2_long_release"
- "dots_1_double_press"
- "dots_2_double_press"
variables:
command: "{{ trigger.to_state.state }}"
condition:
- condition: template
value_template: "{{ command != ''}}"
action:
- choose:
- conditions:
- "{{ command == 'toggle' }}"
sequence: !input "button_play_pause"
- conditions:
- "{{ command == 'track_previous' }}"
sequence: !input "button_track_previous"
- conditions:
- "{{ command == 'track_next' }}"
sequence: !input "button_track_next"
- conditions:
- "{{ command == 'volume_up' }}"
sequence: !input "button_volume_up_short"
- conditions:
- "{{ command == 'volume_up_hold' }}"
sequence: !input "button_volume_up_long"
- conditions:
- "{{ command == 'volume_down' }}"
sequence: !input "button_volume_down_short"
- conditions:
- "{{ command == 'volume_down_hold' }}"
sequence: !input "button_volume_down_long"
- conditions:
- "{{ command == 'dots_1_initial_press' }}"
sequence: !input "button_dots_1_initial_press"
- conditions:
- "{{ command == 'dots_1_long_press' }}"
sequence: !input "button_dots_1_long_press"
- conditions:
- "{{ command == 'dots_1_double_press' }}"
sequence: !input "button_dots_1_double_press"
- conditions:
- "{{ command == 'dots_1_short_release' }}"
sequence: !input "button_dots_1_short_release"
- conditions:
- "{{ command == 'dots_1_long_release' }}"
sequence: !input "button_dots_1_long_release"
- conditions:
- "{{ command == 'dots_2_initial_press' }}"
sequence: !input "button_dots_2_initial_press"
- conditions:
- "{{ command == 'dots_2_long_press' }}"
sequence: !input "button_dots_2_long_press"
- conditions:
- "{{ command == 'dots_2_double_press' }}"
sequence: !input "button_dots_2_double_press"
- conditions:
- "{{ command == 'dots_2_short_release' }}"
sequence: !input "button_dots_2_short_release"
- conditions:
- "{{ command == 'dots_2_long_release' }}"
sequence: !input "button_dots_2_long_release"