grzegorz914 / homebridge-melcloud-control

Homebridge plugin for Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation, publish as dynamic external platform accessory.
MIT License
55 stars 2 forks source link

Sometimes the accesory does not remember the last state #167

Closed CyberMrProper closed 1 week ago

CyberMrProper commented 1 week ago

I always use the AC in Cool mode, so I'm sure the last setting is Cool when I turn it off. But sometimes (not sure how long) it forgets the last status, and when I turn it on, it goes to AUTO. I will try to get more info, or logs on this.

grzegorz914 commented 1 week ago

I dont think so, the accesorry itself dosnt store any mode just read it from device. My be someone else changed it with other ap or with remote controller. You can enable log info and observe when this happened.

CyberMrProper commented 1 week ago

I will check the logs for sure, but this started happening some versions ago. So I'm sure something is not right.

grzegorz914 commented 1 week ago

Ok, I have identified the issue, this can happen if the device is off and in this time the plugin or bridge restarted then the target mode go to AUTO, I will fix this tomorrow.

CyberMrProper commented 1 week ago

Yes, that makes sense. It happened for sure after upgrading the version and restarting.

grzegorz914 commented 1 week ago

fixed

CyberMrProper commented 6 days ago

Hi @grzegorz914 this happened today again, I will try to get the log next time. Not easy to reproduce, sometimes it happens after a day or so.

grzegorz914 commented 6 days ago

Which mode is started and which should ?

CyberMrProper commented 6 days ago

Usually, what happens is that I turn it off at night (COOL mode), and then, the next day I turn it on by clicking on the home tile (not by selecting the mode from inside the details) and it goes to AUTO. But I'm not sure if somehow the mode is changed at night (while in off), or it's taking the wrong mode when I turn it on.

grzegorz914 commented 6 days ago

Please observe and let me know, I don’t see this behavior on my 7 AC devices.

CyberMrProper commented 5 days ago

I was able to capture the log, its weird. At some point while in off, it switches from COOL to AUTO, and also Target temperature changes first from 24 to 22.5, and then to 22. I'm the only one operating the AA, no remote control was used, I wasn't event at home. Very weird.

----LOGS ------

[26/09/2024, 08:47:12] [MELCloud] Air Conditioner, Aire, Power: OFF [26/09/2024, 08:47:12] [MELCloud] Air Conditioner, Aire, Target operation mode: COOL [26/09/2024, 08:47:12] [MELCloud] Air Conditioner, Aire, Current operation mode: INACTIVE [26/09/2024, 08:47:12] [MELCloud] Air Conditioner, Aire, Target temperature: 24°C [26/09/2024, 08:47:12] [MELCloud] Air Conditioner, Aire, Current temperature: 26°C [26/09/2024, 08:47:12] [MELCloud] Air Conditioner, Aire, Outdoor temperature: 18°C [26/09/2024, 08:47:12] [MELCloud] Air Conditioner, Aire, Target fan speed: WEAK [26/09/2024, 08:47:12] [MELCloud] Air Conditioner, Aire, Current fan speed: AUTO [26/09/2024, 08:47:12] [MELCloud] Air Conditioner, Aire, Vane horizontal: AUTO [26/09/2024, 08:47:12] [MELCloud] Air Conditioner, Aire, Vane vertical: AUTO [26/09/2024, 08:47:12] [MELCloud] Air Conditioner, Aire, Temperature display unit: °C [26/09/2024, 08:47:12] [MELCloud] Air Conditioner, Aire, Lock physical controls: UNLOCKED

[26/09/2024, 08:48:15] [MELCloud] Air Conditioner, Aire, Power: OFF [26/09/2024, 08:48:15] [MELCloud] Air Conditioner, Aire, Target operation mode: AUTO [26/09/2024, 08:48:15] [MELCloud] Air Conditioner, Aire, Current operation mode: INACTIVE [26/09/2024, 08:48:15] [MELCloud] Air Conditioner, Aire, Target temperature: 22.5°C [26/09/2024, 08:48:15] [MELCloud] Air Conditioner, Aire, Current temperature: 26°C [26/09/2024, 08:48:15] [MELCloud] Air Conditioner, Aire, Outdoor temperature: 21°C [26/09/2024, 08:48:15] [MELCloud] Air Conditioner, Aire, Target fan speed: WEAK [26/09/2024, 08:48:15] [MELCloud] Air Conditioner, Aire, Current fan speed: AUTO [26/09/2024, 08:48:15] [MELCloud] Air Conditioner, Aire, Vane horizontal: AUTO [26/09/2024, 08:48:15] [MELCloud] Air Conditioner, Aire, Vane vertical: AUTO [26/09/2024, 08:48:15] [MELCloud] Air Conditioner, Aire, Temperature display unit: °C [26/09/2024, 08:48:15] [MELCloud] Air Conditioner, Aire, Lock physical controls: UNLOCKED [26/09/2024, 08:48:15] [MELCloud] Air Conditioner, Aire, Set power: OFF

[26/09/2024, 08:51:12] [MELCloud] Air Conditioner, Aire, Power: OFF [26/09/2024, 08:51:12] [MELCloud] Air Conditioner, Aire, Target operation mode: AUTO [26/09/2024, 08:51:12] [MELCloud] Air Conditioner, Aire, Current operation mode: INACTIVE [26/09/2024, 08:51:12] [MELCloud] Air Conditioner, Aire, Target temperature: 22°C [26/09/2024, 08:51:12] [MELCloud] Air Conditioner, Aire, Current temperature: 26°C [26/09/2024, 08:51:12] [MELCloud] Air Conditioner, Aire, Outdoor temperature: 18°C [26/09/2024, 08:51:12] [MELCloud] Air Conditioner, Aire, Target fan speed: WEAK [26/09/2024, 08:51:12] [MELCloud] Air Conditioner, Aire, Current fan speed: AUTO [26/09/2024, 08:51:12] [MELCloud] Air Conditioner, Aire, Vane horizontal: AUTO [26/09/2024, 08:51:12] [MELCloud] Air Conditioner, Aire, Vane vertical: AUTO [26/09/2024, 08:51:12] [MELCloud] Air Conditioner, Aire, Temperature display unit: °C [26/09/2024, 08:51:12] [MELCloud] Air Conditioner, Aire, Lock physical controls: UNLOCKED

[26/09/2024, 08:55:12] [MELCloud] Air Conditioner, Aire, Power: OFF [26/09/2024, 08:55:12] [MELCloud] Air Conditioner, Aire, Target operation mode: AUTO [26/09/2024, 08:55:12] [MELCloud] Air Conditioner, Aire, Current operation mode: INACTIVE [26/09/2024, 08:55:12] [MELCloud] Air Conditioner, Aire, Target temperature: 22°C [26/09/2024, 08:55:12] [MELCloud] Air Conditioner, Aire, Current temperature: 26°C [26/09/2024, 08:55:12] [MELCloud] Air Conditioner, Aire, Outdoor temperature: 18°C [26/09/2024, 08:55:12] [MELCloud] Air Conditioner, Aire, Target fan speed: WEAK [26/09/2024, 08:55:12] [MELCloud] Air Conditioner, Aire, Current fan speed: AUTO [26/09/2024, 08:55:12] [MELCloud] Air Conditioner, Aire, Vane horizontal: AUTO [26/09/2024, 08:55:12] [MELCloud] Air Conditioner, Aire, Vane vertical: AUTO [26/09/2024, 08:55:12] [MELCloud] Air Conditioner, Aire, Temperature display unit: °C [26/09/2024, 08:55:12] [MELCloud] Air Conditioner, Aire, Lock physical controls: UNLOCKED

grzegorz914 commented 5 days ago

OK, I see what is going on, but change itself temp from 22.5 to 22 can be possible only if you settings of TemperatureIncrement is set to 1. HomeKit use 0.5 and looks like melcloud round it. Check device settings in melcloud service please.

grzegorz914 commented 5 days ago

Try latest beta 3.3.21 and let me know

grzegorz914 commented 5 days ago

The melcloud app itself is strange behavior, try to switch from AUTO to COOL, AUTO to HEAT during device is OFF, the set temp in AUTO changed to COOL set temp if change from COOL but if change from HEAT then change to HEAT. This is not correct behavior but must be bug in melcloud app or api itself.

CyberMrProper commented 5 days ago

I quickly tried latest beta but is not refreshing hk ok. When I turn it on, it not goes to cooling, just cool. If I kill home app and open it again, it says is off, but the ac comes online.

grzegorz914 commented 5 days ago

Try again latest beta

CyberMrProper commented 5 days ago

I will try it later today (just left home). Thanks!

CyberMrProper commented 4 days ago

I think is good now, I will let u know if I see something strange. Thanks!!!