Hey Simon, that code was the branch I was developing on. It’s now been merged into main so is at openhab-addons/bundles/org.openhab.binding.amberelectric at main · openhab/openhab-addons · GitHub
OH 5.0M3 includes this latest change. If you’re still on OH 4.3 I can compile for you if needed.
btw for Sonnen, looks like there is Sonnen Battery Binding but doesn’t look like it can force discharge…