You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Logger: homeassistant.components.mqtt.models
Source: components/mqtt/models.py:383
integration: MQTT (documentation, issues)
First occurred: July 14, 2024 at 5:02:46 PM (2 occurrences)
Last logged: 12:00:17 AM
Exception raised while updating state of sensor.sungrow_sg10rs_last_reset, topic: 'SunGather/device_SN' with payload: b'{payload_removed_for_brevity}'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 648, in state
numerical_value = int(value)
^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '2024-7-14 0:00:14'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 651, in state
numerical_value = float(value)
^^^^^^^^^^^^
ValueError: could not convert string to float: '2024-7-14 0:00:14'
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 383, in process_write_state_requests
entity.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1007, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1133, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1068, in __async_calculate_state
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1013, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 655, in state
raise ValueError(
ValueError: Sensor sensor.sungrow_sg10rs_last_reset 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: '2024-7-14 0:00:14' (<class 'str'>)
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: