syssi / xiaomi_airconditioningcompanion

Xiaomi Mi and Aqara Air Conditioning Companion integration for Home Assistant
Apache License 2.0
394 stars 93 forks source link

lumi.acpartner.v2 + LG 3482: climate.turn_on and turn_off doesn't work for me #126

Open xstaford opened 3 years ago

xstaford commented 3 years ago

Hi, thanks for your work firstly!

The addon is working fine on thermostat bar but climate.turn-on/off for example just change status on thermostat bar (not send commands to conditioner) How can I work with addon in automations???)))

Could you please send some examples or instructions to do it correctly))) Lumi.acpartner.v2

Thanks!)))

xstaford commented 3 years ago

Or does it work only with IR receiving-send services?

syssi commented 3 years ago

It's possible to turn the device on and off via Mi Home app?

syssi commented 3 years ago

Has the lumi.acpartner.v2 an internal relay to cut the power if you turn off the device via the Mi Home app or does the device send a command to the AC? Some hardware models has an internal relay and some not.

syssi commented 3 years ago

Please provide the model and manufacturer of your AC.

xstaford commented 3 years ago

Ac is lg 3482, its working fine via Mihome as like as via thermostat bar +acpartner on home assistant. Most of the commands are working exclude drying (noneeded) I have trouble with automations only, its affect only on thermostat bar without sending command to ac. For example climate.turn-on is enabling thermostat bar but not AC. If I control ac via mihome its not affect on thermostat bar the same as if control via thermostat bar on home assistant.

syssi commented 3 years ago

If you call the climate.turn_on service this code path is executed:

https://github.com/syssi/xiaomi_airconditioningcompanion/blob/develop/custom_components/xiaomi_miio_airconditioningcompanion/climate.py#L322-L329

This is the implementation of the underlying library:

https://github.com/rytilahti/python-miio/blob/master/miio/airconditioningcompanion.py#L268-L270

In short: The command set_power ["on"] is sent to the lumi.acpartner.v2 and the state of the climate entity is changed to on at L329.

If you try to turn on the AC via the MiHome app. What do you do in detail? Could you provide a screenshot? Is there a power button at the UI? Perfect would be a network capture of the traffic between Mi Home app and Acpartner to replicate the behaviour.