Closed jackga1986 closed 1 month ago
You would need to provide some debug log so that i can check what might be wrong. https://github.com/merdok/homebridge-miot?tab=readme-ov-file#troubleshooting
I ran the test token troubleshooting and it was successful. Will run the debug and provide to you shortly.
Last login: Sun Jul 28 11:02:20 on ttys003 jackgreenwoodallum@Mr-Server ~ % miot test 192.168.1.220 -t 010d44002529434b1924dcad664c7ef5 INFO Connecting to device at 192.168.1.220 SUCCESS Connected to device at 192.168.1.220! Token and ip are correct! Device info: { "life": 101810, "cfg_time": 0, "token": "010d44002529434b1924dcad664c7ef5", "mac": "04:CF:8C:F1:64:5E", "fw_ver": "1.4.3_20106", "hw_ver": "MW300", "model": "zhimi.airpurifier.mb1", "wifi_fw_ver": "SD878x-14.76.36.p84-702.1.0-WM", "ap": { "rssi": -46, "ssid": "Epic Fail", "bssid": "D8:EC:5E:96:5A:23" }, "netif": { "localIp": "192.168.1.220", "mask": "255.255.255.0", "gw": "192.168.1.1", "gw_mac": "D8:EC:5E:96:5A:E5" }, "mmfree": 136964, "ot": "otu", "otu_stat": [ 45, 41, 581, 0, 581, 21 ], "ott_stat": [ 0, 0, 0, 0 ] } jackgreenwoodallum@Mr-Server ~ % homebridge -D [8/4/2024, 3:25:01 PM] Loaded config.json with 2 accessories and 3 platforms. [8/4/2024, 3:25:02 PM] Loaded 4 cached accessories from cachedAccessories. [8/4/2024, 3:25:02 PM] --- [8/4/2024, 3:25:04 PM] Loaded plugin: homebridge-config-ui-x@4.56.4 [8/4/2024, 3:25:04 PM] Registering platform 'homebridge-config-ui-x.config' [8/4/2024, 3:25:04 PM] --- [8/4/2024, 3:25:04 PM] Loaded plugin: homebridge-dummy@0.9.0 [8/4/2024, 3:25:04 PM] Registering accessory 'homebridge-dummy.DummySwitch' [8/4/2024, 3:25:04 PM] --- [8/4/2024, 3:25:04 PM] Loaded plugin: homebridge-miot@1.7.2 [8/4/2024, 3:25:04 PM] Registering platform 'homebridge-miot.miot' [8/4/2024, 3:25:04 PM] --- [8/4/2024, 3:25:05 PM] Loaded plugin: homebridge-weather-plus@3.3.5 [8/4/2024, 3:25:08 PM] Registering platform 'homebridge-weather-plus.WeatherPlus' [8/4/2024, 3:25:08 PM] --- [8/4/2024, 3:25:08 PM] Loading 3 platforms... [8/4/2024, 3:25:08 PM] [Config] Initializing config platform... [8/4/2024, 3:25:08 PM] [Config] Spawning homebridge-config-ui-x with PID 58434 [8/4/2024, 3:25:08 PM] [miot] Initializing miot platform... [8/4/2024, 3:25:08 PM] [WeatherPlus] Initializing WeatherPlus platform... [8/4/2024, 3:25:08 PM] [WeatherPlus] [ 'AirPressure', 'CloudCover', 'Condition', 'ConditionCategory', 'DewPoint', 'Humidity', 'ObservationStation', 'ObservationTime', 'Ozone', 'SnowBool', 'SolarRadiation', 'SunriseTime', 'SunsetTime', 'UVIndex', 'Visibility', 'WindDirection', 'WindSpeed', 'WindSpeed Max' ] [8/4/2024, 3:25:08 PM] [WeatherPlus] Adding station with weather service OpenWeatherMap named 'Hong Kong' [8/4/2024, 3:25:08 PM] [WeatherPlus] Using compatibility mode 'home' [8/4/2024, 3:25:08 PM] [WeatherPlus] Fakegato-storage AddWriter : Hong Kong [8/4/2024, 3:25:08 PM] [WeatherPlus] Loading... [8/4/2024, 3:25:08 PM] [WeatherPlus] Fakegato-storage read FS file: /Users/jackgreenwoodallum/.homebridge/Mr-Server_Hong Kong_persist.json [8/4/2024, 3:25:08 PM] [WeatherPlus] Fakegato-timer Subscription : Hong Kong [8/4/2024, 3:25:08 PM] [WeatherPlus] Registring Events Hong Kong [8/4/2024, 3:25:08 PM] [WeatherPlus] Accessory Hong Kong [8/4/2024, 3:25:08 PM] [WeatherPlus] Added forecast for day: 1 [8/4/2024, 3:25:08 PM] [WeatherPlus] Added forecast for day: 2 [8/4/2024, 3:25:08 PM] [WeatherPlus] Updating weather with OpenWeatherMap [8/4/2024, 3:25:08 PM] [WeatherPlus] Update weather [8/4/2024, 3:25:08 PM] [WeatherPlus] Using API 3.0 [8/4/2024, 3:25:08 PM] [WeatherPlus] Getting weather data for location [ 22.2825, 114.1667 ] [8/4/2024, 3:25:08 PM] Initializing platform accessory 'Hong Kong'... [8/4/2024, 3:25:08 PM] Initializing platform accessory 'In 1 Day'... [8/4/2024, 3:25:08 PM] Initializing platform accessory 'In 2 Days'... [8/4/2024, 3:25:08 PM] Loading 2 accessories... [8/4/2024, 3:25:08 PM] [Post] Initializing DummySwitch accessory... [8/4/2024, 3:25:08 PM] [Post] Setting switch to false [8/4/2024, 3:25:08 PM] [Dog] Initializing DummySwitch accessory... [8/4/2024, 3:25:08 PM] [Dog] Setting switch to false [8/4/2024, 3:25:08 PM] [miot] Found cached accessory The Cave Standing Fan [8/4/2024, 3:25:08 PM] [miot] Found cached accessory The Cave Dehumidifier [8/4/2024, 3:25:08 PM] [miot] Found cached accessory Mi Rice cooker [8/4/2024, 3:25:08 PM] [miot] Found cached accessory The Cave Air Purifier [8/4/2024, 3:25:08 PM] [miot] Initializing devices [8/4/2024, 3:25:08 PM] [miot] [Mi Rice cooker] Got device configuration, initializing device with name: Mi Rice cooker [8/4/2024, 3:25:08 PM] [miot] [The Cave Dehumidifier] Got device configuration, initializing device with name: The Cave Dehumidifier [8/4/2024, 3:25:08 PM] [miot] [The Cave Standing Fan] Got device configuration, initializing device with name: The Cave Standing Fan [8/4/2024, 3:25:08 PM] [miot] [The Cave Air Purifier] Got device configuration, initializing device with name: The Cave Air Purifier [8/4/2024, 3:25:08 PM] [miot] No accessories to remove! [8/4/2024, 3:25:08 PM] Publishing bridge accessory (name: Homebridge A516, publishInfo: { username: '0E:6E:CC:85:A5:16', port: 51105, pincode: '--', category: 2, bind: [ 'en0', [length]: 1 ], mdns: undefined, addIdentifyingMaterial: true, advertiser: 'bonjour-hap' }). Setup Payload: X-HM://002483AB63N9A Scan this code with your HomeKit app on your iOS device to pair with Homebridge:
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐
│ 456-16-882 │
└────────────┘
[8/4/2024, 3:25:08 PM] Error: listen EADDRINUSE: address already in use :::51105
at Server.setupListenHandle [as _listen2] (node:net:1872:16)
at listenInCluster (node:net:1920:12)
at Server.listen (node:net:2008:7)
at EventedHTTPServer.listen (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:166:20)
at HAPServer.listen (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:380:21)
at Bridge.
Sorry a bit new to this. Is the above what you need?
You should try version 1.7.3 as there was a small bug which could have caused it.
I updated to 1.7.3 but still have the same issues.
I think that your device might be an micloud only device. For that reason on the device config you need to provide your micloud credentials and set the forceMiCloud property to true.
That was it. Needed the force setting to be on.
Good to hear! Thanks for the update!
I am unable to get the latest version 1.7.2 work with Mi Purifier 2S. It will report Air quality and Filter replacement but will not turn on or off. There appears to be issues with polling and Error Method not found.