-
Notifications
You must be signed in to change notification settings - Fork 0
/
ZRC-90.yaml
106 lines (104 loc) · 3.14 KB
/
ZRC-90.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
blueprint:
name: Remotec ZRC-90
description: Create automations for the 'Remotec ZRC-90' using the OZW integration.
domain: automation
input:
remotec_pad:
name: ZRC-90 8 Keypad
description: "List of available Remotec ZRC-90 remotes to configure. This list is only a reference."
selector:
device:
integration: zwave_js
ozw_node_id:
name: Node ID
description: "Enter the node id. For now, this field is required."
button_1:
name: Single Press Button 1
description: Action to run on button press.
default: []
selector:
action: {}
button_1_1:
name: Double Press Button 1
description: Action to run on a double button press.
default: []
selector:
action: {}
mode: single
max_exceeded: silent
variables:
device_id: !input remotec_pad
ozw_node_id: !input ozw_node_id
trigger:
- platform: event
event_type: zwave_js_event.value_notification
condition: "{{ trigger.value_notification.node_id == (ozw_node_id | int) }}"
action:
- variables:
scene_id: "{{ trigger.value_notification.property_key }}"
scene_data: "{{ trigger.value_notification.value_raw }}"
- choose:
- conditions: "{{ scene_id == 001 and scene_data == 0 }}"
sequence: !input button_1
- conditions: "{{ scene_id == 001 and scene_data == 3 }}"
sequence: !input button_1_1
# Single Key Pres Button 1
# {
# "event_type": "zwave_js_event",
# "data": {
# "type": "value_notification",
# "domain": "zwave_js",
# "node_id": 9,
# "home_id": 3913730099,
# "endpoint": 0,
# "device_id": "968bbd50de1012587d008fcc35e80c27",
# "command_class": 91,
# "command_class_name": "Central Scene",
# "label": "Scene 001",
# "property": "scene",
# "property_name": "scene",
# "property_key": "001",
# "property_key_name": "001",
# "value": "KeyPressed",
# "value_raw": 0
# },
# Double Key Press Button 1
# {
# "event_type": "zwave_js_event",
# "data": {
# "type": "value_notification",
# "domain": "zwave_js",
# "node_id": 9,
# "home_id": 3913730099,
# "endpoint": 0,
# "device_id": "968bbd50de1012587d008fcc35e80c27",
# "command_class": 91,
# "command_class_name": "Central Scene",
# "label": "Scene 001",
# "property": "scene",
# "property_name": "scene",
# "property_key": "001",
# "property_key_name": "001",
# "value": "KeyPressed2x",
# "value_raw": 3
# },
# Single Key Pres Button 2
# {
# "event_type": "zwave_js_event",
# "data": {
# "type": "value_notification",
# "domain": "zwave_js",
# "node_id": 9,
# "home_id": 3913730099,
# "endpoint": 0,
# "device_id": "968bbd50de1012587d008fcc35e80c27",
# "command_class": 91,
# "command_class_name": "Central Scene",
# "label": "Scene 002",
# "property": "scene",
# "property_name": "scene",
# "property_key": "002",
# "property_key_name": "002",
# "value": "KeyPressed",
# "value_raw": 0
# },