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
73.63k stars 30.78k forks source link

ZWaveJS integration breaks after 12.0 update #61539

Closed asucrews closed 2 years ago

asucrews commented 2 years ago

The problem

Hello,

Currently running the latest ZWaveJStoMQTT addon, and after the 12.0 upgrade, I get the below error.

This is a bit confusing because the latest ZWaveJStoMQTT is running zwavejs server 1.13. so i am not sure if this is an issue with being too high of a version or something wrong with the core integration.

Logger: homeassistant.components.zwave_js Source: components/zwave_js/init.py:461 Integration: Z-Wave JS (documentation, issues) First occurred: 11:56:33 PM (1 occurrences) Last logged: 11:56:33 PM

Invalid server version: Z-Wave JS Server version is incompatible: 1.11.0 a version is required that supports at least api schema 12

What version of Home Assistant Core has the issue?

core-2021.12.0

What was the last working version of Home Assistant Core?

core-2021.11.5

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ZWaveJS

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?

Logger: homeassistant.components.zwave_js
Source: components/zwave_js/__init__.py:461
Integration: Z-Wave JS (documentation, issues)
First occurred: 11:56:33 PM (1 occurrences)
Last logged: 11:56:33 PM

Invalid server version: Z-Wave JS Server version is incompatible: 1.11.0 a version is required that supports at least api schema 12

Additional information

This looks to break all automation that use zwavejs integration.

After downgrading to 11.05 everything works correctly.

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

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


zwave_js documentation zwave_js source (message by IssueLinks)

MartinHjelmare commented 2 years ago

Which version of the add-on are you running?

tane64 commented 2 years ago

Same problem here ZwaveJS2MQTT

ZwaveJS2MQTT 5.12.0 Zwave JS 8.7.6

MartinHjelmare commented 2 years ago

The latest version of the community add-on is 0.31.1 which includes zwavejs2mqtt version 6.0.3.

https://github.com/hassio-addons/addon-zwavejs2mqtt/blob/2b1e0b396d59b5e3921013bcb849d7b5242229d9/zwavejs2mqtt/Dockerfile#L29

zwavejs2mqtt 6.0.3 includes zwave-js-server version 1.13.0: https://github.com/zwave-js/zwavejs2mqtt/releases/tag/v6.0.3

Make sure you update the add-on to a version that has zwave-js-server at least at 1.12.0.

sibbl commented 2 years ago

Same issue here. I wish there was a longer support period of older versions of zwavejs/zwavejs2mqtt.

I'm currently stuck on the "Z-Wave JS to MQTT" community add-on version 0.30.0 because in 0.31.(0|1) there's a bug with Danfoss/Devolo thermostats staying awake all the time: https://github.com/zwave-js/node-zwave-js/issues/3828

The bug was fixed 6 days ago but I guess it will take a few weeks until it ends up in the hassio addon.

I'm now downgrading HA and have to wait until I can use other new features like the Hue API v2 integration 😞

kpine commented 2 years ago

I'm currently stuck on the "Z-Wave JS to MQTT" community add-on version 0.30.0 because in 0.31.(0|1) there's a bug with Danfoss/Devolo thermostats staying awake all the time: zwave-js/node-zwave-js#3828

Did you actually try 0.31.1 already? It includes zwave-js 8.8.3 which was supposed to revert all of these problems.

sibbl commented 2 years ago

I'm currently stuck on the "Z-Wave JS to MQTT" community add-on version 0.30.0 because in 0.31.(0|1) there's a bug with Danfoss/Devolo thermostats staying awake all the time: zwave-js/node-zwave-js#3828

Did you actually try 0.31.1 already? It includes zwave-js 8.8.3 which was supposed to revert all of these problems.

No, I didn't as I did not know from things being reverted, so thanks for the hint 😊 It's neither mentioned/linked in the bug nor in the PR I've linked above, so no chance for me to know about this without digging through release notes of 3 repos, I suppose.

I'll give it a try, hopefully I don't waste another hour because the downgrade just broke my Hue integration as well and I'm about to fix this as well now 🤷‍♂️

I really wish HA integrations would be upgradable seperately.

asucrews commented 2 years ago

Thanks for the help Everyone. In my case, the community addons repo was remove and I didn't realize it. after adding it and updating everything was fine.

ImaBadCoder commented 2 years ago

I had the same issue as asucrews. Added the repo back and it detected that the upgrade was available.