-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Sensor available/unavailable cycle on v1.70 #530
Comments
It looks that if you refresh every 15 minutens, this issue is solved. I created an automation like this one.
|
Thanks. I'll try that. I used to have a similar automation for my MyDolphin pool robot cleaner that would reload the integration whenever the AWS broker connection became unavailable. |
And at the setup of the fordpass, the standard api refresh polling rate is 900s |
It solved the issue for a week but it is back.... |
Same issue here. Here's the log entry: First occurred: October 10, 2024 at 12:10:54 PM (58 occurrences) Error fetching fordpass data: Error communicating with FordPass for redacted vin |
I was able to get around this bug. I reconfigured the FordPass integration to refresh every 180000000 seconds... (50,000) hours. I already had this script I used on occasion if I wanted a manual update:
I am guessing it would work with a shorter than 1 minute delay, but I have not tested it. This works reliably for me at 60 seconds. So I created an automation that calls the script every 20 minutes: ( I kept it 20 to not overload the api, to avoid bans, and I personally don't need the information updated any more frequently than that. )
I have not had a single failed update since doing this. I'm not sure why the built in polling doesn't work reliably, but this does... I didn't look into the source code. I hope this helps others with the problem, or helps pinpoint the issue. |
Tried. Thanks for the tip It is not working for me. 30 min block vs 15 min block. |
Did you reconfigure the integration and set the refresh time to a stupid hugh number? |
Forgotten.... Set it now to 180000000. Thanks and wait for the data. |
@Milkysunshine Thanks for sharing this. I was still getting only blocks of updates (seemed like every other day), but I'll try this script and automation. I only disabled my other refresh automation for now in case i have to revert to it, but hoping your combination works. |
I noticed that I was only getting updates when my car was "active"--like if the car was connected to the EVSE and actively charging, or if I was driving or had just parked. Over night, there would be no updates. My assumption was that the car perhaps went into "dormant" mode when it had nothing new to report that was relevant to the entities created by the integration, and maybe that the integration similarly did not actively refresh the status itself if it discovered nothing new from the API, unless I were to do something like call the refresh service manually or lock or unlock the doors with the integration. That seemed reasonable to me, though I kind of get the idea that that isn't necessarily the expected behavior. |
No blocks with unavailable anymore but also no new information. Still the data of Yesterday. Searching for the issues :) :) |
It definitely isn't a cure... more of a band-aid to prevent the stretches of unavailable data. I say that because the home assistant log still shows errors.
The 'Remote end closed connection without response' persisted occasionally even when I set the "refresh" rate to 30 minutes. I just changed it to 45 minutes in order to see if it is some sort or rate limit being imposed by the server. |
I don't think anyone thinks that needing to add an automation to refresh the integration is a cure, but it makes the integration work better for now while the developer has a chance to figure it our in the long run. A similar situation happened with my pool robot custom integration. I had to add an automation that would reload the integration whenever it was disconnected. Luckily, the developers of the integration added a sensor to monitor the connection to AWS, so it was easy to implement the automation while they worked on a solution. They eventually figured it out, but it took them a while. |
Your automation does work well, except, at least with my car (Mustang Mach-E), it seems to lead to a slow, but steady, drain of the 12V battery. Shutting off the automation overnight also seems to have stopped the drain. I'm either going to have to have it run less often than every 20 minutes or run it manually or find another way for it to run often enough to be useful without draining the battery. |
You could add a conditional check to the automation that tells it not to update between x and y times. |
I have an automation that lets me know when my wife's expedition goes below a certain threshold of miles left in the tank. This automation recently started firing every hour. I checked the sensor history for the vehicle and it appears that there is now a cycle that the sensor is available for 30 minutes, then unavailable for 30 minutes.
Here is the history of the door sensor for example.
The text was updated successfully, but these errors were encountered: