-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWallMote 7 Blueprint.txt
155 lines (142 loc) · 4.6 KB
/
WallMote 7 Blueprint.txt
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
blueprint:
name: Aeotec ZWA022
description: Aeotec ZWA022 Switch using the ZWave-JS integration.
domain: automation
input:
zwave_device:
name: Aeotec ZWA022
description: "List of available ZWA022 switch."
selector:
device:
integration: zwave_js
manufacturer: Aeotec Ltd.
model: ZWA022
KeyReleased_Up:
name: Up Released
description: "Action to run, when the button is released."
default: []
selector:
action: {}
KeyReleased_Down:
name: Down Released
description: "Action to run, when the button is released."
default: []
selector:
action: {}
KeyHeld_Up:
name: Up Held
description: "Action to run, when the button is held."
default: []
selector:
action: {}
KeyHeld_Down:
name: Down Held
description: "Action to run, when the button is held."
default: []
selector:
action: {}
KeyPressed_Up:
name: Up press 1x
description: "Action to run, when the button is pressed one time."
default: []
selector:
action: {}
KeyPressed_Down:
name: Down press 1x
description: "Action to run, when the button is pressed one time."
default: []
selector:
action: {}
KeyPressed2x_Up:
name: Up press 2x
description: "Action to run, when the button is pressed two time."
default: []
selector:
action: {}
KeyPressed2x_Down:
name: Down press 2x
description: "Action to run, when the button is pressed two time."
default: []
selector:
action: {}
KeyPressed3x_Up:
name: Up press 3x
description: "Action to run, when the button is pressed three time."
default: []
selector:
action: {}
KeyPressed3x_Down:
name: Down press 3x
description: "Action to run, when the button is pressed three time."
default: []
selector:
action: {}
KeyPressed4x_Up:
name: Up press 4x
description: "Action to run, when the button is pressed four time."
default: []
selector:
action: {}
KeyPressed4x_Down:
name: Down press 4x
description: "Action to run, when the button is pressed four time."
default: []
selector:
action: {}
KeyPressed5x_Up:
name: Up press 5x
description: "Action to run, when the button is pressed five time."
default: []
selector:
action: {}
KeyPressed5x_Down:
name: Down press 5x
description: "Action to run, when the button is pressed five time."
default: []
selector:
action: {}
mode: single
max_exceeded: silent
variables:
device_id: !input zwave_device
trigger:
- platform: event
event_type: zwave_js_event
condition: "{{ trigger.event.data.device_id == device_id }}"
action:
- variables:
button_id: "{{ trigger.event.data.property_key_name }}"
press_count: "{{ trigger.event.data.value }}"
- service: "logbook.log"
data:
name: "Button Id"
message: "{{ button_id }}"
- service: "logbook.log"
data:
name: "Press Count"
message: "{{ press_count }}"
- service: "logbook.log"
data:
name: "Device"
message: "{{ zwave_device }}"
- choose:
- conditions: '{{ button_id == "002" and press_count == "KeyPressed" }}'
sequence: !input KeyPressed_Down
- conditions: '{{ button_id == "001" and press_count == "KeyPressed" }}'
sequence: !input KeyPressed_Up
- conditions: '{{ button_id == "002" and press_count == "KeyPressed2x" }}'
sequence: !input KeyPressed2x_Down
- conditions: '{{ button_id == "001" and press_count == "KeyPressed2x" }}'
sequence: !input KeyPressed2x_Up
- conditions: '{{ button_id == "002" and press_count == "KeyPressed3x" }}'
sequence: !input KeyPressed3x_Down
- conditions: '{{ button_id == "001" and press_count == "KeyPressed3x" }}'
sequence: !input KeyPressed3x_Up
- conditions: '{{ button_id == "002" and press_count == "KeyPressed4x" }}'
sequence: !input KeyPressed4x_Down
- conditions: '{{ button_id == "001" and press_count == "KeyPressed4x" }}'
sequence: !input KeyPressed4x_Up
- conditions: '{{ button_id == "002" and press_count == "KeyPressed5x" }}'
sequence: !input KeyPressed5x_Down
- conditions: '{{ button_id == "001" and press_count == "KeyPressed5x" }}'
sequence: !input KeyPressed5x_Up