Providing evcc the actual Polestar 2 Soc by Tibber with a script (free) #10083
Replies: 5 comments 2 replies
-
Works well, too bad that there is still no official Polestar API - the data is there anyways... SOC via. Tibber in Home Assistant:
config:
|
Beta Was this translation helpful? Give feedback.
-
Hier wird ein weiteres Vorgehen beschrieben mittels Homeassistant. Tatsächlich so einfach ?
|
Beta Was this translation helpful? Give feedback.
-
Das Script braucht doch gar keine bestimmten Rechte. Der Service evcc läuft als ein bestimmter User und der sollte Lese- und Ausführ-Rechte auf dein Script haben. |
Beta Was this translation helpful? Give feedback.
-
Hallo, habe noch ein script in JS unter iobroker für die Reichweite, ist somit gut in evcc eingebunden |
Beta Was this translation helpful? Give feedback.
-
Finally- Polestar is coming in #11125 |
Beta Was this translation helpful? Give feedback.
-
I wanted to provide evcc my Polestar 2 Soc (state of charge)
There are two options by now. CarStatsViewer and Tibber and both of them are free to use.
CarStatsViewer is just sending data while someone is in the car.
Tibber is getting realtime data even if the car is closed.
Thats why i chose Tibber, but I did not want any additional platform like iobroker (https://forum.iobroker.net/topic/67947/bastell%C3%B6sung-polestar-ladezustand-via-tibber-app-api)
So i took the script from iobroker forum (Thanks to https://forum.iobroker.net/user/stroell) and adjusted it to node.js. That means the script can run on almost every operating system.
You need to install Tibber App on your smartphone, create an account and after that connect your polestar2:
As I run evcc on a Raspberry, this is how to run it on Linux:
Please install nodejs and npm: https://www.makersupplies.sg/blogs/tutorials/how-to-install-node-js-and-npm-on-the-raspberry-pi
In my case I have created following folder: /home/pi/pvm/tibber
Use the terminal or putty and navigate to the new folder and install nodejs module "request":
After that create file tibber.js and paste following content (Replace Mail and Passwort):
Run a test using the terminal (parameter 1 is activating debug output, without parameter you will just get the polestar Soc output:
node tibber.js 1
Try also just the Soc output:
node tibber.js
If it works fine, add this to your evcc.yaml:
cache: 5m means the Script will be activated every 5 Minutes which is fast enough to get actual data and will not stress your free Tibber Account.
Enjoy
Beta Was this translation helpful? Give feedback.
All reactions