hesselonline / wallbox

MIT License
21 stars 8 forks source link

Ocpp integration #8

Open drc38 opened 3 years ago

drc38 commented 3 years ago

Hi @hesselonline, I have recently made a few changes to improve this HA ocpp integration but it really needs to follow a similar structure to your integration (and be reviewed by a HA coder 😉). Would you be able to assist? https://github.com/lbbrhzn/ocpp The wallboxes should all be able to use the integration along with other chargers supporting ocpp. Thanks

hesselonline commented 3 years ago

Sure, need to read up on OCPP though, does that need a seperate server or is it direct between HA and the charger? Are there specific questions or problems you are facing? Also, what is your end-goal with the integration? I first started with a basic implementation that used the yaml files for configuration, then moved on to the newer config flow approach. Now, I'm working on getting it into the main HA repo. These 3 levels of 'maturity' each have there own requirements and approaches.

drc38 commented 3 years ago

Great! The OCPP server is setup by the integration and run on the HA box (like a hub for other integrations). When a charger connects/registers it should ideally then set itself up in HA with sensors/switches/lock etc. The sensors have already been coded and now it needs extending to switches etc and wrapping it together so everything is related to a single charger instance. The main issue is how to code using the HA integration framework to do this, there will also need to be some custom services added to be able to set/clear smart charging profiles but if the basic integration structure is there extending it shouldn't be a problem. Ultimately users may want it in the main repo but it is already in HACS which works for most.