Closed barndawgie closed 3 years ago
I think I was able to resolve this by deleting my kurmo cache kumo_cache.json
file, connecting from my Kumo Cloud iPhone app, and then restarting Home Assistant.
Yes, you need to delete your kumo_cache.json (or switch away from "prefer cache" mode) whenever your units' IP address changes. If they change frequently, don't use "prefer cache". This behavior is fully expected.
I did not have prefer-cache set. Forcing it to false via the configuration did not resolve the issue.
Main concern I had was that it shouldn't have blocked Home Assistant startup - I couldn't get my HA docker container to load.
What version of HomeAssistant are you running? 0.111 made changes in HA startup to allow the core to start up independent of integrations.
Unfortunately your logs above are missing the lines dealing with the kumo_cache file and so aren't much help. All we know is it can't talk to the indoor units, for which the reason is clear.
I suspect that, without prefer_cache on, if you had simply opened the KumoCloud app (or waited some indeterminate amount of time), it would have updated the KumoCloud service's record of your IP addresses and it would have worked OK even without deleting kumo_cache.
In any case, we should probably update the documentation to state more clearly that it doesn't deal well if the IP addresses change. The logic to deal with this is, in fact, not well tested because my setup uses statically-assigned DHCP. I'll re-open this ticket as a placeholder; I'm unable to debug it myself but if anybody figures out a concrete solution (can point out a flaw in the code or produce a patch), please put it here.
I'm running Home Assistannt 0.111.4.
There is nothing in my logs referencing kumo_cache
- I can try to search for some specific string but nothing stands out looking for kumo or pykumo in the logs. There are a lot of [pykumo.pykumo] Error retrieving profile
WARNINGS but I don't see any other details in them.
Opening the Kumo Cloud App did seem to resolve the issue - does that force the Kumo Clouud service to update it's IP information? If so, that could explain why even setting prefer-cache=false
didn't resolve the issue since the Kumo Cloud service would've still had stale IP data.
does that force the Kumo Clouud service to update it's IP information?
That's my guess, yes. Unfortunately the app's traffic to the KumoCloud server is https (encrypyted) or we could possibly figure out what it's doing and do the same thing before fetching the cache file. There are ways to snoop on encrypted traffic on a phone, but that's more reverse engineering than I'm willing to do, especially since (1) I don't see this problem (static IPs), and (2) there's a workaround (fire up the KumoCloud app).
I think I see a way to fix at least the HA not starting part. I can't test until Boston is out of this heat wave though.
I've pushed a beta which should improve this situation, v0.2.3-beta.
I am closing this issue, since it should be fixed in 0.2.3 (and 0.2.4). Feel free to reopen with updated info if needed.
I updated the IP's for my Kumo units to make them static. Then, I couldn't get my Home Assistant Docker image to start: The logs are just filled with message like the below over and over.
While failure to connect may be expected, I would hope this wouldn't block Home Assistant startup.