Rogue battery level on a non-battery powered device

Every once in a while, I see a battery level indicator of 0% on a device that’s not battery powered. When it was first setup, it did not appear (that’s how it should be). Any suggestions on how to get rid of it? Picture is attached.

Do a hard browser refresh.

I’ve seen this a number of times. In my case, a browser refresh wouldn’t do anything because there genuinely has been a new BatteryLevel device variable created…

…one of the joys of Vera!

You should be able to delete the variable.

How do you delete a variable once it has been created ?
I thought there wasn’t an easy way to do that.

By sending a nill value.

1 Like

Great I didn’t know that, could come in handy.

Starting with firmware versions 1.7.1036 (Vera 3 and Vera Lite), 1.7.3917 (Vera Edge), 1.7.3918 (Vera Plus), and 1.7.3919 (Vera Secure), it is possible to delete a variable by setting its value to nil :

luup.variable_set(“urn:upnp-org:serviceId:SwitchPower1”, “Status”, nil, 7)

1 Like