Closed nospam2k closed 2 years ago
You seem to be using an extremely old version of the Module, but the below should work.
msg.payload = {
node: 2,
class: "Unmanaged",
operation: "SetValue",
params: [{ commandClass: 98, endpoint: 0, property: "targetMode" }, 0xff]
}
Unsecured = 0x00,
UnsecuredWithTimeout = 0x01,
InsideUnsecured = 0x10,
InsideUnsecuredWithTimeout = 0x11,
OutsideUnsecured = 0x20,
OutsideUnsecuredWithTimeout = 0x21,
Unknown = 0xfe,
Secured = 0xff
I took that, as I said from an issue, which is an old issue reported here. What is the correct way to do it for the current release?
I thought that changing to 0xff would do it but still the same; nothing happens on the lock and no msg out the ZWave Controller node.
So are you using the latest version?
I installed it from the pallet manager (raspberry pi w/node red 2.2);
Cool!
send this to the controller node. (new message format)
let Message = {
"payload": {
"mode": "ValueAPI",
"node": 2,
"method": "setValue",
"params": [{ commandClass: 98, endpoint: 0, property: "targetMode" }, 0xff]
}
}
return Message
That's it! perfect. Thanks for such a great node and great help!!!
Any time
How can we help?
Trying to work out how to send door lock command. I've successfully setup the ZWave Controller with network key and I get back messages from the lock. I've been able to isolate lock and unlock messages (from manual locking, unlocking the door) using NOTIFICATION and eventLabel (if there is a better way to verify lock/unlock please let me know).
My problem is trying to send unlock, lock commands. I've tried the following inputting into the ZWave Controller:
I was using openzwave node with this code and it was working:
Here's what I've tried to translate into zwave-js
and something I tried from a Yale lock issue I found here
The command seems to go through but there is no debug output coming from the ZWave Controller node.
Thanks for the help!
Version
latest npm
Node-RED Version
2.2
What hardware are you using?
Raspberry Pi
Any code to add?
No response