We want to integrate a battery which is not available on the current library, I have seen that the battery modules are either handled via statemachine is there any guideline how to create the battery with the state machine package? Also for integrating a BMS, like the bmw.
I generally recommend to implement a State-Machine, as it helps a lot when things get more complicated. Also the Generic-ESS, which is the preferred way of using a Battery, uses the StartStoppable to interact with the Battery and start or stop it when required. This is also implemented nicely in State-Machines.
When implementing the BMS, please also have a look at this current pull-request as it brings a lot of interesting features for using the battery in an optimized way:
We are trying to couple Gridcon PCS with a Pylontech battery BMS, so the first approach was to use the Gridcon as the PCS unit with the MR Gridcon ESS on Grid / Off grid in order to couple the DC / DC IPU and therefore a battery (Pylontech).
So, the attempts to use the openEMS were to use either the BMW battery and the FENECON home battery, as components.