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/sensor/__init__.py:583
Integration: MQTT (documentation, issues)
First occurred: 18:44:21 (91 occurrences)
Last logged: 20:16:38
Exception raised when updating state of sensor.car_vehicleinfo_tripsinfo_trips_array_1_totalelectricdistance_value, topic: 'homeassistant/sensor/ZFAEFAC41NX0_car_vehicleInfo_tripsInfo_trips_array_1_totalElectricDistance_value/state' with payload: b'null'
Exception raised when updating state of sensor.car_vehicleinfo_tripsinfo_trips_array_1_totaldistance_value, topic: 'homeassistant/sensor/ZFAEFAC41NX0_car_vehicleInfo_tripsInfo_trips_array_1_totalDistance_value/state' with payload: b'null'
Exception raised when updating state of sensor.car_vehicleinfo_tripsinfo_trips_array_1_energyused_value, topic: 'homeassistant/sensor/ZFAEFAC41NX050548_car_vehicleInfo_tripsInfo_trips_array_1_energyUsed_value/state' with payload: b'null'
Exception raised when updating state of sensor.car_vehicleinfo_tripsinfo_trips_array_1_averageenergyused_value, topic: 'homeassistant/sensor/ZFAEFAC41NX0car_vehicleInfo_tripsInfo_trips_array_1_averageEnergyUsed_value/state' with payload: b'null'
Exception raised when updating state of sensor.car_vehicleinfo_tripsinfo_trips_array_1_totalhybriddistance_value, topic: 'homeassistant/sensor/ZFAEFAC41NX0car_vehicleInfo_tripsInfo_trips_array_1_totalHybridDistance_value/state' with payload: b'null'
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: 'null'
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 270, in process_write_state_requests
entity.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.car_vehicleinfo_tyrepressure_array_0_pressure_value has device class None, state class None unit kPa and suggested precision None thus indicating it has a numeric value; however, it has the non-numeric value: null (<class 'str'>)
Here my sensor with with payload 'null' (Fiat 500e new model 2023):
Exception raised when updating state of sensor.fiat_500e_vehicleinfo_tyrepressure_array_0_pressure_value with payload: b'null'
Exception raised when updating state of sensor.fiat_500e_vehicleinfo_tyrepressure_array_1_pressure_value with payload: b'null'
Exception raised when updating state of sensor.fiat_500e_vehicleinfo_tyrepressure_array_2_pressure_value with payload: b'null'
Exception raised when updating state of sensor.fiat_500e_vehicleinfo_tyrepressure_array_3_pressure_value with payload: b'null'
Exception raised when updating state of sensor.fiat_500e_vehicleinfo_tripsinfo_trips_array_0_totalelectricdistance_value with payload: b'null'
Exception raised when updating state of sensor.fiat_500e_vehicleinfo_tripsinfo_trips_array_0_totalhybriddistance_value with payload: b'null'
Exception raised when updating state of sensor.fiat_500e_vehicleinfo_tripsinfo_trips_array_1_totalelectricdistance_value with payload: b'null'
Exception raised when updating state of sensor.fiat_500e_vehicleinfo_tripsinfo_trips_array_1_totalhybriddistance_value with payload: b'null'
Device class should be pressure
same or similar problem here:
robinostlund/homeassistant-volkswagencarnet#474
The text was updated successfully, but these errors were encountered: