-
Notifications
You must be signed in to change notification settings - Fork 99
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
[Errno -5] Name has no usable address #1015
Comments
Hi, Actually this randomly raised error prevent me to use the API in an automation, as the automation simply stops when that exception is being thrown. I tried to use the "continue_on_error" option, however, it doesn't work because the error is unhandled by the integration (cf. home-assistant/core#123296 for further details). Would it be possible to fix the integration so that the error gets handled, which would allow me to use it in the automation (I don't really care if the command fails, all I need is the script to continue to run, which would be the case if the error is being handled). Thanks a lot ! |
This error represents a network failure. Meaning we can't connect to tesla or the internet. There is no way for us to continue at this point. |
Thanks for your answer. Yes, I understand that. However, while I'm happy with the fact the command can't be issued, my problem is that the error is not handled in the library (I guess this means the exception is not caught in the code, but I'm not sure about that, having never worked on HA code myself). This leads to the fact that the automation basically exits, despite the "continue_on_error" options being used. Would it be possible to fix that somehow, and have the error being "handled" (whatever that means) ? |
Find an example of what HA expects and I imagine someone may pick this up as an enhancement. |
To be honest, I'm not sure what "handling the error" means in the HA context. Possibly just adding a try/catch block around the function call, I've asked on the HA Core forum (same issue as the one mentioned above), hopefully I'll get some further information about that. |
OK I got some details (cf. home-assistant/core#123296). The extension should raise a "defined exception": and blog here : https://developers.home-assistant.io/blog/2023/11/30/service-exceptions-and-translations/?_highlight=exception Do you think that's something doable (again, I'm afraid I have zero experience with HA development) ? |
Hi, any update on this one ? I'm happy to help if I can ! |
Is there an existing issue for this?
I have read about the Fleet API and understand I may need to use it
Version of the Tesla component
3.24
Version of the Tesla car software
2024.20.6.2
Model
Model Y
Current Behavior
I'm using an automation to adjust the charging amps depending on my solar production excess.
I'm still using the legacy API (not the fleet API).
The automation run in a loop but randomly stops after some time (can be 10 minutes or 5 hours) because of the following error when trying to issue a command:
[Errno -5] Name has no usable address
Expected Behavior
The command should be issue with no error.
Debug logs
Anything else?
No response
The text was updated successfully, but these errors were encountered: