SmartThings Community

Mi Connector (Xiaomi and Yeelight)

smartapp_misc
dth_sensors
requires_server
smartapp_appliances

(Luca Mocci) #84

I managed to connect my two yeelight bulbs and strip, but not the bulbs V2. Is there any updating at the docker to do? how you do it? thank you


(Chals) #85

What is version you installed mi connector docker?

And let me know not working device type name of dashboard on the web.


(Luca Mocci) #86

where can I find the version?
“yeelink.light.color2”, appears only on “device list”, added manually with the token, but does not appear on “dashboard”, nor on “add device (ST)”


(Chals) #87

I mean docker version.

[yeelink.light.color2] is not supported now.
only yeelink.light.color1.

I will add it next version 0.0.3.

Current version is 0.0.2.


(Luca Mocci) #88

ok, where do I see the version I installed?


(Chals) #89

Raspbery pi
command >> docker images
docker ps -a


(Chals) #90

I have added and tested Xiaomi ceiling lamp.
It’s working but I haven’t tested Xiaomi philips ceiling lamp.

Would you like to test Xiaomi philips ceiling lamp on mi connector
if you are ok?

Docker version : test-lamp
Smart app : https://github.com/fison67/mi_connector/blob/fison67-test-1/smartapps/fison67/mi-connector.src/mi-connector.groovy
DTH : https://github.com/fison67/mi_connector/blob/fison67-test-1/devicetypes/fison67/xiaomi-philips-light-ceiling/xiaomi-philips-light-ceiling.groovy


(Thomas (Lysi)) #91

This is GREAT!! I’ve been looking for something like this for a long time.

I will be able to test this with some devices that are not yet tested. I will keep you posted.

Is there any plans to support the flowerpot, or flora sensor?
What about the IR sensor?

Again Great work!


(Thomas (Lysi)) #92

And the mi Candela, would that work with this?


(Chals) #93

Flowerpot? flora sensor is not using wifi, maybe bluetooth.

That’s why NAS can’t use it, only do with raspbey pi.

And I need source code as Python miio or nodejs miio.
If that code supports the product, I can add it on Mi Connector.

I have a plan to add an IR remote.


(Barbara Schiavinato) #95

Hi @fison67, great work!
I have a zhimi.airpurifier.m1, so it isn’t tested.
I’ve installed the application on a Raspberry Pi, the values are shown correctly, but the commands aren’t triggered.
On the Smartthing console they come (as setModeAuto >> 47119176 or Off >> 47119176) but nothing happens. How can I verify that it’s wrong?
Thank you!


(Chals) #96

Hi
Let me know the docker log.
You can find it in config folder.


(Barbara Schiavinato) #97

@fison67 solved, my bad! On the M1 version it works perfectly!


(Wasim Amirudin) #98

Hi
sorry this might be a silly question but does this support Xiaomi MI Gateway V2


(Chals) #99

I haven’t tested Gateway V2.
But maybe it work


(Yaroslav) #100

Hello. I tested new docker image and new DTH, but it doesn’t work.
Here it is the log file: https://www.dropbox.com/s/1rxk41cjdcxlvv4/fison67-mi-connector2%20(5).html?dl=0
Also I bought Xiaomi Mi Robot Vacuum 2 ( roborock.vacuum.s5) and it doesn’t work too. I tested with both docker image. It appears in Smartthings but always in state “initiating”.


(Chals) #101

This is your log.

Initialize WiFi Device >> roborock.vacuum.s5(82XXXX23) ip=10.0.XX.10
Finded >> But Mi-Connector can’t get token from this device!!! id(56XXXX72)

Mi connector was finding roborock but couldn’t get a token automatically.
That’s why it’s not working.

You have to get a token yourself from android or iPhone.
And then just add device with [IP & Token] on the web page/


(Yaroslav) #102

Check it out later:
2018-06-13 07:23:11 stdout info: Initialize >> Device Ip(10.0.24.10), Token=(4a6XXXXXXXXXXXXXXXXXXXXXXXXX366a) {“label”:“Mi-Connector”,“timestamp”:“2018-06-13T07:23:11.633Z”}
2018-06-13 07:23:12 stdout info: Initialize WiFi Device >> roborock.vacuum.s5(82XXXX23) ip=10.0.XX.10


(Barbara Schiavinato) #103

@fison67 I have a request for you: may you remove the symbols “°” and “%” from the value field and keeping it only on the desc? Otherwise the third-party applications don’t work properly with this data.
Thank you

Barbara


(Chals) #104

You mean that remove the symbols in DTH?
Let me know what DTH save value with symbols.
Thanks.