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.

Central Scene: When Key Released is received after Key Held Down timeout, the node is using slowRefresh

See original GitHub issue

Checklist:

  • I am not using HomeAssistant. Or: a developer has told me to come here. (A developer referred me here from HomeAssistant, marcelveldt)
  • I am not using ZWaveJS2MQTT. Or: a developer has told me to come here.
  • I have checked the troubleshooting section and my problem is not described there.
  • I have read the changelog problem was not mentioned there.

Describe the bug

When holding down and releasing the button on this switch, a “KeyHeldDown” event is produced and then an immediate “KeyReleased” event is produced, followed by a second “KeyReleased” event when I actually release the button. There seems to be an extra “KeyReleased” event produced which makes holding down the button pointless. This is different behaviour then the previous zwave 1.4 implementation from Home Assistant.

Device information

Which device(s) is/are affected (make/model)? - GoControl remote wireless switch WA00z-1 What are the node IDs? 6 and 10

Did you change anything?

  • Yes: (please describe)
  • No

Did this use to work before?

  • Don’t know, this is a new device
  • No, it never worked anywhere
  • Yes, in: (specify application with versions) HomeAssistant using zwave 1.4 implementation

How are you using node-zwave-js

  • zwavejs2mqtt (latest) docker image
  • zwavejs2mqtt (dev) docker image
  • zwavejs2mqtt Manual Docker build
    • node-zwave-js branch:
    • zwavejs2mqtt branch:
  • ioBroker.zwave2 adapter
  • HomeAssistant version 2021.2.3
  • Pkg
  • Manual Docker build
    • node-zwave-js branch:
    • zwavejs2mqtt branch:
  • Manually built (as described in the docs)
  • Other:

To Reproduce

Steps to reproduce the behavior:

  1. Using the developer tool in Home Assistant, I first listen for zwave_js_event.
  2. Next, I hold down the button (top or bottom).
  3. I observe 2 events: initial “KeyHeldDown” event, then immediately a “KeyReleased” event before I release the button.
  4. When I release my finger, I observe another “KeyReleased” event.

Additional context

Add any other context about the problem here.

Logfile:

zwave_js_dump.jsonl

zwave_js_dump.jsonl.zip

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
kklicker777commented, Mar 27, 2021

I just updated the zwave-js version in HA to 7.0.0, and I can report that this works great now. Thanks again for your effort on this!

0reactions
AlCalzonecommented, Mar 27, 2021

Thanks for reporting back!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Timeout for sticky keys - Unix & Linux Stack Exchange
The solution to the question seems to be a script like the following using xprintidle to work out when to reset the lock...
Read more >
Auto Shift: Why Do We Need a Shift Key? - qmk_firmware
Tap a key, but hold it slightly longer and you get its shifted state. ... Holding the key down will repeat the shifted...
Read more >
KeyEvent (JavaFX 8) - Oracle Help Center
An event which indicates that a keystroke occurred in a Node . This event is generated when a key is pressed, released, or...
Read more >
Z-Way Manual — Command Class Reference - Z-Wave.Me
Command Class commands change values of the corresponding data holder structure. The follow list shows the public commands of the Command Classes supported...
Read more >
SR-ZV9080A-B Z-Wave Curtain Motor Controller
Default configuration of CENTRAL_SCENE_CONFIGURATION_SET is Slow Refresh = 1(send Key Held. Down every 55s when the switch is pressed and held down).
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