fison67 / mi_connector

Connector for Xiaomi Devices with Smartthings, Hubitat
MIT License
213 stars 595 forks source link

Unsupported Air Purifier model #74

Open ilker-aktuna opened 3 years ago

ilker-aktuna commented 3 years ago

I just migrated to Hubitat hub from Smartthings Hub My air purifier was not being added as a device. "zhimi.airpurifier.mb3" This is not supported by the smart app.

I added it to the smart app and made some changes to the device driver.

Even after that the smart app did not show it as a mappable device. I was able to add it from the Mi Connector management interface though.

Now my device works but it would be better if the device is added in a more decen way.

I can help with tests if required.

fison67 commented 3 years ago

Update a docker image, smartapp, dth.

ilker-aktuna commented 3 years ago

thanks for the answer. did you mean I should update the docker together with smartapp and dth ?

if yes, what is the method for updating docker without losing data ?

fison67 commented 3 years ago

You don't lose your data. Just re-download a docker image then make a container again. Data is located in config.json file.

ilker-aktuna commented 3 years ago

thanks. but now I have 2 instances running :

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 3f22b6a31974 fison67/mi-connector:latest "/bin/sh -c 'npm sta…" 49 seconds ago Up 15 seconds mi-connector 15f7363dbe36 jsurf/rpi-mariadb "docker-entrypoint.s…" 9 days ago Exited (0) 9 days ago mariadb cfcb5adcb0b8 fison67/mi-connector-arm:latest "/usr/bin/entry.sh /…" 2 months ago Up 5 hours mi-connector-arm

did I do something wrong resulting in 2 instances ?

besides, I see that mariadb is not running. installation instructions do not involve a step to run it after reboot. is this normal ?

when I try to run it , I get this error:

docker run -d --name mariadb -e MYSQL_ROOT_PASSWORD=password1234 -e TZ=Asia/Seoul -p 33006:3306 -d jsurf/rpi-mariadb

docker: Error response from daemon: Conflict. The container name "/mariadb" is already in use by container "15f7363dbe3681c34567339f4eb79e61dee1b5889a72a0f7908a761b69f20ee1". You have to remove (or rename) that container to be able to reuse that name.

ilker-aktuna commented 3 years ago

also, you asked me to update smartapp and dth. but I can't find any new dth/smartapp in "hubitat" branch. which files should I use ?

ilker-aktuna commented 3 years ago

I'm not sure what to do. Should I delete the old container ? and how can I make mariadb start at boot ?

also, you asked me to update smartapp and dth. but I can't find any new dth/smartapp in "hubitat" branch. which files should I use ?

ilker-aktuna commented 3 years ago

I'm looking but I can't find. What am I missing ?