Battery Indicator Widget

Add Widget for Battery Indication.
A rectangle bar or any battery icon png and inside that based on the value colored indication will be shown.
As most of the IOT devices uses battery, so if someone wants to show the battery status to user on Dashboard this widget will prove useful.

Have you used a cylinder widget with your battery variable?

Yes that I have already used for another indication.
I think making two cylinder is not a good view for end user.

Need something like horizontal with battery png, so background of that can be filled based on the values.

You can leverage the “Icon” widget for that:

If you then go into the variable settings of the widget you can apply color and icon conditions for example:

I suspect this wil likely suit your needs. Otherwise I’d suggest creating a custom widget.

Thanks for sharing this information.