2023.5.1 = Many Tasmota errors for me (solved)

I’ve have 4 Tasmota flashed (ver. 12.5.0) devices that have been working great for many years with HA. However after updating to HA 2023.5.1 I’m seeing many errors that I’m baffled by, and could use some help with.

The Errors:

Logger: homeassistant.util.logging
Source: util/logging.py:168
First occurred: 2:36:18 PM (595 occurrences)
Last logged: 3:41:22 PM

Exception in state_message_received when handling msg on 'tele/switchbox1/SENSOR': '{"Time":"2023-05-05T14:40:49","DS18B20-1":{"Id":"0116283FBDEE","Temperature":61.0},"DS18B20-2":{"Id":"0116284029EE","Temperature":61.4},"DS18B20-3":{"Id":"01162842B8EE","Temperature":64.6},"DS18B20-4":{"Id":"01162842BAEE","Temperature":60.9},"DS18B20-5":{"Id":"0216255761EE","Temperature":60.9},"AM2301":{"Temperature":61.5,"Humidity":64.8,"DewPoint":49.5},"TempUnit":"F"}' Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 579, in state numerical_value = int(value) ValueError: invalid literal for int() with base 10: '01162842BAEE' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/hatasmota/sensor.py", line 334, in state_message_received self._on_state_callback(state, **kwargs) File "/usr/src/homeassistant/homeassistant/components/tasmota/sensor.py", line 294, in sensor_state_updated self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 585, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 649, in _async_write_ha_state state = self._stringify_state(available) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 591, in _stringify_state if (state := self.state) is None: File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 583, in state raise ValueError( ValueError: Sensor sensor.switchbox1_ds18b20_4_id has device class None, state class None unit and suggested precision None thus indicating it has a numeric value; however, it has the non-numeric value: 01162842BAEE (<class 'str'>)
Exception in state_message_received when handling msg on 'tele/switchbox1/SENSOR': '{"Time":"2023-05-05T14:40:49","DS18B20-1":{"Id":"0116283FBDEE","Temperature":61.0},"DS18B20-2":{"Id":"0116284029EE","Temperature":61.4},"DS18B20-3":{"Id":"01162842B8EE","Temperature":64.6},"DS18B20-4":{"Id":"01162842BAEE","Temperature":60.9},"DS18B20-5":{"Id":"0216255761EE","Temperature":60.9},"AM2301":{"Temperature":61.5,"Humidity":64.8,"DewPoint":49.5},"TempUnit":"F"}' Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 579, in state numerical_value = int(value) ValueError: invalid literal for int() with base 10: '0216255761EE' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/hatasmota/sensor.py", line 334, in state_message_received self._on_state_callback(state, **kwargs) File "/usr/src/homeassistant/homeassistant/components/tasmota/sensor.py", line 294, in sensor_state_updated self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 585, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 649, in _async_write_ha_state state = self._stringify_state(available) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 591, in _stringify_state if (state := self.state) is None: File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 583, in state raise ValueError( ValueError: Sensor sensor.switchbox1_ds18b20_5_id has device class None, state class None unit and suggested precision None thus indicating it has a numeric value; however, it has the non-numeric value: 0216255761EE (<class 'str'>)
Exception in state_message_received when handling msg on 'tele/thermostat-main/SENSOR': '{"Time":"2023-05-05T14:40:51","DS18B20":{"Id":"0116283076EE","Temperature":70.4},"SHT3X":{"Temperature":71.0,"Humidity":46.8,"DewPoint":49.6},"TempUnit":"F"}' Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 579, in state numerical_value = int(value) ValueError: invalid literal for int() with base 10: '0116283076EE' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/hatasmota/sensor.py", line 334, in state_message_received self._on_state_callback(state, **kwargs) File "/usr/src/homeassistant/homeassistant/components/tasmota/sensor.py", line 294, in sensor_state_updated self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 585, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 649, in _async_write_ha_state state = self._stringify_state(available) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 591, in _stringify_state if (state := self.state) is None: File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 583, in state raise ValueError( ValueError: Sensor sensor.thermostat_main_ds18b20_id has device class None, state class None unit and suggested precision None thus indicating it has a numeric value; however, it has the non-numeric value: 0116283076EE (<class 'str'>)
Exception in state_message_received when handling msg on 'tele/grow-light/SENSOR': '{"Time":"2023-05-05T14:41:18","DS18B20":{"Id":"01142FE6D08E","Temperature":60.7},"AM2301":{"Temperature":61.7,"Humidity":72.6,"DewPoint":52.8},"TempUnit":"F"}' Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 579, in state numerical_value = int(value) ValueError: invalid literal for int() with base 10: '01142FE6D08E' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/hatasmota/sensor.py", line 334, in state_message_received self._on_state_callback(state, **kwargs) File "/usr/src/homeassistant/homeassistant/components/tasmota/sensor.py", line 294, in sensor_state_updated self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 585, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 649, in _async_write_ha_state state = self._stringify_state(available) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 591, in _stringify_state if (state := self.state) is None: File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 583, in state raise ValueError( ValueError: Sensor sensor.grow_light_ds18b20_id has device class None, state class None unit and suggested precision None thus indicating it has a numeric value; however, it has the non-numeric value: 01142FE6D08E (<class 'str'>)
Exception in state_message_received when handling msg on 'tele/thermostat-main/SENSOR': '{"Time":"2023-05-05T14:41:21","DS18B20":{"Id":"0116283076EE","Temperature":70.4},"SHT3X":{"Temperature":70.9,"Humidity":46.9,"DewPoint":49.6},"TempUnit":"F"}' Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 579, in state numerical_value = int(value) ValueError: invalid literal for int() with base 10: '0116283076EE' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/hatasmota/sensor.py", line 334, in state_message_received self._on_state_callback(state, **kwargs) File "/usr/src/homeassistant/homeassistant/components/tasmota/sensor.py", line 294, in sensor_state_updated self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 585, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 649, in _async_write_ha_state state = self._stringify_state(available) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 591, in _stringify_state if (state := self.state) is None: File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 583, in state raise ValueError( ValueError: Sensor sensor.thermostat_main_ds18b20_id has device class None, state class None unit and suggested precision None thus indicating it has a numeric value; however, it has the non-numeric value: 0116283076EE (<class 'str'>)

Perhaps it’s a bug? My first thought since they have been working fine. I don’t know.

All devices are on Tasmota firmware 12.5.0 and have SetOption19 0

The error seems to me as if it’s reading a sensors address on the device when it should not. At least that’s what I glean from this bit in the error messages

thus indicating it has a numeric value; however, it has the non-numeric value: 01162842BAEE

I’m fairly sure that “01162842BAEE” is an address of one of the DS18B20 sensors.

Maybe somebody could help or maybe a bug report on github.com/home-assistant/core/issues is in order ?

HA update 2023.5.2 fixed it with this Bump hatasmota to 0.6.5 by emontnemery · Pull Request #92585 · home-assistant/core · GitHub

Awesome! :smile: