Giter VIP home page Giter VIP logo

mi_connector's People

Contributors

fison67 avatar sangkooki avatar shin4299 avatar vivianlink avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mi_connector's Issues

No token found installing the latest version

Hi, I've an issue with my zhimi.airpurifier.m1: now the type is undefined, so I receive ad error: Control >> Error!!! TypeError: Cannot read property 'target' of undefined at /usr/src/app/routes/control.js:12:54

I'm using Raspberry Pi, so the error is on mi-connector-arm
Before the update everything worked fine, is it possibile to fix?

Thank you

Actual version log (I've tried also with the :latest)
Mi Connector Version >> 0.0.3.14
Finded >> But Mi-Connector can't get token from this device!!! id(47119176)
Find Device Manually but nothing token!!! >> 47119176

Old version log:
Finded >> WiFi :zhimi.airpurifier.m1 Addrress=192.168.1.4 ID=47119176, Token=6d1e63eec$
Initialize WiFi Device >> zhimi.airpurifier.m1(47119176) ip=192.168.1.4

Xiaomi devices not supported (dreame.vacuum.mc1808 and chuangmi.camera.ipc019)

Hi,

I was trying to add my Xiaomi devices (camera and vacuum) to SmartThings using this tool. These are the only devices I have on Mi Home. The rest of Xiaomi devices were added to ST via custom DTHs.

However, bad luck for me. Both devices say not supported in the logs page:
2021-01-22 14:40:56 | warn | This dreame.vacuum.mc1808 is not supported now
2021-01-22 14:40:46 | warn | This chuangmi.camera.ipc019 is not supported now

Any plans to add support for it? If I knew how, I would do it myself :)

Thanks.

Problem about Air Purifier and Light

  1. After open Mi air purifier 2 for a while. It always show status to off while still open

  2. Please add update for Yeelight ceiling 5

  3. Cannot access some xiaomi light page in new smartthings app

lumi.ctrl_ln2.aq1 not recognised by mi connect

Hi,
I'm having issues connecting a lumi.ctrl_ln2.aq1 to mi connect. Here is what appears to happen:

In the Mi Home app (Hub info page) the device is identified as :{"model":"lumi.ctrl_ln2.aq1","did":"lumi.158d00023b265c","name":"Hall Light"}

When this is pulled into the mi connector application, on the page Add device [ST] it comes up as follows:

  • | 192.168.1.24 | lumi.generic.64 | 158d00023b265c

Then I attempt to register the device, mi connect throws an error. This doesn't happen for any other devices (I also have a lumi.ctrl_neutral2 which works fine).

Any thoughts?
Thank you

PS: Fantastic tool.
NB: The gateway tokens now appear in the "Hub info" page of the Mi Home app once the wireless communication protocol, so no need to try to strip them out of the DB any more.

Use influxdb instead of MySQL

Hello.
I want to install Mi Connector to my current raspberry pi setup.
I have already installed influxdb database for other projects that I’m running.

Is there a workaround or something that I can to use influxdb with Mi connector instead of MySQL?

Thanks.

migration from Smartthings to Hubitat

I was using this device integration with my ST hub and I was able to control my Air Purifier.

Now I installed the hubitat version of app and air purifier device.
Everything is configured same.
When I run the smart app, I guess , I just have to enter the server IP with port (192.168.254.199:30000)
then I just need to map the device, right ?

But unfortunately , the device pulldown does not show any devices.

I checked the Mi Connector server configuration and it seems the " Smartthings Settings" section is showing correct settings (IP http://192.168.254.240/apps/api/ , and other settings like access token, app id are correct)

Why can't it find my device ?

I just installed the air purifier device.
Should I also install other device types from the repo ? (I guess no, because on ST I did not)

logs only say :

app:1662021-03-19 15:28:02.828 debuginitialize
app:1662021-03-19 15:28:02.827 debugUpdated with settings: [selectedLang:English,address:192.168.254.199:30000, externalAddress:192.168.254.199:30000]

Is it possible that Roborock mode is changing Air Purifier mode?

I am experiencing a very strange problem where Sir Purifier automatically changes mode from favorite to auto.

I think I have narrowed it down that when the Roborock goes back to charge, for some reason it switches the mode of the air purifier.

Do you think the SmartThings appnis doing something to change this? Or am I looking in the wrong place?

no devices will add

have a gateway v3 yeelightbulb and motion sensor and door sensor and all show red and will not add manually.

on latest version - ideas?

No token and type

@fison67 First of all, congrats for this big project called Mi-connector.
So, I've installed on linux, but the mi-connector is not able to detect the type and token. Do you have any tip to solve this problem?
no_token

Token not found, miio discover shows "Token: ???"

I have one light strip and one colour light. The light strip is fine, discovers in the Mi Connector web app. I've deleted and re-connected the light but it's still the same.

I also tried to get the token from a backup of the Mi Home app, by extracting the database. Both devices were in there, but the token field was empty for both of them.

Is it possible that the Xiaomi is being more secure with the token, and that the latest version of firmware and Mi Home app both keep it secret?

Here's handshake reply output of miio discover with debug on:

  thing:miio:87425134 <- Handshake reply: <Buffer 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00> +526ms
  thing:miio:83894783 <- Handshake reply: <Buffer c5 6a 4c 97 08 e8 cc 86 11 8c 0e 2f 79 7f 69 5a> +516ms

I tried deleting and re-adding in Mi Home app. I tried resetting the light by powering off/on 5 times. I checked that it's in developer mode.

Not issue but info

Flag zhimi.airpurifier.m1 as tested, I've got it and it works perfectly.

screen shot 2018-07-28 at 08 11 38

ESP32 Bluetooth

Hello,

First, thanks for the great project.
I'm trying to add some Bluetooth devices to my smart home.
I have the following sensor:
image
The mi connector is showing me that I have connect a ble.temperature, I got an ID.
On the ESP32 board, I see that the sensor is sending temperature and humidity, but I cannot make it work on smartthings hub. Which dth do you use? How do you add it?

Let me know if you need other information. Thanks

Robot Vacuum manually added but not added on my devices on ST app.

Robot Vacuum manually added but not added on my devices on ST app.

Followed all instructions using raspberry pi. Manually added device on mi-connector using ip and token. Mi-connector added in smartapps and all device handlers integrated from github.

Restarted docker container and removed and added vacuum a couple of times, still no luck. Please help. Thanks.

Where can I find the graph?

I have managed to set this up and it's working correctly with Air Purifier Pro (v7) and Roborock S50. I'm very appreciative of this project. Thank you!

I have seen in the documentation that you have some screenshots of a graph. Can you please tell me where I can find them?

ClearGrass air monitor (cgllc.airmonitor.s1) not discovered

I configure everything step by step the worst part was with getting a token from the device.
But finally, I don't see any new device in the smartthings app
The device is recognized and connected to Mi Connector:
obraz

Device handlers were added and published:
obraz

Mi connect app was installed:
obraz
obraz
How can I check what is wrong?

멀티탭 3개 중 두개가 작동을 안하고 이런 로그를 뿌립니다

Xiaomi Settings
Type Content
error Get Device State TypeError: deviceMap[id].target.state is not a function Error at Object.module.exports.getDeviceState (/usr/src/app/miio/miio.js:1026:60) at processDeviceStatus (/usr/src/app/routes/websocket.js:169:10) at WebSocket. (/usr/src/app/routes/websocket.js:43:9) at emitOne (events.js:116:13) at WebSocket.emit (events.js:211:7) at Receiver.receiverOnMessage (/usr/src/app/node_modules/ws/lib/websocket.js:715:20) at emitOne (events.js:116:13) at Receiver.emit (events.js:211:7) at Receiver.dataMessage (/usr/src/app/node_modules/ws/lib/receiver.js:414:14) at Receiver.getData (/usr/src/app/node_modules/ws/lib/receiver.js:346:17)
error Requested to control by ST >> zimi.powerstrip.v2[{"id":"48734306","cmd":"power","data":"on"}] Erorr: TypeError: device.matches is not a function
error Requested to control by ST >> zimi.powerstrip.v2[{"id":"48734306","cmd":"power","data":"on"}] Erorr: TypeError: Cannot read property 'indexOf' of undefined
info Requested to control by ST >> zimi.powerstrip.v2[{"id":"48734306","cmd":"power","data":"on"}]
error Requested to control by ST >> zimi.powerstrip.v2[{"id":"48704499","cmd":"power","data":"on"}] Erorr: TypeError: device.matches is not a function
error Requested to control by ST >> zimi.powerstrip.v2[{"id":"48704499","cmd":"power","data":"on"}] Erorr: TypeError: Cannot read property 'indexOf' of undefined
info Requested to control by ST >> zimi.powerstrip.v2[{"id":"48704499","cmd":"power","data":"on"}]
error Requested to control by ST >> zimi.powerstrip.v2[{"id":"48704499","cmd":"power","data":"off"}] Erorr: TypeError: device.matches is not a function
error Requested to control by ST >> zimi.powerstrip.v2[{"id":"48704499","cmd":"power","data":"off"}] Erorr: TypeError: Cannot read property 'indexOf' of undefined
info Requested to control by ST >> zimi.powerstrip.v2[{"id":"48704499","cmd":"power","data":"off"}]
error Requested to control by ST >> zimi.powerstrip.v2[{"id":"48734306","cmd":"power","data":"off"}] Erorr: TypeError: device.matches is not a function
error Requested to control by ST >> zimi.powerstrip.v2[{"id":"48734306","cmd":"power","data":"off"}] Erorr: TypeError: Cannot read property 'indexOf' of undefined
info Requested to control by ST >> zimi.powerstrip.v2[{"id":"48734306","cmd":"power","data":"off"}]
error Requested to control by ST >> zimi.powerstrip.v2[{"id":"48734306","cmd":"power","data":"off"}] Erorr: TypeError: device.matches is not a function
error Requested to control by ST >> zimi.powerstrip.v2[{"id":"48734306","cmd":"power","data":"off"}] Erorr: TypeError: Cannot read property 'indexOf' of undefined
info Requested to control by ST >> zimi.powerstrip.v2[{"id":"48734306","cmd":"power","data":"off"}]
info Requested to control by ST >> zimi.powerstrip.v2[{"id":"48716311","cmd":"power","data":"on"}]
info Requested to control by ST >> zimi.powerstrip.v2[{"id":"48716311","cmd":"power","data":"off"}]
error Requested to control by ST >> zimi.powerstrip.v2[{"id":"48734306","cmd":"power","data":"on"}] Erorr: TypeError: device.matches is not a function
error Requested to control by ST >> zimi.powerstrip.v2[{"id":"48734306","cmd":"power","data":"on"}] Erorr: TypeError: Cannot read property 'indexOf' of undefined
info Requested to control by ST >> zimi.powerstrip.v2[{"id":"48734306","cmd":"power","data":"on"}]
error Requested to control by ST >> zimi.powerstrip.v2[{"id":"48734306","cmd":"power","data":"off"}] Erorr: TypeError: device.matches is not a function
error Requested to control by ST >> zimi.powerstrip.v2[{"id":"48734306","cmd":"power","data":"off"}] Erorr: TypeError: Cannot read property 'indexOf' of undefined
info Requested to control by ST >> zimi.powerstrip.v2[{"id":"48734306","cmd":"power","data":"off"}]
info Requested to control by ST >> rockrobo.vacuum.v1[{"id":"55508490","cmd":"charge"}]
info Requested to control by ST >> zimi.powerstrip.v2[{"id":"48716311","cmd":"power","data":"on"}]
error Requested to control by ST >> zimi.powerstrip.v2[{"id":"48734306","cmd":"power","data":"off"}] Erorr: TypeError: device.matches is not a function
error Requested to control by ST >> zimi.powerstrip.v2[{"id":"48734306","cmd":"power","data":"off"}] Erorr: TypeError: Cannot read property 'indexOf' of undefined
info Requested to control by ST >> zimi.powerstrip.v2[{"id":"48734306","cmd":"power","data":"off"}]
error Requested to control by ST >> zimi.powerstrip.v2[{"id":"48704499","cmd":"power","data":"off"}] Erorr: TypeError: device.matches is not a function
error Requested to control by ST >> zimi.powerstrip.v2[{"id":"48704499","cmd":"power","data":"off"}] Erorr: TypeError: Cannot read property 'indexOf' of undefined
info Requested to control by ST >> zimi.powerstrip.v2[{"id":"48704499","cmd":"power","data":"off"}]
info Requested to control by ST >> rockrobo.vacuum.v1[{"id":"55508490","cmd":"clean"}]
error Requested to control by ST >> zimi.powerstrip.v2[{"id":"48704499","cmd":"power","data":"off"}] Erorr: TypeError: device.matches is not a function
error Requested to control by ST >> zimi.powerstrip.v2[{"id":"48704499","cmd":"power","data":"off"}] Erorr: TypeError: Cannot read property 'indexOf' of undefined
info Requested to control by ST >> zimi.powerstrip.v2[{"id":"48704499","cmd":"power","data":"off"}]
error Requested to control by ST >> zimi.powerstrip.v2[{"id":"48734306","cmd":"power","data":"off"}] Erorr: TypeError: device.matches is not a function
error Requested to control by ST >> zimi.powerstrip.v2[{"id":"48734306","cmd":"power","data":"off"}] Erorr: TypeError: Cannot read property 'indexOf' of undefined
info Requested to control by ST >> zimi.powerstrip.v2[{"id":"48734306","cmd":"power","data":"off"}]
info Requested to control by ST >> zimi.powerstrip.v2[{"id":"48716311","cmd":"power","data":"off"}]
info Requested to control by ST >> zimi.powerstrip.v2[{"id":"48716311","cmd":"power","data":"on"}]
error Requested to control by ST >> zimi.powerstrip.v2[{"id":"48704499","cmd":"power","data":"off"}] Erorr: TypeError: device.matches is not a function
error Requested to control by ST >> zimi.powerstrip.v2[{"id":"48704499","cmd":"power","data":"off"}] Erorr: TypeError: Cannot read property 'indexOf' of undefined
info Requested to control by ST >> zimi.powerstrip.v2[{"id":"48704499","cmd":"power","data":"off"}]
error Requested to control by ST >> zimi.powerstrip.v2[{"id":"48734306","cmd":"power","data":"off"}] Erorr: TypeError: device.matches is not a function
error Requested to control by ST >> zimi.powerstrip.v2[{"id":"48734306","cmd":"power","data":"off"}] Erorr: TypeError: Cannot read property 'indexOf' of undefined
info Requested to control by ST >> zimi.powerstrip.v2[{"id":"48734306","cmd":"power","data":"off"}]
info Requested to control by ST >> zimi.powerstrip.v2[{"id":"48716311","cmd":"power","data":"off"}]
info Initialize WiFi Device >> zimi.powerstrip.v2(48734306)
info Initialize WiFi Device >> zimi.powerstrip.v2(48704499)
info

dth 몇개와 smartapp이 설치가 안됩니다.

먼저 감사말씀드립니다. ^^

github로 st에 설치시

dth의 반은 설치가 되고 반은 에러로 설치가 안됩니다.

2018-03-24 11 33 52

smartapp도 역시 github 설치가 안되고 있습니다.

2018-03-24 11 38 48

Mi Connector not showing in Smartthings app

Hi!
I configured everything by your guide in Samsung IDE, but Mi Connector is not showing under MyApps in Smartthings app.

Is there anything else I should configure additionally what is not written in your manual?

Any suggestions?

BR,
Stanislav

Support for zhimi.airpurifier.mb3

Hi,

thank you for a great software. It is exactly what I need. Unfortunately I have some issue with support of zhimi.airpurifier.mb3. I didn't find what circle/triangle etc in the support table means, but I assume it's not fully supported.
After I add the purifier to the connector, it can read the state of the device, but control ends with error on terminal (mi connector output). After some time, I don't get even that (it timeouts on state read).

2020-12-13 04:41:05 [info]: [ ERR ] Polling issue >> Error: Call to device timed out << zhimi.airpurifier.mb3 - miio:308348604 2020-12-13 04:41:10 [info]: [ ERR ] Polling issue >> Error: Call to device timed out << zhimi.airpurifier.mb3 - miio:308348604 2020-12-13 04:41:15 [info]: [ ERR ] Polling issue >> Error: Call to device timed out << zhimi.airpurifier.mb3 - miio:308348604

at Socket._socket.on (/usr/src/app/node_modules/miio/lib/network.js:158:14) at Socket.emit (events.js:180:13) at UDP.onMessage [as onmessage] (dgram.js:659:8) 2020-12-13 04:41:41 [error]: (node:28) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3) 2020-12-13 04:41:45 [info]: [ ERR ] Polling issue >> Error: Call to device timed out << zhimi.airpurifier.mb3 - miio:308348604 2020-12-13 04:41:47 [error]: (node:28) UnhandledPromiseRejectionWarning: Error: Call to device timed out at Timeout.retry [as _onTimeout] (/usr/src/app/node_modules/miio/lib/network.js:490:23) at ontimeout (timers.js:466:11) at tryOnTimeout (timers.js:304:5) at Timer.listOnTimeout (timers.js:267:5) 2020-12-13 04:41:47 [error]: (node:28) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4)

Is the code of the node service available anywhere? I can grab it from the container, but would be nice to work with git repo instead and maybe dockerfile.

Btw, at some point I saw that I was able to control the device, but changes in dth had a different result than anticipated (like full fan speed, instead of low speed etc.)

Actions for automations on SmartThings

Hello.
Can you please add actions under automations on ST app?

On air purifier, for example:
Currently the device appears only under [if] statement. There are no actions on [then] part.
For example [if] air quality is above {threshold} [then] turn on air purifier at manual mode

미커넥터 설치 후 동작 문제

DTH 및 스마트앱도 설치를 마쳤습니다.
큐냅 나스에 미커넥터 설치를 했는데..
로그상으로는 이슈가 없는 거 같은데 샤오미 기기를 가져오질 못합니다.
설정 페이지에서 테스트 버튼을 클릭할 경우 Error 가 발생하구요
해결할 방법이 있을까요?

lumi.ctrl_ln1.aq1 not supported

Hi,

Found another device ID that is not supported in your docker image: lumi.ctrl_ln1.aq1

In /usr/src/app/node_modules/miio/lib/devices/gateway/subdevices.js the following entry needs to be added to the module.exports:

63: require('./ctrl_ln1'),

Kind Regards

  • Oliver

Cannot add Xiaomi Wall Switch to Smartthings

When I select that device and click “Register”, it pops up a dialog box with “undefined”
It only happen with Xiaomi Wall Swith single and double with no neutral line.

Configuration:
Rpi docker mi-connector-arm: v.0.0.4
mi-connector-apps: v.0.0.46
Xiaomi Wall Switcth DTH: v.0.0.1
Mi-Hub: version 2

Log:
info | Try to register device to ST >> id=158d00031df4b6, type=lumi.ctrl_neutral2 [18/32]

warn | ST Smartapps couldn't add this id=158d00031df4b6, type=lumi.ctrl_neutral2!!!

error | Get Device State TypeError: deviceMap[id].target.state is not a function Error at Object.module.exports.getDeviceState (/usr/src/app/miio/miio.js:1487:55) at /usr/src/app/routes/registerST.js:20:10 at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5) at next (/usr/src/app/node_modules/express/lib/router/route.js:137:13) at isAuthenticated (/usr/src/app/routes/dashboard.js:21:12) at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5) at next (/usr/src/app/node_modules/express/lib/router/route.js:137:13) at Route.dispatch (/usr/src/app/node_modules/express/lib/router/route.js:112:3) at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5) at /usr/src/app/node_modules/express/lib/router/index.js:281:22 at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:335:12) at next (/usr/src/app/node_modules/express/lib/router/index.js:275:10) at Function.handle (/usr/src/app/node_modules/express/lib/router/index.js:174:3) at router (/usr/src/app/node_modules/express/lib/router/index.js:47:12) at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:317:13)

error | Get Device Total State TypeError: deviceMap[id].target.state is not a function Error at Object.module.exports.getDeviceTotalState (/usr/src/app/miio/miio.js:1470:61) at /usr/src/app/routes/devices.js:48:10 at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5) at next (/usr/src/app/node_modules/express/lib/router/route.js:137:13) at Route.dispatch (/usr/src/app/node_modules/express/lib/router/route.js:112:3) at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5) at /usr/src/app/node_modules/express/lib/router/index.js:281:22 at param (/usr/src/app/node_modules/express/lib/router/index.js:354:14) at param (/usr/src/app/node_modules/express/lib/router/index.js:365:14) at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:410:3) at next (/usr/src/app/node_modules/express/lib/router/index.js:275:10) at Function.handle (/usr/src/app/node_modules/express/lib/router/index.js:174:3) at router (/usr/src/app/node_modules/express/lib/router/index.js:47:12) at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:317:13) at /usr/src/app/node_modules/express/lib/router/index.js:284:7

Get Data from ST is failed....

After registration device handler and smart app in samsung cloud(steps from manual), i can't connect to Samsund cloud via mi-connector

always receive following message in log:
Get Data from ST is failed....

Lumi gateway has been successfully found and child devices are found too.
But still cant connect to samsung cloud((

Works on synology docker.

zhimi.airpurifier.m1 No control over device.

I believe this device is not officially supported as per your readme however It adds to ST fine and I can instantly monitor changes using ST DTH. However I can't seem to control the device :( None of the buttons perform any action.

Any idea when this support would be added? Many of my friends and I would very grateful.

Cannot control every device

I can see only status of device but cannot control it. I try uninstall everything and install again and problem still unsolved. I can control device through openhab normal.

Thank you for your help

MiFlora not updating

Hi
I've had the MiFlora working for some weeks, but about 1-2 months ago, the sensors are not updating in the app. From the management port (i.e. raspberry:30000), I can see that the link to smartthings is working properly (using "test").

The new values are updated in the app, when I restart the docker container.

When I download the app, I get the following log:

2019-07-11 11:25:47 [Mi-Connector] info: Bluetooth - Mi Flora scan
2019-07-11 11:26:08 [Mi-Connector] error: (node:23) UnhandledPromiseRejectionWarning: Error: timeout
    at Timeout.setTimeout [as _onTimeout] (/usr/src/app/node_modules/miflora/lib/miflora-device.js:23:20)
    at ontimeout (timers.js:466:11)
    at tryOnTimeout (timers.js:304:5)
    at Timer.listOnTimeout (timers.js:267:5)
2019-07-11 11:26:08 [Mi-Connector] error: (node:23) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3126)
2019-07-11 11:26:08 [Mi-Connector] error: (node:23) UnhandledPromiseRejectionWarning: Error: timeout
    at Timeout.setTimeout [as _onTimeout] (/usr/src/app/node_modules/miflora/lib/miflora-device.js:23:20)
    at ontimeout (timers.js:466:11)
    at tryOnTimeout (timers.js:304:5)
    at Timer.listOnTimeout (timers.js:267:5)
2019-07-11 11:26:08 [Mi-Connector] error: (node:23) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3127)
2019-07-11 11:26:08 [Mi-Connector] error: (node:23) UnhandledPromiseRejectionWarning: Error: timeout
    at Timeout.setTimeout [as _onTimeout] (/usr/src/app/node_modules/miflora/lib/miflora-device.js:23:20)
    at ontimeout (timers.js:466:11)
    at tryOnTimeout (timers.js:304:5)
    at Timer.listOnTimeout (timers.js:267:5)
2019-07-11 11:26:08 [Mi-Connector] error: (node:23) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3128)
2019-07-11 11:26:16 [Mi-Connector] info: Bluetooth - Mi Temperature scan

Xiaomi Air Purifier can't get token

I'm trying to add Xiaomi Air Purifier 3H. The Mi connector finds the device through search functionality. However, the token value is empty and the logs shows: Mi-Conector find new device(192.168.3.24, No Token) at Auto Mode. But can't get token from this!!!

It looks like there's just no token. Mi connector recognizes the auto mode and it should be able to connect.

Also, the device type is not recognized. It's just empty. I wonder if this is because I'm using the Europe server (my devices can only connect to that one)

Can we add devices across VLANS

Hi, I've just moved all of my Xiaomi devices into a different VLAN. They've all been reconnected and are functioning correctly in Mi Home.

After removing all of the old devices I've manually added them back in (including the new tokens) but all are coming back as

error | Initialize Wi-Fi Device >> Error ip(##.##.##.##), token=(###########################) : Error: Could not connect to device, handshake timeout

My MiConnector instance is sitting in a docker in the 10.1.1.0/24 subnet, the Xiaomi devices are all in 10.1.44.0/24 (VLAN 44). All routing appears to be correct and I can ping the Xiaomi devices from the docker Host.

Any idea what I can do to get cross VLAN connectivity working?

Xiaomi light strip 2

Hi

Thanks for the great software!

I’m having issues with xiaomi mi light strip 2 (recognized as 192.168.1.221 | yeelink.light.strip2)
I managed that it got shown on smartthings as device, however any action is not reflected on the device.

Any thoughts? thanks a lot

Best

Log:

Date Type Content
2019-10-26 15:06:53 info Succes to add to Smartthings >> yeelink.light.strip2(131687781)
2019-10-26 15:06:53 info Try to register device to ST >> id=131687781, type=yeelink.light.strip2 [1/1]
2019-10-26 13:55:02 info Succes to add to Smartthings >> yeelink.light.strip2(131687781)
012B0B25-AF29-4710-A71C-52EBF78B1AF4
9B59CED6-EB29-4CB1-B93F-554BFF4875BA
779E4A4C-F551-4C7C-BE6A-BB55D2136B5E
E98FB343-55D6-4A8D-A493-C993AEB1705C

Xiaomi Air Purifier 3

Hi,
I have problem to add Xiaomi Air Purifier 3 (zhimi.airpurifier.mb3) to Mi Connector. Info from log:

Initialize Wi-Fi Device >> Error ip(192.168.0.240), token=(*************************) : Error: Could not connect to device, handshake timeout

Has something changed in new Xiaomi API? There is no problem with Roborock S6 (roborock.vacuum.s6) which is also not on the supported devices list.

gateway만 발견이 안됩니다

홈브릿지나 ha에서 잘 작동중인 게이트웨이가 mi coneector에서 자동발견이 안됩니다. wifi plug는 잘나오고 있습니다. lumi-gateway-v3 입니다.

Support of Air Purifier 3 (C/H)

Hey.
I have issues with zhimi.airpurifier.mb3.
Some functions on DHT not supported by air purifier 3H, like dimmer.
Also I can’t control the device except of turning in On an Off.
Other Functions like fan speed, PM10 dust level doesn't seems to work:/

Any plans for supporting this device?

lumi.ctrl_neutral2

Hi , I use mi connector whit smarthing hub and xiaomi gateway v3. All my device work well, bluetooth and zigbee, but can't use whit lumi.ctrl_neutral2. I got this error in my log, What im doing wrong whit it ?

Get Device State TypeError: deviceMap[id].target.state is not a function Error at Object.module.exports.getDeviceState (/usr/src/app/miio/miio.js:1452:55) at /usr/src/app/routes/registerST.js:20:10 at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5) at next (/usr/src/app/node_modules/express/lib/router/route.js:137:13) at isAuthenticated (/usr/src/app/routes/dashboard.js:21:12) at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5) at next (/usr/src/app/node_modules/express/lib/router/route.js:137:13) at Route.dispatch (/usr/src/app/node_modules/express/lib/router/route.js:112:3) at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5) at /usr/src/app/node_modules/express/lib/router/index.js:281:22 at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:335:12) at next (/usr/src/app/node_modules/express/lib/router/index.js:275:10) at Function.handle (/usr/src/app/node_modules/express/lib/router/index.js:174:3) at router (/usr/src/app/node_modules/express/lib/router/index.js:47:12) at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:317:13)

Mi Smart Plug EU Version WiFi

Hi, I wonder if this smart plug is supported? I can add it in the Mi Connector dashboard, but it ends up under Not Initialized Xiaomi Devices.

Can't get connector to run on a raspberry pi zero

I can't get this running on a pi zero.

Docker installs ok (I tried suggestions on the internet to downgrade docker but connector still won't run) so not sure if this is a docker issue or mi connector container issue as I'm not too familiar with docker. I can get it running on a pi 3 but I only need this to be in my IOT Vlan so can't justify the cost of a pi3/4 just for this app.

Any ideas?

Mi Connector username and password

Hi!
I have running Mi Connector on Raspberry pi server. For some reason configured Xiaomi setting to use Gateway address 172.17.0.1. (Docker Gateway??)

Today could not access Mi Connector on server address as I need to input a username and password in a Login Form. Password recovery option does not work. Create new account option does not work.

I can access however logs page:
20200325_065314

Any ideas, what username and password to try?

Thanks!

Best regards,
Stanislav

Do I need SmartThings hub to make it works?

Maybe it's stupid question, but I haven't bought SmartThings hub yet, so I don't know it it's required to use SmartThings ide etc. In the documentation there is only ide mentioned. So I wonder if I need SmartThings hub?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.