Tasmota ADC Vcc not received

I configured a Wemos D1 Mini with Tasmota for my Smart Meter and added the D1 Mini Battery Shield with a LiPo Battery since i don’t have a power outlet available.

But no matter if I use SetOption19 1 or 0 the additional Vcc doesn’t get shown in Home Assistant.
Since I can’t upload more than one image: The Value gets received by MQTT and then in the resulting status entity (SetOption19 1) I get Uptime, Version etc. of the message but not the Vcc…

Also: How do I prevent the entities in HA showing “unavailable” when the D1 Mini is in DeepSleep?

Just do it as a manual sensor, it will hold its value between sleeps. Although you might have to change the format for the sensor platform.

sensor:
    platform: mqtt
    name: "tasmota 86E7BD VCC"
    state_topic: "tele/tasmota_86E7BD/STATE"
    value_template: '{{value_json.Vcc}}'
    unit_of_measurement: "V"
    icon: "mdi:flash"
    device_class: voltage
    state_class: measurement

According to the documentation and vscode this is deprecated. Will it work nonetheless?
I tried the new syntax and it removed all automatically detected MQTT Devices…

I haven’t updated to the new syntax yet. As it is it still works for now. The automatic sensors still exist.

I can’t speak for the new syntax, but I would assume the automatic sensors shouldn’t be removed. That seems like a bug or so19 problem if they are getting removed with the new syntax

Hi @kaldrim , would you mind sharing the template of tasmota? I’m also trying to read ADC but can’t figure it out. Thanks!