core: Z-Wave JS - Unexpected exception: 'None' / 'success'

The problem

All z-wave devices are dropping in and out after upgrade to 2021.6.0 Z-wave JS network not working

Getting multiple errors in logs…

What is version of Home Assistant Core has the issue?

core-2021.6.0

What was the last working version of Home Assistant Core?

core-2021.5.5

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Z-Wave 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?

Unexpected exception: 'None'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/__init__.py", line 456, in client_listen
    await client.listen(driver_ready)
  File "/usr/local/lib/python3.8/site-packages/zwave_js_server/client.py", line 218, in listen
    self._handle_incoming_message(data)
  File "/usr/local/lib/python3.8/site-packages/zwave_js_server/client.py", line 315, 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 48, in receive_event
    self.controller.receive_event(event)
  File "/usr/local/lib/python3.8/site-packages/zwave_js_server/model/controller.py", line 351, in receive_event
    node.receive_event(event)
  File "/usr/local/lib/python3.8/site-packages/zwave_js_server/model/node.py", line 337, 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 173, in _value_changed
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 368, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 404, in _async_write_ha_state
    attr.update(self.state_attributes or {})
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 225, in state_attributes
    self.current_temperature,
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/climate.py", line 511, in current_temperature
    self.data_template.current_temperature_value(self.info.platform_data)
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/discovery_data_template.py", line 104, in current_temperature_value
    lookup_key = dependent_value.metadata.states[
KeyError: 'None'


Logger: homeassistant
Source: components/zwave_js/discovery_data_template.py:104
First occurred: 23:15:41 (55 occurrences)
Last logged: 23:27:49

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 383, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 588, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 615, in add_to_platform_finish
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 368, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 404, in _async_write_ha_state
    attr.update(self.state_attributes or {})
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 225, in state_attributes
    self.current_temperature,
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/climate.py", line 511, in current_temperature
    self.data_template.current_temperature_value(self.info.platform_data)
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/discovery_data_template.py", line 104, in current_temperature_value
    lookup_key = dependent_value.metadata.states[
KeyError: 'None'

Logger: homeassistant.components.climate
Source: components/zwave_js/discovery_data_template.py:104
Integration: Klima (documentation, issues)
First occurred: 23:15:41 (55 occurrences)
Last logged: 23:27:49

Error adding entities for domain climate with platform zwave_js
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 383, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 588, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 615, in add_to_platform_finish
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 368, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 404, in _async_write_ha_state
    attr.update(self.state_attributes or {})
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 225, in state_attributes
    self.current_temperature,
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/climate.py", line 511, in current_temperature
    self.data_template.current_temperature_value(self.info.platform_data)
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/discovery_data_template.py", line 104, in current_temperature_value
    lookup_key = dependent_value.metadata.states[
KeyError: 'None'


Logger: homeassistant.components.zwave_js
Source: components/zwave_js/__init__.py:456
Integration: Z-Wave JS (documentation, issues)
First occurred: 23:15:07 (71 occurrences)
Last logged: 23:28:02

Unexpected exception: 'success'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/__init__.py", line 456, in client_listen
    await client.listen(driver_ready)
  File "/usr/local/lib/python3.8/site-packages/zwave_js_server/client.py", line 194, in listen
    if not log_msg["success"]:
KeyError: 'success'

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 22 (9 by maintainers)

Most upvoted comments

Not logs, and you don’t need to upgrade. Literally click the download link and attach the file here. https://www.home-assistant.io/integrations/zwave_js/#get-a-dump-of-the-current-network-state