Tasmota / HASS discovery missing measurement units

Hi,
Update my tasmota devices and activated the auto discovery, which is working fine except for the unit of measurement. I have tasmota installed on a NodMCU and BH1750 luminance sensor. the sensor dose report the value on the hoe page with units (lx), and value only to HASS which result in history showing bars only.
I have tried setoption2 but that does not work.

any idea how to solve this?

image

Exactly what SetOption command did you run?

What does mosquitto_sub tell you abut what MQTT is actually seeing?

I have tried “setoption2 1” .
on the mqtt broker, I can see:

ambientlightkidsroom/tele/SENSOR {“Time”:“2018-12-25T06:41:08”,“BH1750”:{“Illuminance”:37}}

I also forgot to mention that I am using the latest tasmota version 6.4

Did you figure this out? I’m having the same problem :slight_smile:

setoption2 has been removed.

I am using ESPHome since a long which proved to be much easier to use and maintain once you get going with it. Most of my devices are now having it with very few Tasmota.

Looking again the unit_of_measurement should be in the discovery packets, not in the sensor packets. After all it does not change.