Smappee Charger with Postman

Hi Brody,
Thanks for answering my question, hihly appreciated !
i did get the API working for some time, but now it stopped. I assume because of token being expired.
I did set the power limit of my EV loader to low when my heat pump starts, and set back to high when the heat pump stops. This as a “peak shaving” solution.

I used this code :

Smappee Laadpaal set Limit

rest_command:
laadpaal_set_limit_high:
url: “https://app1pub.smappee.net/dev/v3/chargingstations/6521000106/connectors/1/mode
method: “put”
headers:
Content-Type: “application/json”
Authorization: “Bearer 1ef2b39d-684e-3abb-bc06-c83e9bfbcd16”
payload: ‘{“mode”: “NORMAL”,“limit”: {“unit”: “PERCENTAGE”,“value”: 100}}’
laadpaal_set_limit_low:
url: “https://app1pub.smappee.net/dev/v3/chargingstations/6521000106/connectors/1/mode
method: “put”
headers:
Content-Type: “application/json”
Authorization: “Bearer 1ef2b39d-684e-3abb-bc06-c83e9bfbcd16”
payload: ‘{“mode”: “NORMAL”,“limit”: {“unit”: “PERCENTAGE”,“value”: 5}}’

Worked fine as long as my heat pump switched on/off within the token expiracy time.
Now i was trying to create an automation to get a refresh token every 10 hours as per this post

i’ll try to get your solution working, however, i m not a programmer, so no idea what appdeamon is, will do some researh…
Thanks again !!

1 Like