I am new with Homey and an existing HomeAssistant user. Have 2 Sessy batteries and would like to work with XOM function of PbtH. In HomeAssistant I am also working with XOM and built 2 XOM automations : one with charging only and the other with both charge+discharge. I want to avoid that during cheap hours the batteries will discharge, charging from solar however is fine. How can I build a similar functionallity in Homey? Any help is appreciated!
And FYI: a completely new upgrade of PbtH will come as beta release soon. This will make PbtH act as an advanced Energy Management System. Smart Battery Control will be built in using a Linear Programming optimizer that will do what @Arnold79 wants to do ‘out of the box’ (without the need to build flows).
Spoiler alert:

