-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HACS installation tested and aprooved? #25
Comments
Same here. I thought it might be due to the url setting in Mercedes website when setting up the oauth but when I run the scripts from my laptop to authorise the token generation the web page goes blank |
Hi,
it's necessary to create the first token by using python script.
then you get a blank page in the url you will find a code something like
https://localhost/?code=Byw8SGgHgrbSv9an9NQCmHtvxhjS6uYRY4XFT4FM
you have to copy the code and paste in the script. after that you will be
able to use integration.
sorry for this...
Il giorno ven 8 gen 2021 alle ore 15:11 townsmcp <notifications@github.com>
ha scritto:
… Same here. I thought it might be due to the url setting in Mercedes
website when setting up the oauth but when I run the scripts from my laptop
to authorise the token generation the web page goes blank
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#25 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALJM7A76ODLIOWEXTDMO3KTSY4G7LANCNFSM4V2PLRCQ>
.
|
@xraver when I run the python script, I get the message saying to open a browser window and insert the following link (I've removed my client_id):
However when I copy paste this to a browse window the page doesn't load and I get the following address:
And the content of the token file shows:
|
Same here, but I get in the browser a "ERR_CONNECTION_REFUSED" Message |
Hi,
seems that the requested scope is invalid...
try to exit from the mercedes me session, use the link again and provide
credentials.
the first time systems will require to accept the APIs.
then when you will be redirected to the url just copy in the script only
the code.
i've tried again and it works for me....
Il giorno ven 8 gen 2021 alle ore 17:19 Evilfraggle <
notifications@github.com> ha scritto:
… Same here, but I get in the browser a "ERR_CONNECTION_REFUSED" Message
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#25 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALJM7A7G6W24GZYUYSVVK4TSY4WA5ANCNFSM4V2PLRCQ>
.
|
Thanks for the respond. |
@Evilfraggle same here for me too!!! I don't have the insurance so didn't register for that API. Register for it and the registration works for me |
hmmmm not so sure about this. I have tried 0.9, 0.10 (with 'enable_resources_file: False and 'enable_resources_file: True', 'scan_interval: 120' and leaving scan_interval out of configuration.yaml) in HACS all to no avail. When I use the .sh or .py script I get the following:
No data is returned by the script :( same for the entities in HA - status is unknown even after reboots |
When you have no data there are several options:
1) your car does not support the service requested
2) you have to refresh from your car the sensor (e.g. power on car, open
doors, lights, windows, etc) and retry
3) some issue with Mercedes API: in my case I cannot see information from
fuel :(
Il giorno sab 9 gen 2021 alle 00:36 townsmcp <notifications@github.com> ha
scritto:
… hmmmm not so sure about this. I have tried 0.9, 0.10 (with
'enable_resources_file: False and 'enable_resources_file: True',
'scan_interval: 120' and leaving scan_interval out of configuration.yaml)
all to no avail. When I use the .sh or .py script I get the following:
***@***.*** mercedes_me_api-master % ./mercedes_me_api.sh -s
mercedes_me_api.sh - 0.6
Retrieving decklidstatus:
Retrieving doorstatusfrontleft:
Retrieving doorstatusfrontright:
Retrieving doorstatusrearleft:
Retrieving doorstatusrearright:
Retrieving interiorLightsFront:
Retrieving interiorLightsRear:
Retrieving lightswitchposition:
Retrieving readingLampFrontLeft:
Retrieving readingLampFrontRight:
Retrieving rooftopstatus:
Retrieving sunroofstatus:
Retrieving windowstatusfrontleft:
Retrieving windowstatusfrontright:
Retrieving windowstatusrearleft:
Retrieving windowstatusrearright:
No data is returned :(
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#25 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALJM7A6K3JVOVSHWZRPKSRDSY6JINANCNFSM4V2PLRCQ>
.
|
I've cloned the repo on my Ubuntu computer and have been able to create the .mercedesme_token file with success, content looks fine. Where exactly should I place the token file now, in After this, will I need to add the integration in Home Assistant as well? |
The token file needs to be placed in your homeassistant config folder. It's the same folder where you place your Home Assistant's configuration.yaml. Speaking of which, yes, you need to enable the integration by adding its configuration to your configuration.yaml as described in the README. |
figured out the config folder and yes, configuration.yaml is filled as well. No i have errors about the resource files.
|
changing enable_resources_file from true to false didn't make things get better. here my configuration: mercedesmeapi:
client_id: !secret mercedesapi_client_id
client_secret: !secret mercedesapi_client_secret
vehicle_id: abcd1234
enable_resources_file: false
scan_interval: 120 |
continuing this in Integration failed to initialize #28 |
HACS installation working |
Is it only me or generally HACS installation won't integrate mercedes_me_api successfully?
The text was updated successfully, but these errors were encountered: