dlarrick / hass-kumo

Home Assistant module interfacing with Mitsubishi mini-split units
MIT License
97 stars 21 forks source link

Occasional 'Unavailable' after upgrading to v0.2.3-beta2 #45

Closed jjhuff closed 3 years ago

jjhuff commented 3 years ago

I was running v0.2.2 and it was rock solid (thanks!). I upgraded to v0.2.3-beta2 so I could pickup the set_temperature fix. Now, units randomly go unavailable. Happens to all of my units and it appears random.

Log msg: Logger: pykumo.pykumo Source: /usr/local/lib/python3.8/site-packages/pykumo/pykumo.py:109 First occurred: December 17, 2020, 12:01:58 PM (579 occurrences) Last logged: 9:22:59 AM

Error retrieving status

dlarrick commented 3 years ago

Sadly, this issue likely indicates your HA indeed can't talk to the Kumo unit. I do see this in my own setup on occasion but not frequently. Next time you see it, try to ping the relevant indoor unit from the system where you run HomeAssistant. I'm guessing you'll see timeouts.

It's likely that with the old version, it was spamming your logs with connection failures but not actually reflecting the issue in the UI. I've been considering adding code to "ride out" a handful of consecutive failures, and to queue any commands that happen to come in while in this state. So I'll let this issue stand as a tracker for that possible development.

However, one thing you might want to do is check the WiFi signal strength at your indoor units (and at your Home Assistant host if it's on WiFi, which is probably a bad idea).

jjhuff commented 3 years ago

Ahh! Yes, I am seeing them occasionally drop of the network. Signal strength seems ok, but I might be getting interference (or they're shifting between APs. I did notice that the RTT is all over the map. 3ms to 200ms to all of the adapters, but the rest of the network seems fine and stable. Lovely :(

dlarrick commented 3 years ago

While it's admirable that Mitsubishi manages an embedded controller complete with WiFi for something around 1.5 watts (by my estimate), there are drawbacks. I think there are bugs in their TCP/IP implementation, and their WiFi radio is not very strong. There are things you can try:

dlarrick commented 3 years ago

Well, that was pretty easy to get done. beta-0.2.4 implements both the things discussed here:

You can create sensors from attribute values for easier monitoring using template sensors; a Google search will show you how but it's very easy to do.

jjhuff commented 3 years ago

Hey! Just to close the loop on this. Wifi improvements have made it rock solid now. Thanks!!