I managed to get information into Home Assistant from Tasker using AutoInput. It’s not the right solution, but this seems to be the only way to make this work as of today. I only got this working in one direction. I haven’t tried making things happen from Home Assistant through Tasker on the Polestar app.
AutoInput has an UI Query feature that can pull information from a screen. My task looks like this:
- Launch Polestar App
- Wait 10 seconds (the Polestar app can be very slow to update, especially the first time)
- AutoInput UI Query
- Clean up Variables by removing the % from the battery percentage and “Range” “.0 miles” from range so tha they are a valid integer
- Send value to Home Assistant variables using HA call-service (uses an HTTP post with an API key. Info here)
Pulling the Lock and Climate state can be done the same way, but it seems the output of the app differs when Locked vs Unlocked and Off vs Active. The values aren’t always pulled correctly, so it needs some tweaking.
I thought about maybe running this on an old Pixel, but, it really isn’t worth that much effort because it will break when the app can’t talk to the car and needs to be force closed (which I have to do very often). So this is more of a Proof of Concept
edit: added details about how this is done