Hi All,
I have set up OpenZwave and included a Remotec ZRC-90EU. This is a scene controller with eight buttons. It is recognised by HA because the entity [sensor.zrc_90_battery_level] is listed. However no other information is showing. I presume I will need to set up an mqtt sensor to pull out the relevant attributes. I have not idea how to do that and I would be grateful for any help.
The mqtt message, for example when I press button 1 twice is:
OpenZWave/1/node/12/instance/1/commandclass/91/value/281475183722516/
and the payload is:
{
"Label": "Scene 1",
"Value": {
"List": [
{
"Value": 0,
"Label": "Inactive"
},
{
"Value": 1,
"Label": "Pressed 1 Time"
},
{
"Value": 2,
"Label": "Key Released"
},
{
"Value": 3,
"Label": "Key Held down"
},
{
"Value": 4,
"Label": "Pressed 2 Times"
}
],
"Selected": "Pressed 2 Times",
"Selected_id": 4
},
"Units": "",
"ValueSet": true,
"ValuePolled": false,
"ChangeVerified": false,
"Min": 0,
"Max": 0,
"Type": "List",
"Instance": 1,
"CommandClass": "COMMAND_CLASS_CENTRAL_SCENE",
"Index": 1,
"Node": 12,
"Genre": "User",
"Help": "",
"ValueIDKey": 281475183722516,
"ReadOnly": true,
"WriteOnly": false,
"Event": "valueChanged",
"TimeStamp": 1609371185
}
The attributes that seem to be relevant are:
"Label": "Scene 1" [this belongs to button 1]
and
"Selected": "Pressed 2 Times", [action taken recorded as text]
"Selected_id": 4 [action taken recorded as a number]
and
"Index": 1, [button 1]
"Node": 12, [the node number]
If I can extract the “Selected_id”, the “Index” and the “Node” I hope will be able to use that to create a sensor that can trigger an automation.
If anyone could suggest how I extract these attributes, and trigger an automation, and feed a unique number to the automation (so I can action a different script according to which button is pressed and whether a single or double press - such as pressing button 1 of node 12 twice sends something like 12_1_2 and the automation actions a script called scene_control_12_1_2) that would be very helpful.
Cheers!