-
Hello, how can I migrate my Z-Wave from Home Assistant to Node Red? I'm using Z-Wave JS to MQTT and Z-Wave Js. Is it only to move the USB plug and my network will be recreated? |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 41 replies
-
Hi @widert, Please do bear in mind, this module is not designed to work with the internals of HA - its strictly Node RED only. On that bases. Then after you install the module in Node RED, add a controller node into your flow - select your serial port so on and so forth. or load in the example that comes with the module. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, it seems like it is not able to recreate the network... |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi @widert, I think I see the problem. Given you can see here, the parameters required for So, how do we fix this? 1) Change the method to 2) change the params text box to the following object (Click the 3 dots ... next to it), and set the endpoint to why? if you look at the required params for [
{
"ignoreStartLevel": true,
"direction": payload
}
] 3) finally, you can now send using an inject node the below (be sure to set {
payload: "Up" | "Down", /* Direction */
topic: 1 /* Endpoint */
} You can see from the above, the Find below the setup.
If you are addressing this to a device node, depending on its mode, you can omit My suggestion however - set CMD Factory to
is CCAPI useful? - yes if course, but more often than not, its only used if you are executing things that the Hopefully the above make sense? 😬 |
Beta Was this translation helpful? Give feedback.
-
Using CMD Factory is trivial when using you can pass in You can also provide a partial {
"commandClassName": "Mulitlevel Switch",
"commandClass": 38,
"endpoint": 1,
"property": direction,
"propertyName": direction
} So many possibilities. |
Beta Was this translation helpful? Give feedback.
-
So if I instead would like to go the ValueAPI route then I need to send the following: How do I send this? Through a function node only? |
Beta Was this translation helpful? Give feedback.
-
You can now see, how your function node, has the shape of the message displayed in UI Monitor. We are just wrapping the valueID in a variable, instead of writing it in line. let ValueID = {
"commandClassName": "Mulitlevel Switch",
"commandClass": 38,
"endpoint": 1,
"property": "Up",
"propertyName": "Up"
}
let Message = {
payload: {
"mode": "ValueAPI",
"method": "setValue",
"node": 10,
"params": [ValueID, true]
}
}
return Message |
Beta Was this translation helpful? Give feedback.
-
Morning @widert You can obtain the current Value with the below. let ValueID = {
"commandClassName": "Mulitlevel Switch",
"commandClass": 38,
"endpoint": 1,
"property": "currentValue",
"propertyName": "currentValue"
}
let Message = {
"payload": {
"mode": "ValueAPI",
"node": 10,
"method": "getValue",
"params": [ValueID]
}
}
return Message but also, when ever the device sends an update you will get a |
Beta Was this translation helpful? Give feedback.
-
I had a notification, but cant find anything you wrote? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Hmm, not getting it right. My setup:
The function
The z-wave device mode:
The event-filter node:
The filter: