Open ehran opened 7 months ago
Unfortunately, as noted in https://github.com/BigThunderSR/homeassistant-addons-onstar2mqtt?tab=readme-ov-file#helpful-usage-notes, there's not much we can do about that.
I'm having a similar issue and the addon fail to start, the reason in the logs is:
error: Main function error: {"error":{"message":"Request Failed with status 503 - Service Unavailable"
... or"message":"No response"
When doing the POST /api/v1/oauth/token
. Will it be for the same reason that causes this 504 or maybe it will be something else?
Thanks!
I'm having a similar issue and the addon fail to start, the reason in the logs is:
error: Main function error: {"error":{"message":"Request Failed with status 503 - Service Unavailable"
... or"message":"No response"
When doing the
POST /api/v1/oauth/token
. Will it be for the same reason that causes this 504 or maybe it will be something else?Thanks!
Have you ever been able to use this add-on before? If not, are you based in the US or Canada?
I don't know if this is related, but I got a weird error response to trying to start the car
{"data":{"commandResponse":{"body":{"error":{"code":"ONS-220","description":"Failed to execute vehicle request.","subCode":null,"subCodeDescription":null}}
After trying the command again it worked just fine. Why don't we retry the command if we got an error back from the API server?
I don't know if this is related, but I got a weird error response to trying to start the car
{"data":{"commandResponse":{"body":{"error":{"code":"ONS-220","description":"Failed to execute vehicle request.","subCode":null,"subCodeDescription":null}}
After trying the command again it worked just fine. Why don't we retry the command if we got an error back from the API server?
That might be something unique to your Lyric because I have never seen that one before.
In any case, they have so many error codes that it's not a good idea to pound the API automatically whenever an error is returned because that's a surefire way to expedite getting the API blocked forever for all of us...
The problem is that we have no idea if the command succeeded unless we go in the addon logs. I suppose we can create an automation and subscribe to errors with mqtt. Has anyone done this already?
The problem is that we have no idea if the command succeeded unless we go in the addon logs. I suppose we can create an automation and subscribe to errors with mqtt. Has anyone done this already?
That's exactly why I added the command response status into MQTT topics for each command.
I personally use my Node-RED project for issuing commands because it's a lot more reliable for the purpose of running commands.
@sam2kb, I added auto discovery to the command status and related timestamp (triggered whenever a command is run, so won't show anything until you run a command) in V1.15.0, so it should be pretty straightforward to get command status from HA through the MQTT devices item in Settings -> Devices in HA.
This is awesome. Why isn't it a part of existing mqtt device though? Unless you are planning on adding all supported commands to the list
This is awesome. Why isn't it a part of existing mqtt device though? Unless you are planning on adding all supported commands to the list
Pretty much that, but also the following. I tried that first, but I didn't like how it made everything look unclean with non-numeric sensors mixed in with all the numeric sensors. You can combine them as needed in any Lovelace dashboard, so it doesn't affect overall usability in the end.
You can also shorten the status messages to completed
and failed
or similar
You can also shorten the status messages to
completed
andfailed
or similar
I could, but I've learned that TMI is better than folks having to dig through things to figure out what any short name refers to among other things. 🙂
@sam2kb, check out the v1.17.0 release where I added an option to allow you to group everything under one MQTT device if that's what you want to do.
You are the best! This add-on and a Home Assistant app in the car OS is what I use all the time. The GMC app is garbage, I hope they won't restrict their API.
You are the best! This add-on and a Home Assistant app in the car OS is what I use all the time. The GMC app is garbage, I hope they won't restrict their API.
Unfortunately, I think it's only a matter of time before they decide to completely block us, so I guess let's enjoy it while we can.
@BigThunderSR sorry in delay for the response!
Have you ever been able to use this add-on before? If not, are you based in the US or Canada?
No and i'm not from US/Canada.. i'm from Argentina (south america).. this api is "geo fenced" in some way?
Note: I have a Cruze and use the android app "myChevrolet" so I assumed that this api works for me. And I tried to emulate the curl to get the oauth token from the logs buy have no luck (or time/effort) infering the payload because it seems to log the payload in an array of bytes or something like that (i'm not very proeficient with node and its types :P)
Thanks!
@BigThunderSR sorry in delay for the response!
Have you ever been able to use this add-on before? If not, are you based in the US or Canada?
No and i'm not from US/Canada.. i'm from Argentina (south america).. this api is "geo fenced" in some way?
Note: I have a Cruze and use the android app "myChevrolet" so I assumed that this api works for me. And I tried to emulate the curl to get the oauth token from the logs buy have no luck (or time/effort) infering the payload because it seems to log the payload in an array of bytes or something like that (i'm not very proeficient with node and its types :P)
Thanks!
@axcoro, as far as we know, OnStarJS only works with US and Canadian accounts. You would need to open a request there to see if accounts in other countries can be supported, but I don't think it has been possible so far.
Following the last issue solved lately, I am now having this error back :
error: Error Polling Data: {"error":{"error":{"message":"Request Failed with status 504 - Gateway Timeout","request":{"method":"POST"},"response":{"
Best