Barns The simple answer is yes, it's being used with Cosy. The longer answer is:
The SmartTarget feature in GivTCP uses a version of my PALM code that runs once at the start of the overnight charge period to set the target Soc for the coming day. As most of the generation occurs before 4pm, adding a fixed second charge in GivTCP works fine. Any excess charge gets used overnight, for example on water heating.
The standalone version of PALM (www.github.com/salewis38/palm) also supports Cosy and has improvements that haven't yet made it into GivTCP. One of these is to run the simulation twice: at the start of the overnight off-peak period and also an hour before the end to adjust for any changes in generation forecast due to the weather. The afternoon charge period varies according to the season. It's also fairly easy to edit the code if you want it to do something slightly different.