@Aircoookie @hani After reading through this enhancement thread again, I had a thought that could certainly apply this application as well as many others.
Is it possible to configure a segment to be the “AND” of 2 effects? In this application, the “background” effect would be Percent, or Solid Green with variable length, and the foreground effect would be something that gives “bubbles” where the effect speed is scaled to power consumption - proportional to [discharge rate - charge rate], or charge rate.
If that can be accomplished, I see value in this application where green background be battery charge with # of bubbles & speed indicating charge rate. And, alternatively, maybe every minute, toggling to background of red for power consumption, and # bubbles & speed indicates discharge rate.
If the “AND” were possible, the json api could adjust the % and rate and select the proper preset as well as a nice transition time, like, fade to black, then switch presets with intensity 0, and then increase to normal intensity smoothly using current transition speed setting(s).
It feels like this is as its core a rather generic application with a specific use case.