Open profx5015 opened 4 years ago
MIoT Device (did: 269817702) failed to connect:Error: Could not connect to device, handshake timeout
[3/26/2020, 1:01:00 PM] [Xiaomi Air Purifier] Polling properties
[3/26/2020, 1:01:00 PM] [Xiaomi Air Purifier] MIOTDevice is not connected
MIoT Device (did: 26981****) failed to connect:Error: Could not connect to device, handshake timeout
I'm getting the same issue too
[3/27/2020, 7:38:03 PM] [Air Purifier] Polling properties
MIoT Device (did: 46227520) poll error : Error: Method not found.
[3/27/2020, 7:38:33 PM] [Air Purifier] Polling properties
MIoT Device (did: 46227520) poll error : Error: Method not found.
Please check that the configuration parameters are correct: did, ip and token. My bet is that something is wrong there.
If you think the parameters are correct, then please run this commands from the computer hosting homebridge and share the output:
miio tokens update IP_ADDRESS --token TOKEN
miio protocol call IP_ADDRESS get_properties '[{"did":"DID","siid":2,"piid":2}]'
Replace IP_ADDRESS , TOKEN and DID with the values you have in your homebridge config file.
got same issue, this is my output from running the commands
1st command
INFO Updating token for 192.168.1.87 INFO Connected to miio:80570968 - trying to change token Token has been updated
then 2nd command
INFO Attempting to call get_properties on 192.168.1.87 INFO Device found, making call ERROR Encountered an error while controlling device Error was: Method not found.
@karan1686 : What Air Purifier model do you have ? Do you have an Xiaomi Air Purifier 3?
From the error message you got it look like the device is complaining that 'get_properties' is not a known method. This is what I expect to see if you have an older model.
I have a similar problem.
Here's the output from the homebridge:
MIoT Device (did: 152608104) is now connected
[4/3/2020, 12:00:02 PM] [Xiaomi Air Purifier] getTargetAirPurifierState
[4/3/2020, 12:00:02 PM] [Xiaomi Air Purifier] getTargetAirPurifierState Failed: MIOTDevice is not responding
[4/3/2020, 12:00:02 PM] [Xiaomi Air Purifier] getFilterChangeIndication
[4/3/2020, 12:00:02 PM] [Xiaomi Air Purifier] getFilterChangeIndication Failed: MIOTDevice is not responding
[4/3/2020, 12:00:02 PM] [Xiaomi Air Purifier] getRotationSpeed
[4/3/2020, 12:00:02 PM] [Xiaomi Air Purifier] getRotationSpeed Failed: MIOTDevice is not responding
[4/3/2020, 12:00:02 PM] [Xiaomi Air Purifier] getActive
[4/3/2020, 12:00:02 PM] [Xiaomi Air Purifier] getActive Failed: MIOTDevice is not responding
[4/3/2020, 12:00:02 PM] [Xiaomi Air Purifier] getCurrentAirPurifierState
[4/3/2020, 12:00:02 PM] [Xiaomi Air Purifier] getCurrentAirPurifierState Failed: MIOTDevice is not responding
[4/3/2020, 12:00:02 PM] [Xiaomi Air Purifier] getLockPhysicalControls
[4/3/2020, 12:00:02 PM] [Xiaomi Air Purifier] getLockPhysicalControls Failed: MIOTDevice is not responding
[4/3/2020, 12:00:02 PM] [Xiaomi Air Purifier] getAirQuality
[4/3/2020, 12:00:02 PM] [Xiaomi Air Purifier] getAirQuality Failed: MIOTDevice is not responding
[4/3/2020, 12:00:02 PM] [Xiaomi Air Purifier] getTemperature
[4/3/2020, 12:00:02 PM] [Xiaomi Air Purifier] getTemperature Failed: MIOTDevice is not responding
[4/3/2020, 12:00:02 PM] [Xiaomi Air Purifier] getHumidity
[4/3/2020, 12:00:02 PM] [Xiaomi Air Purifier] getHumidity Failed: MIOTDevice is not responding
MIoT Device (did: 152608104) poll error : Error: Call to device timed out
I have Air Purifier 3H working with EU server.
Homebridge configuration:
{
"bridge": {
"name": "Homebridge B2B3",
"username": "0E:3B:24:EC:B2:B3",
"port": 51430,
"pin": "031-45-154"
},
"accessories": [
{
"accessory": "XiaomiAirPurifier3",
"name": "Xiaomi Air Purifier",
"did": "152608104",
"ip": "192.168.1.14",
"token": "36387972706d317a4a63417470527677",
"pm25_breakpoints": [
5,
12,
35,
55
]
}
],
"platforms": []
}
The result of running these commands.
~ miio discover
INFO Discovering devices. Press Ctrl+C to stop.
Device ID: 152608104
Model info: Unknown
Address: 192.168.1.14
Token: ???
Support: Unknown
^C
~ miio tokens update 192.168.1.14 --token 36387972706d317a4a63417470527677
INFO Updating token for 192.168.1.14
INFO Connected to miio:152608104 - trying to change token
Token has been updated
~ miio protocol call 192.168.1.14 get_properties '[{"did":"152608104","siid":2,"piid":2}]'
INFO Attempting to call get_properties on 192.168.1.14
INFO Device found, making call
ERROR Encountered an error while controlling device
Error was:
Call to device timed out
@karan1686 : What Air Purifier model do you have ? Do you have an Xiaomi Air Purifier 3?
From the error message you got it look like the device is complaining that 'get_properties' is not a known method. This is what I expect to see if you have an older model.
Hi,
thanks for getting back to me, apologies I was using the 2S model not 3, so the error makes sense now
@qstyler : Did it ever worked with that token, you usually get device timeout from incorrect token
@profx5015 : Are you sure the ip address is correct, from the error message it would be the first thing I check
All the problems reported here are not directly related to the plugin and not even related to one another. On top of that, the are errors are generated by the underlaying miio libarary to which I have no control on.
The only thing I can do is to be more explicit with the error messages but there is nothing I can fix regarding the actual problems you guys reported, so probably will close this issue soon.
Ok, thanks for the reply. I have tried to update the token several times, then reset the device and finally got connected.
@qstyler If you think is anything related to this plugin just open another issue. Hope you get it solved in the end.
I think i have the same problems with purifier 3H, region Romania:
I have reseted the device several times, get the token but no answer from the purifier, must change the token ?
:~/.homebridge $ sudo npm install -g homebridge-xiaomi-air-purifier3
+ homebridge-xiaomi-air-purifier3@1.3.0
added 117 packages from 54 contributors in 83.534s
[4/5/2020, 10:55:13 AM] [Xiaomi Air Purifier] Initializing XiaomiAirPurifier3 accessory...
[4/5/2020, 10:49:09 AM] ---
[4/5/2020, 10:49:13 AM] Loaded plugin: homebridge-xiaomi-purifier
[4/5/2020, 10:49:13 AM] Registering accessory 'homebridge-xiaomi-purifier.MiAirPurifier'
[4/5/2020, 10:49:13 AM] ---
MIoT Device (did: 270752842) failed to connect:Error: Could not connect to device, token might be wrong
Am having the same issue but only if i turn on the xiaomi on with night mode using xiaomi mi home app and try to use home app to connect. The apple home app would say that the device is not responding.
But if i change to low,medium or high speed from mi home app, . the apple home app works again.
I had to register again, new setup withnew code and now they showd-up, something has changed by latest apple ios and home app
Hello! Purifier is not responding. Attaching log