WARNING:
I have stopped development for this myself as I have moved to https://github.com/Platzii/homeassistant-evcnet which does not require these flows and node-red anymore... So I cannot test anything and I would recommend forking this repo to someone that can still continue development that includes testing the changes...
Regards,
Nika.
50five.json
This is the Node Red flow for 50five charging station.
- Import the file into Node Red
- Change the URL, username and password on the subflow
- Publish the flow
Current flow supports:
- Login
- Start/Stop charging
- Poll status
- Reset (softreset, not sure yet what the difference between hard- and softreset is)
- Logout
- Use MQTT to send actions
- Use MQTT to receive status
- Creates home assistant buttons & switch for start/stop/polling/reset
In the "Extract Card ID" function node you may need to replace this depending on the card you'd like to use:
var cardid = payload[0][1].id;
change this to the following if you would like to use the first card:
var cardid = payload[0][0].id;
50five.postman_collection.json
This is my (anonimized) json collection. API connection doesn't work but the others do...
Make sure to replace:
- <USERNAME HERE> = your 50five username
- <PASSWORD HERE> = your 50five password
- <CHARGESPOT HERE> = the chargespot ID returned by EndUserRechargeSpotListView_99
- <NAME HERE> = a name that is used to search for customers in your chargespot (my first name in my case)
- <CUSTOMERID HERE> = the customer id returned by RechargeSpotDashboard_642
- <CARDID HERE> = the card id returned by RechargeSpotDashboard_688