kovapatrik / homebridge-midea-platform

Homebridge plugin for Midea devices
https://www.npmjs.com/package/homebridge-midea-platform
Apache License 2.0
26 stars 2 forks source link

Air Conditioner Temperature Control Not Working #85

Closed jlokos closed 1 month ago

jlokos commented 3 months ago

Describe The Bug:

Air Conditioner Temperature Control Not Working via Home App.

Wrong temperatures being displayed in Home App. It is possible to occasionally tap correct spot but as you can see in screenshots the base temperatures are off. Furthermore cannot set temperature via Siri if you state 'Set AC to 70' the logs just show the

[11/06/2024, 00:21:42] [midea-platform] [Air Conditioner] Set device attribute POWER to: true

Plugin Config:

{
    "devices": [
        {
            "type": "Air Conditioner",
            "name": "Air Conditioner",
            "id": ,
            "advanced_options": {
                "token": "",
                "key": ""
            },
            "AC_options": {
                "swingMode": "Vertical",
                "heatingCapable": false,
                "outDoorTemp": true,
                "ecoSwitch": true,
                "dryModeSwitch": true,
                "fanOnlyModeSwitch": true
            }
        }
    ],
    "platform": "midea-platform"
}

Screenshots:

IMG_797B1A1391DB-1 IMG_797B1A1391DB-2 IMG_797B1A1391DB-3 IMG_797B1A1391DB-4

Environment:

kovapatrik commented 3 months ago

I'm not sure I understand the screenshots. Is the temperature just jumps around? Could you please explain this a bit?

jlokos commented 3 months ago

@kovapatrik It seems like the base (min and max) temperatures are off. Since i'm seeing numbers like 186. It should be set in Fahrenheit with a minimum of 60f and max of 86f. I cannot set temperature via Siri as well so if I say 'Set AC to 70' the Home Bridge logs just show the the device getting a call to turn on not to set temperature. Let me know if you need anything additional.

kovapatrik commented 3 months ago

could you please turn on debug mode in your Homebridge instance and send me the logs when you change the temperature?

den1k commented 3 months ago

this happens for me as well when the temperature in apple home is fahrenheit. Celsius works fine

den1k commented 3 months ago

this fixes it for me: CleanShot 2024-07-02 at 14 32 50@2x

kovapatrik commented 3 months ago

I might need to convert Celsius to Fahrenheit (and vice versa) when the Fahrenheit setting is toggled. I will let you know when I publish a new beta version which includes the conversion.

den1k commented 3 months ago

thank you!

kovapatrik commented 2 months ago

I've done some research and it turned out that HomeKit uses Celsius everywhere, so Fahrenheit is just a visual thing in the Home app. I also switched my iPhone's temperature unit to Fahrenheit and it worked without any issues. I've used the latest published beta though, could you please try this with that version?

jlokos commented 2 months ago

My issues seem to be resolved with the latest updates! Thank you very much! One note - I do not see the Dry Mode switch even though I enabled that option to be created with the accessory. All else works perfect

kovapatrik commented 2 months ago

Glad to hear it's resolved now!

Hm, weird. Could you please try removing it from the cache of Homebridge? Maybe it will solve it.

kovapatrik commented 1 month ago

Any news on this one?

den1k commented 1 month ago

yes works! thanks!

kovapatrik commented 1 month ago

Great, I will close this then, feel free to open it again or create a new one if it happens again!