Hassio tasmota sensor

Hi everyone, since the latest Hass.io update, I’ve been having issues with several sensors I used in my automations.
I’ve flashed multiple devices with Tasmota and connected sensors using either single boards or the Sonoff. Since the last update, these sensors no longer show up on my dashboard. I get a message saying “entity unavailable.” Does anyone have an idea what might be causing this?

However, when I go to the Tasmota page of the device, I can still see the sensors and their corresponding values.

Check if your MQTT broker is running

(And hassio has not been used for several years)

1 Like

The broker is working fine. I have many other MQTT devices.

What version are your Tasmota devices ?

See

As far as I know, version 8.10 has always worked fine.

No longer. HA since 2025.7.x rejects wrongly configured MQTT sensors, so no sensors created any more, where before they were created even with a wrong state_class or unit_of_measurement.

But what do you mean by wrongly configured? I don’t understand, it always worked fine.

Older Tasmota’s use configurations that were deprecated ages ago. Now it does no longer work.

Will updating the Tasmota version fix it?

Yes it will

Be sure to follow the upgrade path :

1 Like

I’ve been working on it for a bit, and when I upload a newer version, the BH1750 lux sensor disappears. But when I go back to version 8.1, it shows up again — although only in the Tasmota web interface, not yet in Hass.io.

Restart HA, and look in the logs for your sensor. Post the error here.

Logger: homeassistant.components.mqtt.entity
Bron: components/mqtt/entity.py:156
integratie: MQTT (documentatie, problemen)
Eerst voorgekomen: 09:29:33 (29 gebeurtenissen)
Laatst gelogd: 09:30:07

Error ‘The unit of measurement VA is not valid together with device class power’ when processing MQTT discovery message topic: ‘homeassistant/sensor/2CFAF8_ENERGY_ApparentPower_1/config’, message: ‘{‘availability_topic’: ‘tele/Rolluik_keuken/LWT’, ‘payload_available’: ‘Online’, ‘payload_not_available’: ‘Offline’, ‘device’: {‘identifiers’: [‘2CFAF8’]}, ‘unique_id’: ‘2CFAF8_ENERGY_ApparentPower_1’, ‘name’: ‘Rolluik Keuken ENERGY ApparentPower 1’, ‘force_update’: True, ‘state_topic’: ‘tele/Rolluik_keuken/SENSOR’, ‘unit_of_measurement’: ‘VA’, ‘value_template’: “{{value_json[‘ENERGY’][‘ApparentPower’][0]}}”, ‘device_class’: ‘power’}’
Error ‘The unit of measurement VA is not valid together with device class power’ when processing MQTT discovery message topic: ‘homeassistant/sensor/2CFAF8_ENERGY_ApparentPower_2/config’, message: ‘{‘availability_topic’: ‘tele/Rolluik_keuken/LWT’, ‘payload_available’: ‘Online’, ‘payload_not_available’: ‘Offline’, ‘device’: {‘identifiers’: [‘2CFAF8’]}, ‘unique_id’: ‘2CFAF8_ENERGY_ApparentPower_2’, ‘name’: ‘Rolluik Keuken ENERGY ApparentPower 2’, ‘force_update’: True, ‘state_topic’: ‘tele/Rolluik_keuken/SENSOR’, ‘unit_of_measurement’: ‘VA’, ‘value_template’: “{{value_json[‘ENERGY’][‘ApparentPower’][1]}}”, ‘device_class’: ‘power’}’
Error ‘The unit of measurement VAr is not valid together with device class power’ when processing MQTT discovery message topic: ‘homeassistant/sensor/2CFAF8_ENERGY_ReactivePower_1/config’, message: ‘{‘availability_topic’: ‘tele/Rolluik_keuken/LWT’, ‘payload_available’: ‘Online’, ‘payload_not_available’: ‘Offline’, ‘device’: {‘identifiers’: [‘2CFAF8’]}, ‘unique_id’: ‘2CFAF8_ENERGY_ReactivePower_1’, ‘name’: ‘Rolluik Keuken ENERGY ReactivePower 1’, ‘force_update’: True, ‘state_topic’: ‘tele/Rolluik_keuken/SENSOR’, ‘unit_of_measurement’: ‘VAr’, ‘value_template’: “{{value_json[‘ENERGY’][‘ReactivePower’][0]}}”, ‘device_class’: ‘power’}’
Error ‘The unit of measurement VAr is not valid together with device class power’ when processing MQTT discovery message topic: ‘homeassistant/sensor/2CFAF8_ENERGY_ReactivePower_2/config’, message: ‘{‘availability_topic’: ‘tele/Rolluik_keuken/LWT’, ‘payload_available’: ‘Online’, ‘payload_not_available’: ‘Offline’, ‘device’: {‘identifiers’: [‘2CFAF8’]}, ‘unique_id’: ‘2CFAF8_ENERGY_ReactivePower_2’, ‘name’: ‘Rolluik Keuken ENERGY ReactivePower 2’, ‘force_update’: True, ‘state_topic’: ‘tele/Rolluik_keuken/SENSOR’, ‘unit_of_measurement’: ‘VAr’, ‘value_template’: “{{value_json[‘ENERGY’][‘ReactivePower’][1]}}”, ‘device_class’: ‘power’}’
Error ‘The unit of measurement % is not valid together with device class temperature’ when processing MQTT discovery message topic: ‘homeassistant/sensor/ebusd_bai_ModulationTempDesired_value/config’, message: '{‘unique_id’: ‘ebusd_bai_ModulationTempDesired_value’, ‘device’: {‘identifiers’: ‘ebusd_bai’, ‘manufacturer’: ‘ebusd.eu’, ‘via_device’: ‘ebusd’, ‘sw_version’: ‘25.1’, ‘suggested_area’: ‘Heating’, ‘name’: ‘ebusd bai’}, ‘value_template’: ‘{{value_json[“value”].value}}’, ‘state_topic’: ‘ebusd/bai/ModulationTempDesired’, ‘unit_of_measurement’: ‘%’, ‘state_class’: ‘measurement’, ‘device_class’: ‘temperature’, ‘name’: 'ModulationTempDesired ‘}’

I was finally able to solve it. The upgrade to v15 succeeded, but the sensor was still not visible. After downgrading to version 13, it worked.

2 Likes

Hi
it seems that the ‘VA’ unit of measurement is no longer recognized.