Re: Connected Cars
Posted: Monday 20 July 2020 20:30
As a user of a connected (petrol) mercedes, I am looking at reading the data from the car into my Domoticz setup.MrHobbes74 wrote:Hi! In the latest stable of Domoticz I have created a (c++) hardware module as native support for EV's (see https://www.domoticz.com/wiki/EVehicles). The module communicates with a car through a standard API interface, and this API can be implemented for various cars. Currently only the Tesla API is implemented, but we could also add Volvo here. It does not provide all sensors you like to have, as i see from the dashboard above, but everything can be extended of course. Is this an idea?
Yeah, i saw it. Thnx.FireWizard wrote: ↑Monday 20 July 2020 21:15 On page 42 of the Howto, you can find that I used a single picture of my V40 for all the sensors.
I'm all in for the Mercedes Classkiddigital wrote: ↑Tuesday 21 July 2020 18:00As a user of a connected (petrol) mercedes, I am looking at reading the data from the car into my Domoticz setup.MrHobbes74 wrote:Hi! In the latest stable of Domoticz I have created a (c++) hardware module as native support for EV's (see https://www.domoticz.com/wiki/EVehicles). The module communicates with a car through a standard API interface, and this API can be implemented for various cars. Currently only the Tesla API is implemented, but we could also add Volvo here. It does not provide all sensors you like to have, as i see from the dashboard above, but everything can be extended of course. Is this an idea?
As there is no generic ‘connected car’ in Domoticz other than your EVehicles which support door/lid locks, odo meter, range left, etc. I am considering implementing a Mercedes Class.
But as your initial goal was EV’s, not sure if you want to go that direction? Maybe another abstraction is needed so both EV’s and petrol or others can be implemented?
Suggestions?
See Pull Request #4281 for a beta version. Testing is appreciatedJimmyH1969 wrote: ↑Thursday 23 July 2020 22:39I'm all in for the Mercedes Classkiddigital wrote: ↑Tuesday 21 July 2020 18:00As a user of a connected (petrol) mercedes, I am looking at reading the data from the car into my Domoticz setup.MrHobbes74 wrote:Hi! In the latest stable of Domoticz I have created a (c++) hardware module as native support for EV's (see https://www.domoticz.com/wiki/EVehicles). The module communicates with a car through a standard API interface, and this API can be implemented for various cars. Currently only the Tesla API is implemented, but we could also add Volvo here. It does not provide all sensors you like to have, as i see from the dashboard above, but everything can be extended of course. Is this an idea?
As there is no generic ‘connected car’ in Domoticz other than your EVehicles which support door/lid locks, odo meter, range left, etc. I am considering implementing a Mercedes Class.
But as your initial goal was EV’s, not sure if you want to go that direction? Maybe another abstraction is needed so both EV’s and petrol or others can be implemented?
Suggestions?
Hi, Thanks!, but I'm using Domoticz on Windows. How can i test this Pull Request?kiddigital wrote: ↑Thursday 30 July 2020 18:57See Pull Request #4281 for a beta version. Testing is appreciatedJimmyH1969 wrote: ↑Thursday 23 July 2020 22:39I'm all in for the Mercedes Classkiddigital wrote: ↑Tuesday 21 July 2020 18:00
As a user of a connected (petrol) mercedes, I am looking at reading the data from the car into my Domoticz setup.
As there is no generic ‘connected car’ in Domoticz other than your EVehicles which support door/lid locks, odo meter, range left, etc. I am considering implementing a Mercedes Class.
But as your initial goal was EV’s, not sure if you want to go that direction? Maybe another abstraction is needed so both EV’s and petrol or others can be implemented?
Suggestions?
As this is still a PR and not yet part of the Beta, you need to build it yourself from the source repo of the Pull Request. Hopefully that is an optionJimmyH1969 wrote: ↑Tuesday 18 August 2020 9:29Hi, Thanks!, but I'm using Domoticz on Windows. How can i test this Pull Request?kiddigital wrote: ↑Thursday 30 July 2020 18:57See Pull Request #4281 for a beta version. Testing is appreciated
I really have no idea how to build the Windows executable from that I wish....kiddigital wrote: ↑Tuesday 18 August 2020 18:12As this is still a PR and not yet part of the Beta, you need to build it yourself from the source repo of the Pull Request. Hopefully that is an optionJimmyH1969 wrote: ↑Tuesday 18 August 2020 9:29Hi, Thanks!, but I'm using Domoticz on Windows. How can i test this Pull Request?kiddigital wrote: ↑Thursday 30 July 2020 18:57
See Pull Request #4281 for a beta version. Testing is appreciated
@JimmyH1969, to prevent hijacking this topic; I created a new topic to further talk about the (upcoming) Mercedes Me integration.JimmyH1969 wrote: ↑Friday 21 August 2020 17:21I really have no idea how to build the Windows executable from that I wish....kiddigital wrote: ↑Tuesday 18 August 2020 18:12As this is still a PR and not yet part of the Beta, you need to build it yourself from the source repo of the Pull Request. Hopefully that is an optionJimmyH1969 wrote: ↑Tuesday 18 August 2020 9:29
Hi, Thanks!, but I'm using Domoticz on Windows. How can i test this Pull Request?
Think i have to wait until it is available in a beta version i guess...
I also don't understand this part, can you explain a bit more maybe?
To register you own Mercedes, you have to register with your existing Mercedes Me account at 'https://developer.mercedes-benz.com/' and request access for all 5 BYOCAR API's. Each of those API's has its own scope, so within the request for an access- and refresh token, all 5 scopes have to be supplied (space separated).
Thanks, i do hope to get this working on my Windows Domoticz some day
I have managed to get bimmer connected (python) working on my Raspberry Pi. I can get an overview of all values. Now I am stuck how to parse these values into Domoticz. Could you give me a direction? If I have time I can share the output of bimmer connected.sincze wrote: ↑Wednesday 15 April 2020 9:19It could be based upon bimmer_connected:
https://github.com/bimmerconnected/bimmer_connected
Now the trick would be to write a plugin that executes and retrieves the json for parsing.Code: Select all
# get the latest version of the library pip3 install --upgrade bimmer_connected # run the fingerprint function bimmerconnected fingerprint <username> <password> <region>
Other Solution: My solution works with Pass2PHP. I could try to modify the module so you can work with that? Pass2PHP means PHP is required on your system.
Domoticz supports python plugins in which you can read and write to (dummy) sensors.WvdM78 wrote:I have managed to get bimmer connected (python) working on my Raspberry Pi. I can get an overview of all values. Now I am stuck how to parse these values into Domoticz. Could you give me a direction? If I have time I can share the output of bimmer connected.sincze wrote: ↑Wednesday 15 April 2020 9:19It could be based upon bimmer_connected:
https://github.com/bimmerconnected/bimmer_connected
...
Code: Select all
$door_lock_state = isset($data['attributesMap']['door_lock_state']) ? $data['attributesMap']['door_lock_state'] : '';
$door_driver_front = isset($data['attributesMap']['door_passenger_front']) ? $data['attributesMap']['door_driver_front'] : '';
$door_passenger_front = isset($data['attributesMap']['door_passenger_front']) ? $data['attributesMap']['door_passenger_front'] : '';
$door_driver_rear = isset($data['attributesMap']['door_driver_rear']) ? $data['attributesMap']['door_driver_rear'] : '';
$door_passenger_rear = isset($data['attributesMap']['door_passenger_rear']) ? $data['attributesMap']['door_passenger_rear'] : '';
$window_driver_front = isset($data['attributesMap']['window_driver_front']) ? $data['attributesMap']['window_driver_front'] : '';
$window_passenger_front = isset($data['attributesMap']['window_passenger_front']) ? $data['attributesMap']['window_passenger_front'] : '';
$window_driver_rear = isset($data['attributesMap']['window_driver_rear']) ? $data['attributesMap']['window_driver_rear'] : '';
$window_passenger_rear = isset($data['attributesMap']['window_passenger_rear'])? $data['attributesMap']['window_passenger_rear'] : '';
$hood_state = isset($data['attributesMap']['hood_state']) ? $data['attributesMap']['hood_state'] : '';
$trunk_state = isset($data['attributesMap']['trunk_state']) ? $data['attributesMap']['trunk_state'] : '';
$sunroof_state = isset($data['attributesMap']['sunroof_state']) ? $data['attributesMap']['sunroof_state'] : '';
$gps_lat = isset($data['attributesMap']['gps_lat']) ? $data['attributesMap']['gps_lat'] : ''; // GPS Coordinates
$gps_lon = isset($data['attributesMap']['gps_lng']) ? $data['attributesMap']['gps_lng'] : '';
Hello,FireWizard wrote: ↑Wednesday 27 March 2019 20:47 ...
The only command that does not work yet, is remote honk and blink. I don't use this functionality hardly, so it has very low priority for me.
I use only lock/unlock and heater on/off.
....
Hi Filip,Filip wrote: ↑Sunday 18 October 2020 20:32 I created an easy plugin to support the BMW Connected Drive. Currently only the mileage, but can easily be extended.
See https://github.com/FilipDem/Domoticz-BMW-plugin.