Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Z-Wave JS - Setting thermostat to full power (boost) causes add-in to stop working #46357

Closed
paszczaq opened this issue Feb 10, 2021 · 6 comments

Comments

@paszczaq
Copy link

paszczaq commented Feb 10, 2021

The problem

When setting Eurotronic Spirit-Z thermostat to full power (boost mode) the ZWave JS integration disconnects from ZWaveJS server - in my case ZWaveJSMQTT (running only as ZWaveJS server & control panel)
Steps to reproduce:
In lovelace ui set thermostat component and set to full power - in log zwavejsmqtt the command is set properly and thermostat reacts on command - but lovelace ui is not reflecting change and log of zwavejsmqtt shots client disconnected.
ZwaveJS Integration shows client disconnected and if you try to reload - you need to restart HA

What is version of Home Assistant Core has the issue?

core-2021.2.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

zwavejs

Link to integration documentation on our website

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

Example YAML snippet

# Put your YAML below this line

Anything in the logs that might be useful for us?

# Put your logs below this line
Logger: homeassistant.config_entries
Logger: homeassistant.config_entries
Source: components/zwave_js/climate.py:160
First occurred: 23:27:25 (1 occurrences)
Last logged: 23:27:25

Error unloading entry Z-Wave JS for zwave_js
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 325, in async_unload
    result = await component.async_unload_entry(hass, self)  # type: ignore
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/__init__.py", line 319, in async_unload_entry
    await disconnect_client(
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/__init__.py", line 293, in disconnect_client
    await asyncio.gather(listen_task, platform_task)
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/__init__.py", line 268, in client_listen
    await client.listen(driver_ready)
  File "/usr/local/lib/python3.8/site-packages/zwave_js_server/client.py", line 174, in listen
    self._handle_incoming_message(data)
  File "/usr/local/lib/python3.8/site-packages/zwave_js_server/client.py", line 237, in _handle_incoming_message
    self.driver.receive_event(event)  # type: ignore
  File "/usr/local/lib/python3.8/site-packages/zwave_js_server/model/driver.py", line 23, in receive_event
    self.controller.receive_event(event)
  File "/usr/local/lib/python3.8/site-packages/zwave_js_server/model/controller.py", line 324, in receive_event
    node.receive_event(event)
  File "/usr/local/lib/python3.8/site-packages/zwave_js_server/model/node.py", line 242, in receive_event
    self.emit(event.type, event.data)
  File "/usr/local/lib/python3.8/site-packages/zwave_js_server/event.py", line 52, in emit
    listener(data)
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/entity.py", line 127, in _value_changed
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 296, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 322, in _async_write_ha_state
    attr.update(self.state_attributes or {})
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 230, in state_attributes
    self.target_temperature,
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/climate.py", line 246, in target_temperature
    temp = self._setpoint_value(self._current_mode_setpoint_enums[0])
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/climate.py", line 160, in _setpoint_value
    raise ValueError("Value requested is not available")
ValueError: Value requested is not available


ZwaveJSMQTT log:

2021-02-10 23:13:21.141 INFO ZWAVE: Node 8: metadata updated: 49-0-Air temperature
2021-02-10 23:13:21.142 INFO ZWAVE: Node 8: value updated: 49-0-Air temperature 21.69 => 21.52
2021-02-10 23:13:38.823 INFO ZWAVE: Node 8: value updated: 64-0-mode 15 => 15
2021-02-10 23:13:38.838 INFO ZWAVE-SERVER: Client disconnected
@probot-home-assistant
Copy link

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)

@MartinHjelmare
Copy link
Member

Please create a dump of your Z-Wave network and upload the dump as a text file here.

The dump tool is available in the configuration panel of the Z-Wave JS integration, reached from the integrations page in the Home Assistant GUI.

The network dump will help us troubleshoot your device.

Thanks!

@paszczaq
Copy link
Author

Hi, thanks for fast respond.
I have attached my zwave netowrk dump. In my network I have 3 Eurotronic Spirit-Z thermostats valve (two have firmware 0.16 and one is 0.15) both of them behave the same.
If you need any other logs just let me know.
zwave_js_dump.txt

@marcelveldt
Copy link
Member

This issue should be fixed with HA 2021.3 (beta 3 and up).
Please reopen if you still experience issues. Thanks!

@MartinHjelmare
Copy link
Member

MartinHjelmare commented Feb 26, 2021

I think there's still a problem with presets in the climate platform which is the source problem I think. I'm still investigating that.

@marcelveldt
Copy link
Member

Best to first try with latest release as zwavejs fixed a lot of issues with thermostats and we fixed the value issues.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants