Somehow I missed your reply, sorry about that. I’ve contacted you by PM, let’s try to schedule a Zoom or Teams session to resolve this as I am not sure either what is happening… might depend on the version of my rules, or something like that…
ps, I don’t agree with the average speed: 291 km/h. I know EV’s are fast, but that fast? Maybe I just need some extra readings to get my average lowered? Will now go for a relaxing drive…
Nice Ben! Yes, the Volvo API is still somewhat buggy with some of the statistics. Good to know, they released a beta v2 version of the API which seems to be a bit more stable (and from my first tests using Postman it looks like the average speed is correct with v2):
I still need to incorporate it into the code.
Also good to know, maybe I should start a new thread, I have created some code to push the power percentage to ABRP (A Better Route Planner) using their API as well. Will publish it soon.
Still hoping some Java developer can actually create Bindings for this as well…
I had a look at GitHub - Dielee/volvo2mqtt: Home Assistant addon for connecting AAOS Volvos. After getting the vcc-api-key from https://developer.volvocars.com/account/ and changing some configurations in the src/settings.json, I was able to connect to my XC40 BEV MY23. This addon communicates via MQTT (duh!) and I have succeeded to intercept with mosquitto_sub the message volvoAAOS2mqtt/availability online, but that’s about it. I haven’t figured out how to communicate via MQTT with the addon.
I know it isn’t a very beautiful solution, but a quick hack could be to have this addon running as a service on the OS and then set up a {Generic MQTT Thing | HomeAssistant MQTT Component} in OpenHAB. Has anybody else tried this and figured out the MQTT topics and commands?