syssi / xiaomi_airconditioningcompanion

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

Does not work with Google Assistant for AC Off function (If the AC is already switched ON by remote) #88

Open terenceng81 opened 4 years ago

terenceng81 commented 4 years ago

Hi Developers

I am using the old version (no longer available in https://github.com/syssi/xiaomi_airconditioningcompanion), able to see the circle panel in HA also able to see it in Google home app, however Google assistant only recognized Cool Mode (no auto mode) and unable to turn the Aircon off.

I then replaced the latest 3 files (updated 8 days ago version) in my xiaomi_miio_airconditioningcompanion folder (i am using VM not Pie), the process will stuck at UEDEV and the HA program wont be able to run.

I don't mind to donate for this project if anyone could fix this.

Thank you so much

My hassio is running version 0.100.2 and sorry for my poor English.

terenceng81 commented 4 years ago

Hi syssi,

At first, I want to say Thank you for the efforts to get this work, 10sssss

I have completely removed the old version Climate > restart HA > install the latest version of xiaomi_miio_airconditioningcompanion > restart HA, everything is now working fine, able to use Google Home to switch on aircon with "Cool" mode and turn off the aircon.

BTW is there a way to make "Auto" or "Custom" modes visible for Google Home? Currently, I can only see 3 modes in Google Home which is "Heat, Cool and Off".

syssi commented 4 years ago

I will check the specs of Google Home / HA. The possible modes are very limited.

terenceng81 commented 4 years ago

I realised that the AC wont be able to switch off by Google Assistant with HA if it was turn-on by the remote.

I have to use Google Assistant to send on command to the Aircon already is on ON stage before i could use GA to switch it on, probably is due to in HA, the status is OFF.

Is this an expected behaviour or we could amend the coding to be no-matter what status of AC in HA, send the command still?

Thanks!