MQTT Battery Sensor

Tags: #<Tag:0x00007f3f1be0a518>


I have set up Owntracks on my Android phone ans also set up a sensor for my battery using this:

I noticed that the battery values comes through and updates but if somehow the phone is not connected the battery value disappear (I see ’ %’ instead)

Is there a way I could have HA retain the value until it’s updated again? Surely, we don’t need my phone to have an active socket connection to be able to disaply that value

Any help would be appreciated.