Hi all, nice work!
I found a way to have more items available for home assistant, via the API.
https://smappee.atlassian.net/wiki/spaces/DEVAPI/pages/1447165953/Get+Smart+Devices
First, you would need to retrieve the smartdeviceID of your charger. This is - for my case - the first instance of following command:
https://app1pub.smappee.net/dev/v3/servicelocation/[SERVICELOCATIONID]/smartdevices
Then, you can see all current settings in the get one smart device api call, with your device ID:
https://app1pub.smappee.net/dev/v3/servicelocation/[SERVICELOCATIONID]/smartdevices/[SMARTDEVICEID]
This is the structure I recieve from the response:
object {7}
id: CARCHARGER-XXX
uuid: XXXXX
name: XXX
favourite: true
type {9}
configurationProperties [4]
properties [2]
As a following step, you can perform two actions:
Modify a smart device - only everything withing configuration properties and general information. This is the least interesting part.
The execute smart device actions is more interesting:
https://app1pub.smappee.net/dev/v3/servicelocation/[SERVICELOCATIONID]/smartdevices/[SMARTDEVICEUUID]/actions/[NAME]
Take care, you need the SMARTDEVICE unique ID, which you can see from the response above. The actions, for my case, are located within type (9). There are 7 actions:
- startCharging: Start charging your car at the charging station, where you could provide as parameter the percentageLimit
- setPercentageLimit: Sets the maximum charging speed or the maximum current that your electric vehicle can support.
- stopCharging: Stop the charging session for the connected vehicle.
- normalChargingMode: Disable smart charging for the charging station
- smartChargingMode: Enable smart charging for the charging station
- pauseCharging: Pause the charging for this charging point
- setChargingMode: Set the charging mode, which controls the output of the charging point. The parameter for this one is mode, with 3 values (STANDARD, SMART, SOLAR)
I created some rest_command sensors for all those items, and via an automation, this could run. I tried it, and it works as a charm, you can now easily switch between standard, smart and solar charging in home assistant.
As a next step, I then created some custom charger in the evcc.yaml for the EVCC integration, as I was unable to use OCPP or other integrations. All the data for EVCC is retrieved by a Also this works, I can confirm.
My solution is that, when I want EVCC to control the smappee charger, I put it on STANDARD charging mode, such that EVCC can control the currents. The tabs in EVCC will then determine the current levels, based on PV power and home consumption.
The main issue I personally have, is that this is not so efficient, as my charger is 3phase, which can switch to 1phase, but you cannot control this from outside the device. This implies that EVCC min power is around 4kW.
Hope this is useful or it inspires some of you.