-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathblueprint_lzw36.yaml
169 lines (169 loc) · 5.68 KB
/
blueprint_lzw36.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
blueprint:
name: Inovelli Red Series LZW36 Fan Controller (ZWave-JS)
description: Create automations for the Inovelli Fan/Switch combo
the ZWave-JS integration.
domain: automation
input:
inovelli_fan_switch:
name: Inovelli Fan Controller
description: List of available Inovelli LZW36 dimmer combos.
selector:
device:
integration: zwave_js
manufacturer: Inovelli
model: LZW36
button_a:
name: Button A - Up/On press 1x
description: Action to run, when the button is pressed one time.
default: []
selector:
action: {}
button_b:
name: Button B - Down/Off press 1x
description: Action to run, when the button is pressed one time.
default: []
selector:
action: {}
button_a_held:
name: Button A - Up/On held down
description: Action to run, when the button is held down.
default: []
selector:
action: {}
button_b_held:
name: Button B - Down/Off held down
description: Action to run, when the button is held down.
default: []
selector:
action: {}
button_a2:
name: Button A - Up/On press 2x
description: Action to run, when the button is pressed two times.
default: []
selector:
action: {}
button_b2:
name: Button B - Down/Off press 2x
description: Action to run, when the button is pressed two times.
default: []
selector:
action: {}
button_a3:
name: Button A - Up/On press 3x
description: Action to run, when the button is pressed three times.
default: []
selector:
action: {}
button_b3:
name: Button B - Down/Off press 3x
description: Action to run, when the button is pressed three times.
default: []
selector:
action: {}
button_a4:
name: Button A - Up/On press 4x
description: Action to run, when the button is pressed four times.
default: []
selector:
action: {}
button_b4:
name: Button B - Down/Off press 4x
description: Action to run, when the button is pressed four times.
default: []
selector:
action: {}
button_a5:
name: Button A - Up/On press 5x
description: Action to run, when the button is pressed five times.
default: []
selector:
action: {}
button_b5:
name: Button B - Down/Off press 5x
description: Action to run, when the button is pressed five times.
default: []
selector:
action: {}
button_c1:
name: Button C - Up/Increase (Top)
description: Action to run, when the light rocker is pressed up.
default: []
selector:
action: {}
button_c2:
name: Button C - Down/Decrease (Top)
description: Action to run, when the light rocker is pressed down.
default: []
selector:
action: {}
button_d1:
name: Button D - Up/Increase (Bottom)
description: Action to run, when the fan rocker is pressed up.
default: []
selector:
action: {}
button_d2:
name: Button D - Down/Decrease (Bottom)
description: Action to run, when the fan rocker is pressed down.
default: []
selector:
action: {}
source_url: https://github.com/cree8/inovelli_switches/edit/main/blueprint_lzw36.yaml
mode: single
max_exceeded: silent
variables:
device_id: !input 'inovelli_fan_switch'
trigger:
- platform: event
event_type: zwave_js_value_notification
condition: '{{ trigger.event.data.device_id == device_id }}'
action:
- variables:
button_id: '{{ trigger.event.data.property_key_name }}'
press_count: '{{ trigger.event.data.value }}'
device_name: !input inovelli_fan_switch
- 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: '{{ device_name }}'
- choose:
- conditions: '{{ button_id == "002" and press_count == "KeyPressed" }}'
sequence: !input 'button_a'
- conditions: '{{ button_id == "001" and press_count == "KeyPressed" }}'
sequence: !input 'button_b'
- conditions: '{{ button_id == "002" and press_count == "KeyHeldDown" }}'
sequence: !input 'button_a_held'
- conditions: '{{ button_id == "001" and press_count == "KeyHeldDown" }}'
sequence: !input 'button_b_held'
- conditions: '{{ button_id == "002" and press_count == "KeyPressed2x" }}'
sequence: !input 'button_a2'
- conditions: '{{ button_id == "001" and press_count == "KeyPressed2x" }}'
sequence: !input 'button_b2'
- conditions: '{{ button_id == "002" and press_count == "KeyPressed3x" }}'
sequence: !input 'button_a3'
- conditions: '{{ button_id == "001" and press_count == "KeyPressed3x" }}'
sequence: !input 'button_b3'
- conditions: '{{ button_id == "002" and press_count == "KeyPressed4x" }}'
sequence: !input 'button_a4'
- conditions: '{{ button_id == "001" and press_count == "KeyPressed4x" }}'
sequence: !input 'button_b4'
- conditions: '{{ button_id == "002" and press_count == "KeyPressed5x" }}'
sequence: !input 'button_a5'
- conditions: '{{ button_id == "001" and press_count == "KeyPressed5x" }}'
sequence: !input 'button_b5'
- conditions: '{{ button_id == "003" and press_count == "KeyPressed" }}'
sequence: !input 'button_c1'
- conditions: '{{ button_id == "004" and press_count == "KeyPressed" }}'
sequence: !input 'button_c2'
- conditions: '{{ button_id == "005" and press_count == "KeyPressed" }}'
sequence: !input 'button_d1'
- conditions: '{{ button_id == "006" and press_count == "KeyPressed" }}'
sequence: !input 'button_d2'