lbbrhzn/ocpp

Alfen solar charging boost switch

Opened this issue · 5 comments

Feature request switch boost charging Alfen in HA

alfen solar charging boost

I don't know if there is already a back office key for it.
I have the latest firmware version 7.0. 2-4322.
Charging on the generated power from the solar panels works perfectly.
I just want to be able to charge quickly every now and then. (Boost Charging)
This is currently only possible via ACE Service installer or the MyEve app, but it would be nice if there was a switch for this in Home Assistant

drc38 commented

You'd need to create a switch and automation in HA, then use ocpp configure action. Assuming there is a custom configuration key for it.

Hi, I'm also interested in this functionality.

I had a look at the specification document from Alfen ACE NG9 Backoffice Configuration keys 7.0.0.pdf. I didn't find anything related to boost but I found these 3 configuration keys:

SC-Mode

SolarCharging optimizes locally generated, excess power as measured by the smart meter. Must have Active Loadbalancing configured.

  • Green: SC-GreenShare is configurable
  • Comfort: SC-ComfortLevel is configurable

Possible values: Off / Green / Comfort

SC-GreenShare

Only used if "SC-Mode" is configured as 'Green', value in percentages.

  • If set to 0%, charging at minimum power is always possible.
  • If set to 100%, charging will only take place if minimum power to charge is measured as excess power on smart meter

Charging speed will increase to match excess power as measured on smart meter.

Values between: 0 - 100

SC-ComfortLevel

Only used if “SC‐Mode” is configured as 'Comfort'. Charging will always start irrespective of amount of excess power as measured on smart meter. Value, in kW, is configured as desired minimum charging power.
Charging speed will increase above Comfort Level to match excess power as measured on smart meter, never exceeding configured maximum current. If Comfort Level exceeds maximum available current, charging will not exceed maximum.

Values between: 1,4 - 22

From reading this, it seems to me that SC-GreenShare and SC-ComfortLevel could be set to the desired values once and that it might be enough to control SC-Mode from HomeAssistant. Setting this to Off and resetting it to one of the other modes (maybe using an automation) could give the same functionality as the boost knob in the Alfen apps.

This is just from reading the docs, I'll try this out when I have time. ;-)

@drc38 Are the ocpp actions documented somewhere? Is there a way to add an entity for reading a custom configuration key?

drc38 commented

The general actions are documented in the ocpp standard. If you select one from the list there is example input data also. The response, if any, for configuring a field is returned in the timestamp_config_response sensor attributes.

Putting together an entity based on an attribute of timestamp_config_response (which will hold responses for different configure actions) seems to be a bit tedious.

Would you guys consider adding Alfen's custom configuration keys as entities?