Connected Cars

In this subforum you can show projects you have made, or you are busy with. Please create your own topic.

Moderator: leecollings

User avatar
kiddigital
Posts: 438
Joined: Thursday 10 August 2017 6:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Connected Cars

Post by kiddigital »

Hi @FireWizard
FireWizard wrote: Wednesday 17 March 2021 12:29 Hello @kiddigital,

You wondered:
Maybe create a separate ‘Volvo on Call API’ forum thread to continue?
I have been starting this thread more than 2 years ago, as, at that, time there was nothing about "connected" cars.

...

So I suggest to open a new thread for the Volvo extended vehicle API, as soon as the Domoticz "hardware" component is ready.
Perhaps, also to ask a moderator to move all the posts, starting March 9, to this new thread if this is possible.

Regards
Found some time to play around with the Volvo Demo API and got some initial things working...
(see my github repo https://github.com/kiddigital/domoticz/ ... olvooncall)

Devices:
volvo1.JPG
volvo1.JPG (236.45 KiB) Viewed 2338 times
Setup:
volvo2.JPG
volvo2.JPG (142 KiB) Viewed 2338 times
Work in progress and Authorization does not (really) work as the 'password' now is the 'access_token' from the portal ;)

Opening a new thread later is fine by me :)
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
User avatar
FireWizard
Posts: 1889
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Connected Cars

Post by FireWizard »

Hello @kiddigital,
Found some time to play around with the Volvo Demo API and got some initial things working...
I see it and the screenshots looks already good. :)

Some issues perhaps to be aware of.

1. Currently the Volvo DEMO car returns 35 sensors and does not have any possibilities to send controls.
My private car (Volvo V40 from 2019) returns 36 sensors, while the documentation describes 39 sensors
I implemented them all, but some of them are more useful then others.

2. In the second screenshot it looks that you have a configuration field for the VIN
This is quite a long number and may lead to mistakes, if you fill it in manually.
It is not necessary, as you can ask (at least if the provided credentials are correct) for it:
https://api.volvocars.com/extended-vehicle/v1/vehicles. It will return the VIN.

3. You also use two intervals, dependent whether the car is at home or not.
How do you know that, as the current version of the API does not provide any location (lat/lon) information.
This current interface has not been made specifically for EV cars. So charging will also not work.
My previous car had a "Parking heater", but my current car has not.
So no information about "Heater" or "Climate control"

Another thing to be aware of, that, if the cars is moving, you will (at least) not receive location information, for privacy reasons.
The other sensors I have never tried, but I think it does not communicate with the central server.

But continue the good work.

Regards
User avatar
kiddigital
Posts: 438
Joined: Thursday 10 August 2017 6:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Connected Cars

Post by kiddigital »

FireWizard wrote: Tuesday 23 March 2021 12:15 Hello @kiddigital,
Found some time to play around with the Volvo Demo API and got some initial things working...
I see it and the screenshots looks already good. :)

Some issues perhaps to be aware of.

1. Currently the Volvo DEMO car returns 35 sensors and does not have any possibilities to send controls.
My private car (Volvo V40 from 2019) returns 36 sensors, while the documentation describes 39 sensors
I implemented them all, but some of them are more useful then others.
For the implementation I am re-using the eVehicle framework that is also used for both the Tesla and the Mercedes implementation.

The framework now has a set of given sensors it support at the moment (based on the first implementation of the Tesla) but could/should be extended to support other sensors as well.

For now I mapped the Volvo sensors on the existing set.

Additionally, all available sensors that are provided by the API for the given car are also processed and added as 'custom sensors' with some guess work about the type (switch for example when the value looks like a boolean, or text as generic fall back). This does mean that some values could be there twice :) Once as a value mapped to one of the existing sensors in the framework and once as a custom sensor.

Playing with the idea of adding a toggle on the settings screen to (dis)allow the creation of custom (read 'unmapped') sensors, so users can decide if they want everything, but maybe the types could be wrong or not suited, or only the ones that are mapped perfectly.
FireWizard wrote:2. In the second screenshot it looks that you have a configuration field for the VIN
This is quite a long number and may lead to mistakes, if you fill it in manually.
It is not necessary, as you can ask (at least if the provided credentials are correct) for it:
https://api.volvocars.com/extended-vehicle/v1/vehicles. It will return the VIN.
I noticed this indeed but decided to stick with entering the VIN for a few reasons:
  • That is how the eVehicle framework works
  • In theory the Volvo API can returned multiple VIN's, which one to pick then?
  • You only have to enter the VIN once at setup, and errorlogging shows quick enough if you entered a (wrong) VIN that does not match the VIN(s) you have access to.
  • And entering your own VIN is a good way to double check that it is your car :)
FireWizard wrote:3. You also use two intervals, dependent whether the car is at home or not.
How do you know that, as the current version of the API does not provide any location (lat/lon) information.
This current interface has not been made specifically for EV cars. So charging will also not work.
My previous car had a "Parking heater", but my current car has not.
So no information about "Heater" or "Climate control"
True, we don't know and therefor it defaults to Not Home. So the 'Active' interval is never used as stated in the text :) Could be removed...
FireWizard wrote:Another thing to be aware of, that, if the cars is moving, you will (at least) not receive location information, for privacy reasons.
The other sensors I have never tried, but I think it does not communicate with the central server.

But continue the good work.

Regards
I think most manufacturers will be very reluctant to provide precise location information (lon/lat, etc.) as it could be easily abused. Better would be somekind of support of user-location like 'home', 'work', 'school', etc. where the car is aware of the actual location (geofence) but the API only provides information that is meaningful to the cars owners/users.

and will do :)
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
Filip
Posts: 110
Joined: Thursday 03 November 2016 10:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Connected Cars

Post by Filip »

WvdM78 wrote: Saturday 20 March 2021 21:45
Filip wrote: Sunday 28 February 2021 16:21 FYI. I added recently the possibility to execute remote services (LIGHT, HORN, HEATING/ARICO).
This allows me starting my AIRCO/HEATING from any script. I have a script that reads my calendar... So I can book my airco/heating in advance :-).
Filip
Hi Filip,

I recently found out that you have made the Domoticz-BMW plugin, which is great news! I am trying to install it to read the values of a BMW i3, but I get some errors in the log of domotics. I am not sure I have the right libraries installed; i have installed:
urllib3_1_26_2 1.26.2.0
datetime3
json-python3

So far I managed to install the script, and with debuggin on it initialises quite well, but cannot get any values. It seems it is stuck on a readevent.
Authentication is without errors, at the second or third readevent it gives the following log:
---
2021-03-20 21:20:18.981 (BMW Connected) Processing 'ReadEvent' message
2021-03-20 21:20:18.981 (BMW Connected) Received 1508 bytes of data
2021-03-20 21:20:18.982 (BMW Connected) 48 54 54 50 2f 31 2e 31 20 34 30 30 20 42 61 64 20 52 65 71 HTTP/1.1.400.Bad.Req
2021-03-20 21:20:18.982 (BMW Connected) 75 65 73 74 0d 0a 44 61 74 65 3a 20 53 61 74 2c 20 32 30 20 uest..Date:.Sat,.20.
2021-03-20 21:20:18.982 (BMW Connected) 4d 61 72 20 32 30 32 31 20 32 30 3a 32 30 3a 31 38 20 47 4d Mar.2021.20:20:18.GM
2021-03-20 21:20:18.982 (BMW Connected) 54 0d 0a 53 65 72 76 65 72 3a 20 41 70 61 63 68 65 0d 0a 4d T..Server:.Apache..M
2021-03-20 21:20:18.982 (BMW Connected) 61 78 2d 46 6f 72 77 61 72 64 73 3a 20 32 30 0d 0a 56 69 61 ax-Forwards:.20..Via
2021-03-20 21:20:18.982 (BMW Connected) 3a 20 31 2e 30 20 6c 70 63 64 61 70 69 67 61 70 70 30 35 20 :.1.0.lpcdapigapp05.
2021-03-20 21:20:18.982 (BMW Connected) 28 29 0d 0a 58 2d 43 6f 72 72 65 6c 61 74 69 6f 6e 49 44 3a ()..X-CorrelationID:
2021-03-20 21:20:18.982 (BMW Connected) 20 49 64 2d 30 32 35 39 35 36 36 30 30 35 62 38 39 63 64 35 .Id-0259566005b89cd5
2021-03-20 21:20:18.983 (BMW Connected) 30 33 64 36 36 62 34 36 20 30 0d 0a 58 2d 46 72 61 6d 65 2d 03d66b46.0..X-Frame-
2021-03-20 21:20:18.983 (BMW Connected) 4f 70 74 69 6f 6e 73 3a 20 53 41 4d 45 4f 52 49 47 49 4e 0d Options:.SAMEORIGIN.
2021-03-20 21:20:18.983 (BMW Connected) 0a 43 6f 6e 74 65 6e 74 2d 4c 61 6e 67 75 61 67 65 3a 20 0d .Content-Language:..
2021-03-20 21:20:18.983 (BMW Connected) 0a 43 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20 74 65 78 74 2f .Content-Type:.text/
2021-03-20 21:20:18.983 (BMW Connected) 68 74 6d 6c 0d 0a 53 65 74 2d 43 6f 6f 6b 69 65 3a 20 35 38 html..Set-Cookie:.58
2021-03-20 21:20:18.983 (BMW Connected) 35 65 64 64 39 37 63 61 30 64 39 34 36 37 66 63 30 35 35 63 5edd97ca0d9467fc055c
2021-03-20 21:20:18.983 (BMW Connected) 62 35 63 31 65 31 34 35 65 64 3d 36 30 37 35 33 36 33 32 37 b5c1e145ed=607536327
2021-03-20 21:20:18.984 (BMW Connected) 62 35 36 62 66 37 32 62 62 36 36 36 36 61 62 66 32 61 32 64 b56bf72bb6666abf2a2d
2021-03-20 21:20:18.984 (BMW Connected) 36 63 30 3b 20 70 61 74 68 3d 2f 3b 20 48 74 74 70 4f 6e 6c 6c0;.path=/;.HttpOnl
2021-03-20 21:20:18.984 (BMW Connected) 79 3b 20 53 65 63 75 72 65 0d 0a 53 65 74 2d 43 6f 6f 6b 69 y;.Secure..Set-Cooki
2021-03-20 21:20:18.984 (BMW Connected) 65 3a 20 52 4f 55 54 45 49 44 3d 2e 30 3b 20 70 61 74 68 3d e:.ROUTEID=.0;.path=
2021-03-20 21:20:18.984 (BMW Connected) 2f 0d 0a 43 6f 6e 6e 65 63 74 69 6f 6e 3a 20 63 6c 6f 73 65 /..Connection:.close
2021-03-20 21:20:18.984 (BMW Connected) 0d 0a 54 72 61 6e 73 66 65 72 2d 45 6e 63 6f 64 69 6e 67 3a ..Transfer-Encoding:
2021-03-20 21:20:18.984 (BMW Connected) 20 63 68 75 6e 6b 65 64 0d 0a 0d 0a 34 32 64 0d 0a 3c 21 44 .chunked....42d..<!D
2021-03-20 21:20:18.985 (BMW Connected) 4f 43 54 59 50 45 20 68 74 6d 6c 20 50 55 42 4c 49 43 20 22 OCTYPE.html.PUBLIC."
2021-03-20 21:20:18.985 (BMW Connected) 2d 2f 2f 57 33 43 2f 2f 44 54 44 20 58 48 54 4d 4c 20 31 2e -//W3C//DTD.XHTML.1.
2021-03-20 21:20:18.985 (BMW Connected) 30 20 53 74 72 69 63 74 2f 2f 45 4e 22 20 22 68 74 74 70 3a 0.Strict//EN"."http:
2021-03-20 21:20:18.985 (BMW Connected) 2f 2f 77 77 77 2e 77 33 2e 6f 72 67 2f 54 52 2f 78 68 74 6d //www.w3.org/TR/xhtm
2021-03-20 21:20:18.985 (BMW Connected) 6c 31 2f 44 54 44 2f 78 68 74 6d 6c 31 2d 73 74 72 69 63 74 l1/DTD/xhtml1-strict
2021-03-20 21:20:18.985 (BMW Connected) 2e 64 74 64 22 3e 3c 68 74 6d 6c 20 78 6d 6c 6e 73 3d 22 68 .dtd"><html.xmlns="h
2021-03-20 21:20:18.985 (BMW Connected) 74 74 70 3a 2f 2f 77 77 77 2e 77 33 2e 6f 72 67 2f 31 39 39 ttp://www.w3.org/199
2021-03-20 21:20:18.985 (BMW Connected) 39 2f 78 68 74 6d 6c 22 3e 3c 68 65 61 64 3e 3c 74 69 74 6c 9/xhtml"><head><titl
2021-03-20 21:20:18.986 (BMW Connected) 65 3e 50 61 79 61 72 61 20 4d 69 63 72 6f 20 23 62 61 64 61 e>Payara.Micro.#bada
2021-03-20 21:20:18.986 (BMW Connected) 73 73 66 69 73 68 20 2d 20 45 72 72 6f 72 20 72 65 70 6f 72 ssfish.-.Error.repor
2021-03-20 21:20:18.986 (BMW Connected) 74 3c 2f 74 69 74 6c 65 3e 3c 73 74 79 6c 65 20 74 79 70 65 t</title><style.type
2021-03-20 21:20:18.986 (BMW Connected) 3d 22 74 65 78 74 2f 63 73 73 22 3e 3c 21 2d 2d 48 31 20 7b ="text/css"><!--H1.{
2021-03-20 21:20:18.986 (BMW Connected) 66 6f 6e 74 2d 66 61 6d 69 6c 79 3a 54 61 68 6f 6d 61 2c 41 font-family:Tahoma,A
2021-03-20 21:20:18.986 (BMW Connected) 72 69 61 6c 2c 73 61 6e 73 2d 73 65 72 69 66 3b 63 6f 6c 6f rial,sans-serif;colo
2021-03-20 21:20:18.986 (BMW Connected) 72 3a 77 68 69 74 65 3b 62 61 63 6b 67 72 6f 75 6e 64 2d 63 r:white;background-c
2021-03-20 21:20:18.986 (BMW Connected) 6f 6c 6f 72 3a 23 35 32 35 44 37 36 3b 66 6f 6e 74 2d 73 69 olor:#525D76;font-si
2021-03-20 21:20:18.987 (BMW Connected) 7a 65 3a 32 32 70 78 3b 7d 20 48 32 20 7b 66 6f 6e 74 2d 66 ze:22px;}.H2.{font-f
2021-03-20 21:20:18.987 (BMW Connected) 61 6d 69 6c 79 3a 54 61 68 6f 6d 61 2c 41 72 69 61 6c 2c 73 amily:Tahoma,Arial,s
2021-03-20 21:20:18.987 (BMW Connected) 61 6e 73 2d 73 65 72 69 66 3b 63 6f 6c 6f 72 3a 77 68 69 74 ans-serif;color:whit
2021-03-20 21:20:18.987 (BMW Connected) 65 3b 62 61 63 6b 67 72 6f 75 6e 64 2d 63 6f 6c 6f 72 3a 23 e;background-color:#
2021-03-20 21:20:18.987 (BMW Connected) 35 32 35 44 37 36 3b 66 6f 6e 74 2d 73 69 7a 65 3a 31 36 70 525D76;font-size:16p
2021-03-20 21:20:18.987 (BMW Connected) 78 3b 7d 20 48 33 20 7b 66 6f 6e 74 2d 66 61 6d 69 6c 79 3a x;}.H3.{font-family:
2021-03-20 21:20:18.987 (BMW Connected) 54 61 68 6f 6d 61 2c 41 72 69 61 6c 2c 73 61 6e 73 2d 73 65 Tahoma,Arial,sans-se
2021-03-20 21:20:18.987 (BMW Connected) 72 69 66 3b 63 6f 6c 6f 72 3a 77 68 69 74 65 3b 62 61 63 6b rif;color:white;back
2021-03-20 21:20:18.988 (BMW Connected) 67 72 6f 75 6e 64 2d 63 6f 6c 6f 72 3a 23 35 32 35 44 37 36 ground-color:#525D76
2021-03-20 21:20:18.988 (BMW Connected) 3b 66 6f 6e 74 2d 73 69 7a 65 3a 31 34 70 78 3b 7d 20 42 4f ;font-size:14px;}.BO
2021-03-20 21:20:18.988 (BMW Connected) 44 59 20 7b 66 6f 6e 74 2d 66 61 6d 69 6c 79 3a 54 61 68 6f DY.{font-family:Taho
2021-03-20 21:20:18.988 (BMW Connected) 6d 61 2c 41 72 69 61 6c 2c 73 61 6e 73 2d 73 65 72 69 66 3b ma,Arial,sans-serif;
2021-03-20 21:20:18.988 (BMW Connected) 63 6f 6c 6f 72 3a 62 6c 61 63 6b 3b 62 61 63 6b 67 72 6f 75 color:black;backgrou
2021-03-20 21:20:18.988 (BMW Connected) 6e 64 2d 63 6f 6c 6f 72 3a 77 68 69 74 65 3b 7d 20 42 20 7b nd-color:white;}.B.{
2021-03-20 21:20:18.988 (BMW Connected) 66 6f 6e 74 2d 66 61 6d 69 6c 79 3a 54 61 68 6f 6d 61 2c 41 font-family:Tahoma,A
2021-03-20 21:20:18.989 (BMW Connected) 72 69 61 6c 2c 73 61 6e 73 2d 73 65 72 69 66 3b 63 6f 6c 6f rial,sans-serif;colo
2021-03-20 21:20:18.989 (BMW Connected) 72 3a 77 68 69 74 65 3b 62 61 63 6b 67 72 6f 75 6e 64 2d 63 r:white;background-c
2021-03-20 21:20:18.989 (BMW Connected) 6f 6c 6f 72 3a 23 35 32 35 44 37 36 3b 7d 20 50 20 7b 66 6f olor:#525D76;}.P.{fo
2021-03-20 21:20:18.989 (BMW Connected) 6e 74 2d 66 61 6d 69 6c 79 3a 54 61 68 6f 6d 61 2c 41 72 69 nt-family:Tahoma,Ari
2021-03-20 21:20:18.989 (BMW Connected) 61 6c 2c 73 61 6e 73 2d 73 65 72 69 66 3b 62 61 63 6b 67 72 al,sans-serif;backgr
2021-03-20 21:20:18.989 (BMW Connected) 6f 75 6e 64 3a 77 68 69 74 65 3b 63 6f 6c 6f 72 3a 62 6c 61 ound:white;color:bla
2021-03-20 21:20:18.989 (BMW Connected) 63 6b 3b 66 6f 6e 74 2d 73 69 7a 65 3a 31 32 70 78 3b 7d 41 ck;font-size:12px;}A
2021-03-20 21:20:18.989 (BMW Connected) 20 7b 63 6f 6c 6f 72 20 3a 20 62 6c 61 63 6b 3b 7d 48 52 20 .{color.:.black;}HR.
2021-03-20 21:20:18.990 (BMW Connected) 7b 63 6f 6c 6f 72 20 3a 20 23 35 32 35 44 37 36 3b 7d 2d 2d {color.:.#525D76;}--
2021-03-20 21:20:18.990 (BMW Connected) 3e 3c 2f 73 74 79 6c 65 3e 20 3c 2f 68 65 61 64 3e 3c 62 6f ></style>.</head><bo
2021-03-20 21:20:18.990 (BMW Connected) 64 79 3e 3c 68 31 3e 48 54 54 50 20 53 74 61 74 75 73 20 34 dy><h1>HTTP.Status.4
2021-03-20 21:20:18.990 (BMW Connected) 30 30 20 2d 20 42 61 64 20 52 65 71 75 65 73 74 3c 2f 68 31 00.-.Bad.Request</h1
2021-03-20 21:20:18.990 (BMW Connected) 3e 3c 68 72 2f 3e 3c 70 3e 3c 62 3e 74 79 70 65 3c 2f 62 3e ><hr/><p><b>type</b>
2021-03-20 21:20:18.990 (BMW Connected) 20 53 74 61 74 75 73 20 72 65 70 6f 72 74 3c 2f 70 3e 3c 70 .Status.report</p><p
2021-03-20 21:20:18.990 (BMW Connected) 3e 3c 62 3e 6d 65 73 73 61 67 65 3c 2f 62 3e 42 61 64 20 52 ><b>message</b>Bad.R
2021-03-20 21:20:18.991 (BMW Connected) 65 71 75 65 73 74 3c 2f 70 3e 3c 70 3e 3c 62 3e 64 65 73 63 equest</p><p><b>desc
2021-03-20 21:20:18.991 (BMW Connected) 72 69 70 74 69 6f 6e 3c 2f 62 3e 54 68 65 20 72 65 71 75 65 ription</b>The.reque
2021-03-20 21:20:18.991 (BMW Connected) 73 74 20 73 65 6e 74 20 62 79 20 74 68 65 20 63 6c 69 65 6e st.sent.by.the.clien
2021-03-20 21:20:18.991 (BMW Connected) 74 20 77 61 73 20 73 79 6e 74 61 63 74 69 63 61 6c 6c 79 20 t.was.syntactically.
2021-03-20 21:20:18.991 (BMW Connected) 69 6e 63 6f 72 72 65 63 74 2e 3c 2f 70 3e 3c 68 72 2f 3e 3c incorrect.</p><hr/><
2021-03-20 21:20:18.991 (BMW Connected) 68 33 3e 50 61 79 61 72 61 20 4d 69 63 72 6f 20 23 62 61 64 h3>Payara.Micro.#bad
2021-03-20 21:20:18.991 (BMW Connected) 61 73 73 66 69 73 68 3c 2f 68 33 3e 3c 2f 62 6f 64 79 3e 3c assfish</h3></body><
2021-03-20 21:20:18.991 (BMW Connected) 2f 68 74 6d 6c 3e 0d 0a .. .. .. .. .. .. .. .. .. .. .. .. /html>..
2021-03-20 21:20:18.992 (BMW Connected) Processing 'ReadEvent' message
2021-03-20 21:20:18.992 (BMW Connected) Received 5 bytes of data
2021-03-20 21:20:18.992 (BMW Connected) 30 0d 0a 0d 0a .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. 0....
2021-03-20 21:20:18.993 (BMW Connected) Pushing 'onMessageCallback' on to queue
2021-03-20 21:20:18.993 (BMW Connected) Processing 'DisconnectedEvent' message
2021-03-20 21:20:18.993 (BMW Connected) Disconnect event received for 'b2vapi.bmwgroup.com:443'.
---

The callback is Bad request / 'The request sent by client was syntactically incorrect.

Could you please indicate if i did anything wrong?
Hi,
Sorry I saw only now your message... Better is to log an issue on GitHub, this triggers me more often.
Seems indeed a bad request, which is strange of course. Don't know on which request this was the answer (authentication or the request for info)...
First of all, have not all type of BMWs to make the test... Currently I did it with my 518, which is non electric... I know that somebody else use the plugin who was driving with a hybrid (I know because I did some customizations for him).
BMW changed at a moment their API... So that's why you have the option API Type with "Legacy API" and "New". You can try to change if this would work... Otherwise the only possibility is to debug... I do this mostly in python outside domoticz... It is easier...
So if you would have found the problem, I am always interested to have the Domoticz plugin improved.
But of course without your credentials (and access to your car), I cannot help to debug :-).
If you would have any further concrete question, don't hesitate.
Filip
hplar111
Posts: 2
Joined: Tuesday 11 October 2022 16:15
Target OS: -
Domoticz version:
Contact:

Re: Connected Cars

Post by hplar111 »

Hi, i'm trying to get my Volvo in Domoticz.

When i run ./voc mqtt i get this error.

Could not find MQTT config: /home/pi/.config/mosquitto_pub


What should I do?
User avatar
FireWizard
Posts: 1889
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Connected Cars

Post by FireWizard »

Hi @hplar111

Did you follow my description and did you create the config file .voc.conf in your home directory?
see: https://github.com/FireWizard52/Volvo-o ... ticz-Howto.

Regards
hplar111
Posts: 2
Joined: Tuesday 11 October 2022 16:15
Target OS: -
Domoticz version:
Contact:

Re: Connected Cars

Post by hplar111 »

Yes, but made a typo and it is working now. Got on the wrong foot with the moquitto_pub error. But saw in the script that it checkes voor de .voc.conf file first. Thanks!
User avatar
psubiaco
Posts: 222
Joined: Monday 20 August 2018 9:38
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Italy
Contact:

Re: Connected Cars

Post by psubiaco »

I've written a plugin for Domoticz to show and manage Kia and Hyundai vehicles, based on the hyundai-kia-connect-api module.
More info at https://github.com/CreasolTech/domoticz-hyundai-kia
kia-e-niro_domoticz_floorplan.jpg
kia-e-niro_domoticz_floorplan.jpg (136 KiB) Viewed 1892 times
Paolo
--
I use DomBus modules to charge EV car, get a full alarm system, control heat pump, fire alarm detection, lights and much more. Video
Facebook page - Youtube channel
willemd
Posts: 649
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

Re: Connected Cars

Post by willemd »

psubiaco wrote: Wednesday 19 October 2022 9:27 I've written a plugin for Domoticz to show and manage Kia and Hyundai vehicles, based on the hyundai-kia-connect-api module.
More info at https://github.com/CreasolTech/domoticz-hyundai-kia
kia-e-niro_domoticz_floorplan.jpg
Thanks a lot for this plugin. I installed it without problems and am now using it to see which of the devices are useful to me.

If was difficult to find since the forum does not allow to search for words with less than 4 characters (like kia or car).

So this post is also to raise it for attention to anyone else who might be interested. :-)
User avatar
waltervl
Posts: 5851
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Connected Cars

Post by waltervl »

willemd wrote: Saturday 23 September 2023 13:36If was difficult to find since the forum does not allow to search for words with less than 4 characters (like kia or car).
For this I use google, works just as well if you put Domoticz in the search string.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
willemd
Posts: 649
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

Re: Connected Cars

Post by willemd »

Just to make the users of the Hyundai/Kia plugin aware:

A few months ago two power indicators were added to the plugin: the total power consumed and the total power generated. That is how they are named in the Hyundai/Kia cloud, the API and the plugin.

It turns out now these are not actually total cumulative figures for the car, but totals of the last 90 days only. I have updated the device descriptions in the plugin accordingly.

So if you are calculating for example average power consumption per 100 km, then after 90 days that value starts getting lower and lower because the odometer keeps increasing but the power figures remain more or less the same.

The odometer value for the last 90 days is also available in the cloud and API but currently not picked up by the plugin.
Henry
Posts: 29
Joined: Tuesday 06 March 2018 18:56
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Connected Cars

Post by Henry »

I have a problem with the Kia plugin: I've installed everything according to the Readme, and I can add the hardware in Domoticz, but there are no devices created. Log says 'Started' and 'Entering work loop'
I'm using Domoticz 2022-1 and Python 3-9-9
willemd
Posts: 649
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

Re: Connected Cars

Post by willemd »

Henry wrote: Wednesday 07 February 2024 11:46 I have a problem with the Kia plugin: I've installed everything according to the Readme, and I can add the hardware in Domoticz, but there are no devices created. Log says 'Started' and 'Entering work loop'
I'm using Domoticz 2022-1 and Python 3-9-9
No other messages? First thing to check are your credentials for the KIA account in the hardware setup.
HvdW
Posts: 612
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: Connected Cars

Post by HvdW »

Henry wrote: Wednesday 07 February 2024 11:46 I have a problem with the Kia plugin: I've installed everything according to the Readme, and I can add the hardware in Domoticz, but there are no devices created. Log says 'Started' and 'Entering work loop'
I'm using Domoticz 2022-1 and Python 3-9-9
I encountered the same problem using the Volvo app.
Installed it several times, message displayed that devices are created, you can find them etc. , but nothing appeared.
Then, after several retries it suddenly worked like a charm.
Bugs bug me.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest