home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.11k stars 29.79k forks source link

Entities not available after restart of Home Assistant Core and Zwavejs2MQTT #45797

Closed mathquis closed 3 years ago

mathquis commented 3 years ago

The problem

On restart of Home Assistant and/or Zwavejs2MQTT, all zwave_js integration entities are flagged "unavailable".

What is version of Home Assistant Core has the issue?

Home Assistant 2021.2.0b1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Zwave JS

Link to integration documentation on our website

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

Example YAML snippet

No response

Anything in the logs that might be useful for us?

homeassistant    | 2021-01-31 22:03:40 WARNING (MainThread) [zwave_js_server] Connection closed: Invalid state: Did not receive state as first message
homeassistant    | 2021-01-31 22:03:43 WARNING (MainThread) [zwave_js_server] Re-connected and don't know how to handle new state yet
mathquis commented 3 years ago

Additional info: To get the entities back, I need to reload the zwave_js integration after the Zwave nodes interview process is done.

probot-home-assistant[bot] commented 3 years ago

Hey there @home-assistant/z-wave, mind taking a look at this issue as its been labeled with an integration (zwave_js) you are listed as a codeowner for? Thanks! (message by CodeOwnersMention)

marcelveldt commented 3 years ago

This issue is being worked on. It will be fixed asap.

mathquis commented 3 years ago

That's awesome! 👍

Really loving the new integration so far. Using the updated Zwave JS instead of the old OpenZwave library already solved my issue with the Fibaro Roller Shutter 3 state feedback.

Great job guys 😊

marcelveldt commented 3 years ago

The fix consists of two parts:

1) A bumped version of the Zwave JS websocket server (1.0.0-beta.2) 2) A bumped version of our python library

Once these dependencies are updated everywhere, this issue will be fixed in HA. As you're using zwavejs2mqtt, the server version needs to be bumped there too.