Funny enough I noticed that all Zooz devices behave the same way, but not all of them have an error reported. But the ones that do, do it in the exact way you predicted:
Logger: homeassistant.components.mqtt.models
Source: components/mqtt/models.py:305
Integration: MQTT (documentation, issues)
First occurred: February 1, 2024 at 11:53:47 PM (109 occurrences)
Last logged: 8:02:59 AM
Exception raised when updating state of sensor.scene_001_2, topic: 'zwave/garage/other/garage_opener/91/0/scene/001' with payload: b'{"time":1706855052215}'
Exception raised when updating state of sensor.n_26, topic: 'zwave/fireplace_room/lights/annas_work_light/status' with payload: b'{"time":1706855251080,"value":true,"status":"Alive","nodeId":43}'
Exception raised when updating state of sensor.n_25, topic: 'zwave/fireplace_room/lights/annas_work_light/status' with payload: b'{"time":1706855251080,"value":true,"status":"Alive","nodeId":43}'
Exception raised when updating state of sensor.n_24, topic: 'zwave/fireplace_room/lights/annas_work_light/status' with payload: b'{"time":1706855251080,"value":true,"status":"Alive","nodeId":43}'
Exception raised when updating state of sensor.scene_001_2, topic: 'zwave/garage/other/garage_opener/status' with payload: b'{"time":1706882579550,"value":true,"status":"Alive","nodeId":46}'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 639, in state
numerical_value = int(value)
^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 642, in state
numerical_value = float(value)
^^^^^^^^^^^^
ValueError: could not convert string to float: ''
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/mqtt/models.py", line 305, in process_write_state_requests
entity.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 945, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1066, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1003, in __async_calculate_state
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 951, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 646, in state
raise ValueError(
ValueError: Sensor sensor.scene_001_2 has device class 'None', state class 'measurement' unit 'None' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: '' (<class 'str'>)