V10 Changes Discussion #259
Replies: 11 comments 96 replies
-
...watch this space... Like always, I bet you've got good ideas and will do it the right way. |
Beta Was this translation helpful? Give feedback.
-
I would like to be able to access the cached node status information from within a function node. I want to be able to call a function, pass it some parameters, and have it return with a cached value (i.e., the state of a switch node). Hopefully this makes some sense. As far as I know, to do this today, I would have to send a message to the controller node and wait for a response. |
Beta Was this translation helpful? Give feedback.
-
Hi @fabnavigator, This is fully supported already - and returns the cached value. The function is getValue - and returns the value that is currently known (it does not poll the device) The function that does poll the device is pollValue - this one you do have to wait for a response but for getValue it's instant. I'm on a mobile currently, but check the wiki on GitHub for getValue. Link: https://github.com/zwave-js/node-red-contrib-zwave-js/wiki/Value-API#getvalue |
Beta Was this translation helpful? Give feedback.
-
What is peoples thought on this? The topic will be used to contain the API and method of that API example : the properties, will no longer be unnamed in an array, and will now be attached to property names. {
topic: 'VALUE_API.setValue',
payload: {
valueId: {},
nodeId: 345,
value: 3,
options:{}
}
} Using the old method, the current way is: {
payload: {
mode: 'ValueAPI'
method: 'setValue',
node: 345,
params: [<ValueID>,3,<Options>]
}
} I believe this makes for a cleaner, more structured understanding. |
Beta Was this translation helpful? Give feedback.
-
So... A little update on new access points for the Various APIs. all There will be 4 APIs - each serving a specific area with various methods for each
Examples /* Ping a node */
{
payload: {
cmd: 'NODE.ping',
nodeId: 34
}
}
/* Set a node name */
{
payload: {
cmd: 'NODE.setNodeName',
nodeId: 34,
value: 'My Node'
}
}
/* Get Value DB for specific nodes */
{
payload: {
cmd: 'CONTROLLER.getValueDB',
nodes: [34,25] /*Optional*/
}
}
/* Update a value (Value API) */
{
payload: {
cmd: 'VALUE.setValue',
nodeId: 52,
valueId :{},
value : 5352,
setValueOptions:{} /*Optional*/
}
}
/* Update a value (CC API) */
{
payload: {
cmd: 'CC.invokeCCAPI',
commandClass: 'Configuration',
method: 'set',
nodeId: 52,
endpoint: 2, /* Optional */
args:[{"parameter": 4, "value": 0 "valueSize": 1}] /* Optional */
}
} Im still chewing around some bits - but you should hopefully get the idea |
Beta Was this translation helpful? Give feedback.
-
Thoughts! @fabnavigator @crxporter /* You will (likely) be notified that the value has been updated on the device - this is hit and miss now, and is currently the norm */
const Message = {
payload: {
cmd: {
api: 'VALUE',
method: 'setValue'
},
cmdProperties: {
nodeId: 34,
valueId:{ },
value: true,
setValueOptions:{ }
}
}
}
/* You will get an output message with your deliveryReceipt, once the value has been committed to the device
think of battery operated devices for example - that wake up every so often
deliveryReceipt - can be any type of value (number ,string, object)
*/
const Message = {
payload: {
cmd: {
api: 'VALUE',
method: 'setValue'
},
cmdProperties: {
nodeId: 34,
valueId:{ },
value: true,
setValueOptions:{ },
deliveryReceipt: 5645465
}
}
} |
Beta Was this translation helpful? Give feedback.
-
Another question..... If I have a sensor with 2 channels (Lux, Temp) |
Beta Was this translation helpful? Give feedback.
-
Hi @marcus-j-davies, I don't do many associations, but I got a new remote and want to set some up. It sure would be nice if I could associate to a node name instead of just the node number. I realize that I have write down all of the node numbers for the nodes I want to associate, and then go in and do the associations. |
Beta Was this translation helpful? Give feedback.
-
I cant remember who asked for this. But the genuine timestamp of a value is now available driver side. it might have been @rgerrans who requested it. |
Beta Was this translation helpful? Give feedback.
-
Get Value DB Get Value |
Beta Was this translation helpful? Give feedback.
-
Hey everyone, Just a quick update on V9 progress: it's still in my FOV, and I haven't forgotten about it. Apologies for the delay – But 2023 has been unexpectedly busy in both my professional and private life. Despite the hectic schedule, I've been keeping V8 maintained, and V9 will soon be getting the attention it deserves. The upcoming release promises to be groundbreaking, thanks to the enhancements from the Z-Wave JS Driver, which I'm eager to include. Thank you all for your patience and support! |
Beta Was this translation helpful? Give feedback.
-
@crxporter I'm dragging you down with me 😄
but anyone is welcome
Initial Goals
Transition to typescript
Migrate to config nodes
Assumed Barriers
This is no walk in the park, and will take a considerable amount of time.
Beta Was this translation helpful? Give feedback.
All reactions