dlarrick / pykumo

Python library to interact with Mitsubishi KumoCloud devices via their local API
MIT License
33 stars 12 forks source link

Number of fan speeds = 4 #41

Closed thomascantrellsea closed 1 year ago

thomascantrellsea commented 1 year ago

I'm getting an error where my unit reports 4 fan speeds, and I hit this error/assertion:

        if speeds not in (5, 3):
            _LOGGER.info(
                "Unit reports a different number of fan speeds than "
                "supported, %d != [5|3]. Please report which ones work!",
                self._profile['numberOfFanSpeeds'])

I have a unit in one of my rooms which is a MSZ-GL24NA which only has four speeds: Low, Medium, High, Very High (according to the Kumo app labels).

Seems like maybe this logic could be updated to support four fan speeds?

Thanks!

Thomas

image

thomascantrellsea commented 1 year ago

As an aside for my units with 3, the current app labels are: Low, Medium, High (and Auto)

For my units with 5, the current app labels are: Quiet, Low, Medium, High, Very High (and Auto)

dlarrick commented 1 year ago

It should be possible to support 4 fan speeds, yes, but I'll need some more information.

Pykumo is using the fan speed names that the indoor unit itself reports via its API, with no translation. Notably, the indoor unit expects these same names back when setting the fan speed. That's why you see the log message -- the software doesn't know what the fan speeds are called (by the unit itself) when there are 4 of them. I think the KumoCloud app is using a translation.

Can you do the following: For each of your fan speeds: set the indoor unit to that speed (via KumoCloud app or the remote control) and record what the get_fan_speed method of the PyKumo object reports. (Or if you're using HomeAssistant, what's reported as the current fan speed -- the 'fan_mode' attribute).

thomascantrellsea commented 1 year ago

Sweet!

Using home-assistant, here are the mappings I see for my

level : kumo name : home-assist name level 1 : Low : quiet level 2: Medium : Low (interesting capitalization, wonder if lower-case would work fine too) level 3: High : powerful level 4: Very High : superPowerful

dlarrick commented 1 year ago

Haven't forgotten about this, just no spare time recently.