Interrogating z wave thermostat using node-red-contrib-zwave-js

HI @magicman,

There are 2 ways.

#1 (The Ninja Way)
be careful here adding to many nodes.
you could drop in a rate limiting node between this and the network.

EDIT:
Actualy getValue doesn't cause any network traffic - so you should be fine.

const TargetNodes = [11, 12, 13, 14];

const MyValueID = {
    "commandClassName": "Multilevel Sensor",
    "commandClass": 49,
    "endpoint": 0,
    "property": "Air temperature",
    "propertyName": "Air temperature"
}

TargetNodes.forEach((ZWNode) => {
    const Message = {
        "payload": {
            "mode": "ValueAPI",
            "node": ZWNode,
            "method": "getValue",
            "params": [MyValueID]
        }
    }
    node.send(Message)
})

#2 (The Guided Way)

  • Using the zwave-device node, set its Mode to Multiple
  • Select the nodes you wish to use with this zwave-device node (ctrl-click for windows)
  • Then in your message - omit the node
  • The device-node will send a message to each node you have selected. you will see it has throttling - so use what value is best - the default is 4 nodes per second. but again getValue doesn't cause traffic.
const MyValueID = {
      "commandClassName": "Multilevel Sensor",
      "commandClass": 49,
      "endpoint": 0,
      "property": "Air temperature",
      "propertyName": "Air temperature"
}

const Message = {
    "payload": {
        "mode": "ValueAPI",
        "method": "getValue",
        "params": [MyValueID]
    }
}
return Message

Sorry to be a pain but am loving the learning curve!

Don't be sorry, this is why the forums are here.