Help with sending Command

(Nika Gerson Lohman) #21

Right now I get the status of the following btw:
longitude / lattitude (which make a google maps link)
doors frontLeftDoorOpen
doors frontRightDoorOpen
doors hoodOpen
doors rearLeftDoorOpen
doors rearRightDoorOpen
doors tailgateOpen
hvBattery distanceToHVBatteryEmpty
hvBattery distanceToHVBatteryEmptyTimestamp
hvBattery hvBatteryChargeModeStatus
hvBattery hvBatteryChargeStatus
hvBattery hvBatteryChargeStatusDerived
hvBattery hvBatteryChargeWarning
hvBattery hvBatteryLevel
hvBattery timeToHVBatteryFullyChargedTimestamp
position heading
position latitude
position longitude
position speed
tyrePressure frontLeftTyrePressure
tyrePressure frontRightTyrePressure
tyrePressure rearLeftTyrePressure
tyrePressure rearRightTyrePressure
windows frontLeftWindowOpen
windows frontRightWindowOpen
windows rearLeftWindowOpen
windows rearRightWindowOpen

(Michael Parment) #22

I am also now using to read position, status, lock the car and start the heater.


(Mattie) #23

Just to clarify-- did you actually find scripts for blink/honk? What was the VOC URL you used for those?

Thanks in advance if you have any hints there.

(Nika Gerson Lohman) #24

I have tried, but it returned an error in my case. I would have to trace again to see what the headers or body need to be when running the post-call. Previously I used Charles Proxy as proxy for the Android device on which I used Oncall to trace. I then tested with Postman to see which Headers and Body I needed to set for it to work…

(Morten Olsen) #25

Hello. Im trying to get this to work on Indigo. Im not so good at programming and python. Is there a readme file out there I can read me up on?

(Olle Sundberg) #26

My latest testing indicates that VOC has tightened the API, and I do not get the calls to work (receive http 500). Are you still able to run this?

(Roy Noordhoek) #27

Hi there. Anyone still using the VOC API? I can login and retreive my car data but I fail in sending commands like starting preclimatization. Any help in the HTTP set would be great! /roy

(Gaël L'hopital) #28

@nikagl : would you mind sharing your scripts, rules and items ? I also own a VOC enabled car :slight_smile:

(Nika Gerson Lohman) #29

@glhopital: I have used the code on the following site:

(E. Gerland) #30


I just bought a Volvo and would like to connect it as well.
Anyone who already prepared OH (items etc) and connected ot to
I still don’t understand how to install volvooncall mentioned above because the readme is quite short, but I guess I will figure it out.
Any help to accellerate my progress is greatly appreciated.

(E. Gerland) #31

I failed to run it, because it requires Python 3.
My openhabian just comes with 2.something.
I read that python 2.x and 3 are not compatible.
But I need tv current python for my km200 binding.

Any suggestions?

(Vincent Regaud) #32

sudo apt-get install python3

Then use python3 to use python 3 instead of python

(E. Gerland) #34

It’s that easy? A parallel installation - great.
Thank you so much Vincent!

(E. Gerland) #35

Actually I am still stuck.
And I am not familiar with python - as you can see :wink:

I installed volvo on call with:
python install

This installs a script in /usr/local/bin/ named voc.
Which looks like:

# EASY-INSTALL-SCRIPT: 'volvooncall==0.5.0','voc'
__requires__ = 'volvooncall==0.5.0'
__import__('pkg_resources').run_script('volvooncall==0.5.0', 'voc')

When I run:
python3 /usr/local/bin/voc
I get

Traceback (most recent call last):
  File "/usr/local/bin/voc", line 4, in <module>
    __import__('pkg_resources').run_script('volvooncall==0.5.0', 'voc')
  File "/usr/lib/python3/dist-packages/", line 2876, in <module>
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3/dist-packages/", line 449, in _build_master
  File "/usr/lib/python3/dist-packages/", line 745, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3/dist-packages/", line 639, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: volvooncall==0.5.0

When I run:

I get:
Python 3 required

Did the installation (no error messages) succeed?
Do I still need the original folder I installed voc from?
How to run the voc script correctly?

Any help is greatly appreciated.

(Vincent Regaud) #36


Remove the file /usr/local/bin/vocand run the install again with:

python3 install

The file line of the file should now be: #!/usr/bin/python3

(E. Gerland) #37

Yeah, that did the job!
Thanks again!

(E. Gerland) #38

Hi Nika,

I am able to connect to my XC60 for the first time and get GPS, fuel level ans VIN.
However, I would like to request a bit more than that.

The documentation of the github project voc is quite limited.
Would you please share your stuff?

(E. Gerland) #39

Hi Michael,

would you be willing to share your stuff?
I would like to start my heater and lock the car as well (among other things).
Any help would be greatly appreciated.


(Nika Gerson Lohman) #40

Not sure what you want us to share? The stuff is on the github:

Questions about it? Ask here or on the Github page:



(E. Gerland) #41

I thought about re-using OH items and rules from you guys based on the VOC from github.

You are right, I was a bit impatient and figured some things out already.

Thanks for your response though.