question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ZwaveJS multicast CLASS_BASIC fails to validate (and send)across multiple different devices

See original GitHub issue

The problem

With Core 2021.7.3 I could send a COMMAND_CLASS_BASIC (32) ZwaveJS multicast to multiple nodes on endpoint 0 and have them turn/on off. With Core 2021.8.6 this same command fails with: File “/usr/local/lib/python3.9/site-packages/zwave_js_server/model/node.py”, line 414, in async_set_value raise NotFoundError(f"Value {val} not found on node {self}") zwave_js_server.exceptions.NotFoundError: Value 19-32-0-targetValue not found on node Node(node_id=19)

Two things appear to have changed/broken:

  • COMMAND_CLASS_BASIC commands to set the targetValue no longer work
  • I need to send to endpoint 1 now using device-specific (SWITCH_BINARY or SWITCH_MULTILEVEL)

Note that there is nothing in the zwave-js log when I try this (even on the high debug levels) because the command never gets issued due to the validation error above.

This suggests that the zwave-js value set command is rejecting “targetValue” for the BASIC command class, which should be valid for all devices, and was working before.

For reference: The service I am testing is:

service: zwave_js.multicast_set_value
data:
  command_class: '32'
  property: targetValue
  value: 0
  endpoint: 0
target:
  entity_id:
          - light.kitchen_counter_switch
          - switch.kitchen_bar_switch

light.kitchen_counter_switch is a Fibaro FGD-212 dimmer that has worked for over a year, and works fine in all non-multicast uses. switch.kitchen_bar_switch is a Fiabro FGS-223 dual switch that has worked for over a year, and works fine in all non-multicast uses.

Here is what I can get working:

  • If I send a COMMAND_CLASS_SWITCH_BINARY (37) with “true” to the switch entity on endpoint 1 it works.
  • If I send a COMMAND_CLASS_SWITCH_MULTILEVEL (38) with 99 to the light entity endpoint 1 it works.
  • Sending either of those commands to the other entities results in the same type of error. (I expect the MULTILEVEL to fail on the binary switch, but not the other way around.)

What is version of Home Assistant Core has the issue?

core-2021.8.6

What was the last working version of Home Assistant Core?

core-2021.7.3

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Zwave-JS

Link to integration documentation on our website

https://www.home-assistant.io/integrations/zwave_js/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:19 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
AlCalzonecommented, Aug 15, 2021

Thinking about it, it would make sense to not hide the Basic CC targetValue on virtual nodes (multicast/broadcast) on the driver side. I’ve raised an issue to track that.

1reaction
davidbbscommented, Jul 14, 2022

Hi there: is there anything I can/should do to get this resolved? (I understand it is not prioritized.) thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

[feat] Send multicast when triggering multiple devices #2320
Ok. At the moment I'm using HAS's ZwaveJS integration with only websocket enabled in ZwaveJs2Mqtt. Can I use both simultaniously? At the other...
Read more >
Ok, Zwave_JS has multicast, now how do I use it? - Z-Wave
I'm just using it for the control panel, and that was the key to figuring out the various parameters for me. I'm basing...
Read more >
Instant Notifications All Switches Using Multicast on HA
Multicast functionality with ZwaveJS is amazing, ... to recognize when you're trying to send the exact same command to multiple devices and ...
Read more >
ZwaveJS multicast CLASS_BASIC fails to validate ... - Giters
The problem With Core 2021.7.3 I could send a COMMAND_CLASS_BASIC (32) ZwaveJS multicast to multiple nodes on endpoint 0 and have them ...
Read more >
Validate that multicast messages don't target S0 devices
If one of the devices was unsecured, and the rest were S0, zwave-js sent the ... return an error "Multicast messages cannot target...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found