Dashboard Water Template Question

@patrick

I have a ton of SmartThings water sensors - all the same version and same firmware.

I notice on my dashboard some of them show a % after the battery number, and some don't. Why is that?

Because some haven't reported a battery level to the hub. If it's not in a state attribute, it's not going to be visible on dashboard

In my case every single tile has a battery number, it is just that some have a percent symbol after the number and some don't...

Not a big deal, but I could not understand why some had the percent symbol and some do not.

Unit is also reported by driver. Check the event history and drivers and make sure the unit is properly reporting.

Although, it's not like it's ever going to be anything other than % so not sure why that isn't hard coded, TBH

1 Like

So I checked, and even though there is a battery state listed on each device, for some reason some of those events have "blank" units, and some of them have "%" as units.

So it is showing exactly what is in the event table (no surprise there right?).

Correct, it will only show what the last state is, which should be the last event in the table.

Probably a driver issue somewhere, tagging @mike.maxwell to see if he wants to fix the missing units, but honestly, its probably easier to hard code percentage in this case :slight_smile:

I think the driver is okay. The issue was after initial pairing it never reported battery again. When I did a refresh on all of them they all reported battery with correct units.

So I'll do some troubleshooting to try to figure out why battery never reported after initial pairing.

Thanks.

1 Like

Interesting, can you hit configure, then refresh on the ones sans % symbol see if that sorts it

Yes, configure and refresh made them all come back with current battery values, and % on units. I'll watch them to make sure battery updates again in the future.

But for now it is all as it should be.

Thanks.