midea-ac-py icon indicating copy to clipboard operation
midea-ac-py copied to clipboard

Warning message from HA suggesting alternative call

Open ryanandres opened this issue 2 years ago • 10 comments

**Describe the bug ** Warning message from HA suggesting alternative call

**Screenshots / Logs / Pcap File ** Logger: homeassistant.helpers.entity Source: helpers/entity.py:565 First occurred: 10:24:17 AM (1 occurrences) Last logged: 10:24:17 AM

Entity climate.garage_ac (<class 'custom_components.midea_ac.climate.MideaClimateACDevice'>) is using self.async_update_ha_state(), without enabling force_update. Instead it should use self.async_write_ha_state(), please report it to the custom integration author.

Versions (版本信息)

  • Home Assistant version: 2023.6.3
  • Midea msmart version: 0.2.3

ryanandres avatar Jul 15 '23 17:07 ryanandres

This issue is resolved in my updated fork mill1000/midea-ac-py

mill1000 avatar Jul 15 '23 18:07 mill1000

Excellent! I just switched over. Thank you!

ryanandres avatar Jul 15 '23 18:07 ryanandres

Make sure you update msmart as well to get all the features.

e.g. In your HA system/container/env

pip install git+https://github.com/mill1000/midea-msmart.git

mill1000 avatar Jul 15 '23 18:07 mill1000

Make sure you update msmart as well to get all the features.

e.g. In your HA system/container/env

pip install git+https://github.com/mill1000/midea-msmart.git@future

I did this and now my cool mode is not an option in the drop down

SmartSelect_20230715_120542_Home Assistant.jpg

ryanandres avatar Jul 15 '23 19:07 ryanandres

Ah, that can happen if (for some reason) the device doesn't report the correct capabilities.

You can work around this by manually adding the cool mode in the integration configuration like so image

mill1000 avatar Jul 15 '23 19:07 mill1000

That worked! And no warnings or errors in my logs.

Off topic, but have you fixed the issue with devices being unresponsive due to having multiple client instances?

In my case I'm using Carrier's app and HA... https://github.com/mac-zhou/midea-ac-py/issues/95#issuecomment-1631598926

ryanandres avatar Jul 15 '23 19:07 ryanandres

Unfortunately, most of the underlying network code is unchanged so this will probably still be an issue

What are you using the carrier app for that this extension can't do?

mill1000 avatar Jul 15 '23 19:07 mill1000

I'm using it to configure schedules and I'm not aware of this extension supporting it.

ryanandres avatar Jul 15 '23 19:07 ryanandres

I know that sounds idiotic considering I can use HA to automate my own schedules. Now I'm trying to recall exactly why I relied on the carrier app... I think a while ago the extension or my system was not reliable so I depended on carrier's cloud service. I need to reconsider this

ryanandres avatar Jul 15 '23 20:07 ryanandres

| I'm using it to configure schedules and I'm not aware of this extension supporting it. ... | I know that sounds idiotic considering I can use HA to automate my own schedules. Now I'm trying to recall exactly why I relied on the carrier app... I think a while ago the extension or my system was not reliable so I depended on carrier's cloud service. I need to reconsider this

Hahaha that's alright. Might be worth ditching the Carrier app for a little bit just to see if it makes the integration more reliable. If its still flaky then the integration won't be of much use will it.

mill1000 avatar Jul 16 '23 03:07 mill1000