Very nice to see you are developing a HEMS in Homey. Currently in the orientation phase for the best HEMS, preferably integrated in Homey because all devices that the HEMS needs to control are already connected. Someone else already launched a beta app similar to what you are building as far as I can see. [App][Pro] Homey EMS (HEMS): Smart EMS This app also has nice widget for a Homey dashboard.
Also configured EVCC, looks nice and promising, but can’t get it working for me yet.