Set battery level based on decimal variable (Using Water Tank Level)

Hi All,

I've used the combination of a number of water sensors to create a decimal variable called "Water Tank Level - Decimal" which represents the % the water tank is full.

I'm keen to use this on a number of dashboard using batter level (in particular in Home Assistant).

I'm keen to create a Virtual Device (with a battery) and set that level.

I've tried using Virtual Devices:

  • Virtual Dimmer (core driver)
  • Virtual Battery Sensor (Virtual Batter Sensor v1.1.0 driver)
  • Virtual Switch uDTH Omni Lite (Universal Virtual Device Switch uDTH drive)
  • Virtual Switch uDTH Omni Super (Universal Virtual Device Switch uDTH drive)

I'm attempting to use RM to set the battery level using:

  • Set Variable, Mode or File, Run Custom Action
  • Run Custom Action
  • Actuator (or any other device type)
  • The options that follow don't allow me to set battery level.

I know plenty of others have done this... but it must be so simple, its not described in the other posts.

I've also looked at how I can pass the variable directly to Home Assistant, and change the type in there, but haven't been able to figure this out either.

Sorry for posting something that I think should be simple!

Any ideas on how to do this simply?