Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control Air Conditioner Companion like Xiaomi Mi Smart WiFi Socket #337

Closed
trlsmax opened this issue Jun 14, 2018 · 8 comments
Closed

Control Air Conditioner Companion like Xiaomi Mi Smart WiFi Socket #337

trlsmax opened this issue Jun 14, 2018 · 8 comments

Comments

@trlsmax
Copy link

trlsmax commented Jun 14, 2018

Hi
Is this library can control the Air Conditioner Companion like Xiaomi Mi Smart WiFi Socket ? Just like the MiJia app do, control the output of 220v of the Air Conditioner Companion.

@syssi
Copy link
Collaborator

syssi commented Jun 14, 2018

The output of the Air Conditioning Partner socket cannot be controlled. The hardware/device can measure the power consumption but is unable to toggle the socket by design. If you call the turn off/on method of the API a infrared command will be send.

@trlsmax
Copy link
Author

trlsmax commented Jun 14, 2018

Did you mean the Air Conditioning Partner is design to not able to toggle the socket ? For example, I connect a light bulb to the socket of Air Conditioning Partner, I can't turn on or off the light bulb anyway ?
But if I use the mijia app, I can turn it on or off. In fact , I want to connect the water heater to it.

@syssi
Copy link
Collaborator

syssi commented Jun 16, 2018

This is new to me. Which hardware version of the device do you own?

@trlsmax
Copy link
Author

trlsmax commented Jun 18, 2018

I will let you know tomorrow

@trlsmax
Copy link
Author

trlsmax commented Jun 19, 2018

fw_ver:1.4.1_149
hw_ver:MW300
model:lumi.acpartner.v3
mcu_fw_ver:0149
wifi_fw_ver:SD878x-14.76.36.p84-702.1.0-WM

@hsie
Copy link

hsie commented Nov 11, 2018

hi, just wonder if you found the fix as I am on the same boat as you.

I want to use the ac partner as a socket so as to turn on/off the water heater, but can't find a way to get it work on home assistant.

as you said, in the mijia app there is a choice that will operate the ac partner as a socket.

@syssi
Copy link
Collaborator

syssi commented Nov 11, 2018

As soon as the miIO command is known it can be implemented easily. I don't know the command right now unfortunately.

@syssi
Copy link
Collaborator

syssi commented Nov 17, 2018

I made some progress. Can somebody tests these commands?

miiocli device --ip DEVIP --token DEVTOKEN raw_command toggle_plug '["on"]'
miiocli device --ip DEVIP --token DEVTOKEN raw_command toggle_plug '["off"]'

syssi added a commit to syssi/python-miio that referenced this issue Nov 17, 2018
@syssi syssi closed this as completed in 13bad32 Nov 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants