[OBSOLETE] Mi Connector (Xiaomi and Yeelight)

Yes. For example, if I look at the device in SmartThings right now, it shows ERROR. If I click RESTART, I see the message in the IDE:

On >> 82502418 

But the vacuum doesn’t start.

As I know there is no light on acpartner.
Only can control siren.

Take a look docker log…

Take a look docker log

If you mean in the connector.log, I don’t see anything related to the commands in there. Just battery level data.

This is the Mi Connector Log for today

2019-09-17 22:26:16 error Requested to control by ST >> lumi.acpartner.v3[{“id”:“259137020”,“cmd”:“stopMusic”}] Erorr: TypeError: Cannot read property ‘stopMusic’ of undefined
2019-09-17 22:26:16 info Requested to control by ST >> lumi.acpartner.v3[{“id”:“259137020”,“cmd”:“stopMusic”}]
2019-09-17 22:26:07 error Requested to control by ST >> lumi.acpartner.v3[{“id”:“259137020”,“cmd”:“playMusic”,“data”:0,“subData”:100}] Erorr: TypeError: Cannot read property ‘playMusic’ of undefined

Do not pay attention to the hour, it’s wrong.
The newest entries are the command Fire and Off siren.

On Smartthings
2019-09-17 7:26:16.225 PM ART
hace instantes
APP_COMMAND offSiren Alarm AC Cocina sent offSiren command to AC Cocina
2019-09-17 7:26:07.218 PM ART
hace instantes
DEVICE switch on AC Cocina switch is on
2019-09-17 7:26:07.053 PM ART
hace instantes
APP_COMMAND siren Alarm AC Cocina sent siren command

Regardas
P.

Did you install a 0.0.4 version?

If you use a raspberry pi type this.
docker logs ‘container-id’
You can see a current logs.

If you don’t see a control log, it might be wrong server url on smartapp.
Set a server address like below
ex) 192.168.0.100:30000
except http:// and only local address
delete a vacuum device on st. then restart a docker.

My SmartApp es “Mi Connector (v.0.0.31)
My DTH “Xiaomi Gateway2 (v.0.0.4)

I mean that docker image.
fison67/mi-connector-arm:0.0.4

Will check when I’ll get home
Regards
P.

This is what I see in the log.

2019-09-18 07:31:02 [info]: [ ERR ] Polling issue >> Error: Call to device timed out << rockrobo.vacuum.v1 - miio:xxxx
2019-09-18 07:31:07 [info]: [ ERR ] Polling issue >> Error: Call to device timed out << rockrobo.vacuum.v1 - miio:xxxx
2019-09-18 12:00:01 [info]: Notify >> ID(xxx):type(rockrobo.vacuum.v1) state={"key":"dndEnabled","value":0} >> [0]

pi@raspberrypi:/docker/mi-connector $ sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
fison67/mi-connector-arm latest 9e42fca7b4e0 2 weeks ago 936MB
jsurf/rpi-mariadb latest 711e6d16c477 4 weeks ago 275MB
fison67/mi-connector-arm e6b060189468 8 weeks ago 936MB
fison67/mi-connector-arm 0.0.1 6f9f37fcaeb4 18 months ago 480MB

pi@raspberrypi:/docker/mi-connector $ sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ffff04c89775 fison67/mi-connector-arm:0.0.1 “/usr/bin/entry.sh b…” 2 minutes ago Exited (1) About a minute ago pensive_goldwasser
c78e6e24a182 jsurf/rpi-mariadb “docker-entrypoint.s…” 3 weeks ago Exited (255) 2 weeks ago 0.0.0.0:33006->3306/tcp mariadb
5852ce36375b e6b060189468 “/usr/bin/entry.sh /…” 3 weeks ago Up 4 days mi-connector-arm

Finally, I’ve ran this…

pi@raspberrypi:/docker/mi-connector $ sudo docker pull fison67/mi-connector-arm:latest
latest: Pulling from fison67/mi-connector-arm
Digest: sha256:8d384fc840247c9c04613fe77459b0179be44e6aa643f1995341ecc372493026
Status: Image is up to date for fison67/mi-connector-arm:latest
docker.io/fison67/mi-connector-arm:latest

Remove a mi-connector container first. Then add a container again.

If you set a right ip, you must see like below.

2019-09-19 00:30:04 info Requested to control by ST >> rockrobo.vacuum.v1[{“id”:“2222222”,“cmd”:“clean”}]

If you’re talking about the IP address in the SmartApp, I have confirmed it is correct.

You’re then man, Bro! works great. Thks
Regards
P.

It seems that whatever changes you made resolved my issue. Thanks!

Hi fison, so after i read the tutorial on github, i understood that there is no need to have a Xiaomi Gateway if i only have a vacuum and an air purifier that i want to register to smartthings.

Please let me know if this is correct or not.

  • Xiaomi Gateway (Only needed for Zigbee devices)

Currently i have a smartthings, a bunch of sensors connected directly to smartthings, a synology nas and that vacuum and air purifier from xiaomi.

Thinking of purchasing a Xiaomi vacuum cleaner at some point in the next few months… could someone post a link to a model that works with SmartThings/ MiConnector? Thinking of getting one from AliExpress or Gearbest maybe… Many Thanks again, especially to Fison!

If you want to connect vacuum & air purifier to smartthings, you don’t need a xiaomi gateway.