Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device added in Home app but not able to operate #608

Open
ramnos opened this issue Jul 7, 2024 · 13 comments
Open

Device added in Home app but not able to operate #608

ramnos opened this issue Jul 7, 2024 · 13 comments
Labels
new device Request new device support

Comments

@ramnos
Copy link

ramnos commented Jul 7, 2024

Device model
MI Air Purifer 2S, MI LED Smart Color Bulb (B22), MI Home Security Camera Basic 1080p

Device name
Air Purifier, LED Smart bulb,

Does the device require a MiCloud connection?
_Yes

Anything special about the device?
Can be controlled with MI Home app and Alexa. Able to import them in Home app (iOS) via MI Login. But not able to control them via Homebridge or Home App (iOS).

@ramnos ramnos added the new device Request new device support label Jul 7, 2024
@merdok
Copy link
Owner

merdok commented Jul 7, 2024

Hi, what does the debug log say?

@ramnos
Copy link
Author

ramnos commented Jul 8, 2024

[7/8/2024, 2:04:17 PM] Error: listen EADDRINUSE: address already in use :::51116
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. (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1378:18)
at step (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:195:27)
at Object.next (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:176:57)
at /usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:169:75
at new Promise ()
[7/8/2024, 2:04:17 PM] Got SIGTERM, shutting down Homebridge...
[7/8/2024, 2:04:17 PM] [miot] [Mi Air Purifier 2] No cached device info found!
[7/8/2024, 2:04:17 PM] [miot] [Mi Air Purifier 2] Model known: zhimi.airpurifier.m1!
[7/8/2024, 2:04:17 PM] [miot] [Mi Air Purifier 2] Initializing device!
[7/8/2024, 2:04:17 PM] [miot] [Mi Air Purifier 2] Creating device instance by model: zhimi.airpurifier.m1!
[7/8/2024, 2:04:17 PM] [miot] [Dialysis Air Purifier] No cached device info found!
[7/8/2024, 2:04:17 PM] [miot] [Dialysis Air Purifier] Model known: zhimi.airpurifier.mb3!
[7/8/2024, 2:04:17 PM] [miot] [Dialysis Air Purifier] Initializing device!
[7/8/2024, 2:04:17 PM] [miot] [Dialysis Air Purifier] Creating device instance by model: zhimi.airpurifier.mb3!
[7/8/2024, 2:04:17 PM] [miot] [Abhay Purifier] No cached device info found!
[7/8/2024, 2:04:17 PM] [miot] [Abhay Purifier] Model known: zhimi.airpurifier.mc1!
[7/8/2024, 2:04:17 PM] [miot] [Abhay Purifier] Initializing device!
[7/8/2024, 2:04:17 PM] [miot] [Abhay Purifier] Creating device instance by model: zhimi.airpurifier.mc1!
[7/8/2024, 2:04:17 PM] [miot] [Living Room] No cached device info found!
[7/8/2024, 2:04:17 PM] [miot] [Living Room] Model known: mijia.camera.v3!
[7/8/2024, 2:04:17 PM] [miot] [Living Room] Initializing device!
[7/8/2024, 2:04:17 PM] [miot] [Living Room] Creating device instance by model: mijia.camera.v3!
[7/8/2024, 2:04:17 PM] [miot] [Dinning Room] No cached device info found!
[7/8/2024, 2:04:17 PM] [miot] [Dinning Room] Model known: mijia.camera.v3!
[7/8/2024, 2:04:17 PM] [miot] [Dinning Room] Initializing device!
[7/8/2024, 2:04:17 PM] [miot] [Dinning Room] Creating device instance by model: mijia.camera.v3!
[7/8/2024, 2:04:17 PM] [miot] [Mi Air Purifier 2] It is a airpurifier device! Found device class at ../modules/airpurifier/devices/zhimi.airpurifier.m1.js!
[7/8/2024, 2:04:17 PM] [miot] [Mi Air Purifier 2] Initializing device services
[7/8/2024, 2:04:17 PM] [miot] [Mi Air Purifier 2] Device services: [
"air-purifier",
"environment",
"filter",
"indicator-light",
"alarm",
"physical-controls-locked",
"air-purifier-favorite"
]
[7/8/2024, 2:04:17 PM] [miot] [Mi Air Purifier 2] Initializing device properties
[7/8/2024, 2:04:17 PM] [miot] [Mi Air Purifier 2] Device properties: [
"air-purifier:on",
"air-purifier:mode",
"environment:relative-humidity",
"environment:pm2.5-density",
"environment:temperature",
"filter:filter-life-level",
"filter:filter-used-time",
"indicator-light:on",
"indicator-light:brightness",
"alarm:alarm",
"physical-controls-locked:physical-controls-locked",
"air-purifier-favorite:favorite-fan-level"
]
[7/8/2024, 2:04:17 PM] [miot] [Mi Air Purifier 2] Initializing device actions
[7/8/2024, 2:04:17 PM] [miot] [Mi Air Purifier 2] Initializing device events
[7/8/2024, 2:04:17 PM] [miot] [Mi Air Purifier 2] Initial properties to monitor: [
"air-purifier:on",
"air-purifier:mode",
"environment:pm2.5-density",
"environment:relative-humidity",
"environment:temperature",
"filter:filter-life-level",
"filter:filter-used-time",
"alarm:alarm",
"indicator-light:on",
"indicator-light:brightness",
"physical-controls-locked:physical-controls-locked"
]
[7/8/2024, 2:04:17 PM] [miot] [Mi Air Purifier 2] Successfully created a AirPurifier device! It is a Xiaomi Mi Air Purifier M1.
[7/8/2024, 2:04:17 PM] [miot] [Mi Air Purifier 2] Found cached accessory for this device! Unregistering it first!
[7/8/2024, 2:04:17 PM] [miot] [Mi Air Purifier 2] Initializing accessory!
[7/8/2024, 2:04:17 PM] [miot] [Mi Air Purifier 2] Creating AirPurifier accessory for device Mi Air Purifier 2!
[7/8/2024, 2:04:17 PM] [miot] [Mi Air Purifier 2] Found accessory class at ../modules/airpurifier/AirPurifierAccessory.js!
[7/8/2024, 2:04:17 PM] [miot] [Mi Air Purifier 2] Successfully created Buzzer wrapper of type Property!
[7/8/2024, 2:04:17 PM] [miot] [Mi Air Purifier 2] Successfully created Led wrapper of type Property!
[7/8/2024, 2:04:17 PM] [miot] [Mi Air Purifier 2] Successfully created Mode wrapper of type Property!
[7/8/2024, 2:04:17 PM] [miot] [Mi Air Purifier 2] Accessory successfully initialized!
[7/8/2024, 2:04:17 PM] [miot] [Mi Air Purifier 2] Final properties to monitor: [
"air-purifier:on",
"air-purifier:mode",
"environment:pm2.5-density",
"environment:relative-humidity",
"environment:temperature",
"filter:filter-life-level",
"filter:filter-used-time",
"alarm:alarm",
"indicator-light:on",
"indicator-light:brightness",
"physical-controls-locked:physical-controls-locked"
]
[7/8/2024, 2:04:17 PM] [miot] [Mi Air Purifier 2] Registering 1 accessories!
[7/8/2024, 2:04:17 PM] [miot] [Mi Air Purifier 2] Everything looks good! Initiating property polling!
[7/8/2024, 2:04:17 PM] [miot] [Mi Air Purifier 2] Error: Missing information required to connect to the MiCloud! Please specify a MiCloud username and password!
[7/8/2024, 2:04:17 PM] [miot] [Mi Air Purifier 2] Stopping connection! Missing or invalid required information!
[7/8/2024, 2:04:17 PM] [miot] [Dialysis Air Purifier] It is a airpurifier device! Found device class at ../modules/airpurifier/devices/zhimi.airpurifier.mb3.js!
[7/8/2024, 2:04:17 PM] [miot] [Dialysis Air Purifier] Initializing device services
[7/8/2024, 2:04:17 PM] [miot] [Dialysis Air Purifier] Device services: [
"air-purifier",
"environment",
"filter",
"alarm",
"indicator-light",
"physical-controls-locked",
"button",
"filter-time",
"motor-speed",
"use-time",
"aqi",
"rfid",
"others"
]
[7/8/2024, 2:04:17 PM] [miot] [Dialysis Air Purifier] Initializing device properties
[7/8/2024, 2:04:17 PM] [miot] [Dialysis Air Purifier] Device properties: [
"air-purifier:fault",
"air-purifier:on",
"air-purifier:fan-level",
"air-purifier:mode",
"environment:pm2.5-density",
"environment:relative-humidity",
"environment:temperature",
"filter:filter-life-level",
"filter:filter-used-time",
"alarm:alarm",
"indicator-light:brightness",
"indicator-light:on",
"physical-controls-locked:physical-controls-locked",
"button:button-pressed",
"filter-time:filter-max-time",
"filter-time:filter-hour-debug",
"motor-speed:motor-strong",
"motor-speed:motor-high",
"motor-speed:motor-med",
"motor-speed:motor-med-l",
"motor-speed:motor-low",
"motor-speed:motor-silent",
"motor-speed:motor-favorite",
"motor-speed:motor-speed",
"motor-speed:motor-set-speed",
"motor-speed:favorite-fan-level",
"use-time:use-time",
"aqi:purify-volume",
"aqi:average-aqi",
"aqi:average-aqi-cnt",
"aqi:aqi-zone",
"aqi:sensor-state",
"aqi:aqi-goodh",
"aqi:aqi-runstate",
"aqi:aqi-state",
"aqi:aqi-updata-heartbeat",
"rfid:rfid-tag",
"rfid:rfid-factory-id",
"rfid:rfid-product-id",
"rfid:rfid-time",
"rfid:rfid-serial-num",
"others:app-extra",
"others:main-channel",
"others:slave-channel",
"others:cola",
"others:buttom-door",
"others:reboot-cause",
"others:hw-version",
"others:iic-error-count",
"others:manual-level",
"others:country-code",
"others:temperature-unit",
"others:device-serial-number"
]
[7/8/2024, 2:04:17 PM] [miot] [Dialysis Air Purifier] Initializing device actions
[7/8/2024, 2:04:17 PM] [miot] [Dialysis Air Purifier] Device actions: [
"filter:reset-filter-life",
"button:toggle",
"button:toggle-mode"
]
[7/8/2024, 2:04:17 PM] [miot] [Dialysis Air Purifier] Initializing device events
[7/8/2024, 2:04:17 PM] [miot] [Dialysis Air Purifier] Device events: [
"button:cild-lock-trigger",
"filter-time:filter-eof",
"filter-time:filter-door-opened",
"others:statusreport"
]
[7/8/2024, 2:04:17 PM] [miot] [Dialysis Air Purifier] Initial properties to monitor: [
"air-purifier:on",
"air-purifier:mode",
"air-purifier:fault",
"air-purifier:fan-level",
"environment:pm2.5-density",
"environment:relative-humidity",
"environment:temperature",
"filter:filter-life-level",
"filter:filter-used-time",
"alarm:alarm",
"indicator-light:on",
"indicator-light:brightness",
"physical-controls-locked:physical-controls-locked",
"motor-speed:favorite-fan-level",
"motor-speed:motor-speed",
"motor-speed:motor-favorite",
"use-time:use-time"
]
[7/8/2024, 2:04:17 PM] [miot] [Dialysis Air Purifier] Successfully created a AirPurifier device! It is a Xiaomi Mi Air Purifier 3H.
[7/8/2024, 2:04:17 PM] [miot] [Dialysis Air Purifier] Found cached accessory for this device! Unregistering it first!
[7/8/2024, 2:04:17 PM] [miot] [Dialysis Air Purifier] Initializing accessory!
[7/8/2024, 2:04:17 PM] [miot] [Dialysis Air Purifier] Creating AirPurifier accessory for device Dialysis Air Purifier!
[7/8/2024, 2:04:17 PM] [miot] [Dialysis Air Purifier] Found accessory class at ../modules/airpurifier/AirPurifierAccessory.js!
[7/8/2024, 2:04:17 PM] [miot] [Dialysis Air Purifier] Successfully created Buzzer wrapper of type Property!
[7/8/2024, 2:04:17 PM] [miot] [Dialysis Air Purifier] Successfully created Led wrapper of type Property!
[7/8/2024, 2:04:17 PM] [miot] [Dialysis Air Purifier] Successfully created Mode wrapper of type Property!
[7/8/2024, 2:04:17 PM] [miot] [Dialysis Air Purifier] Accessory successfully initialized!
[7/8/2024, 2:04:17 PM] [miot] [Dialysis Air Purifier] Final properties to monitor: [
"air-purifier:on",
"air-purifier:mode",
"air-purifier:fault",
"air-purifier:fan-level",
"environment:pm2.5-density",
"environment:relative-humidity",
"environment:temperature",
"filter:filter-life-level",
"filter:filter-used-time",
"alarm:alarm",
"indicator-light:on",
"indicator-light:brightness",
"physical-controls-locked:physical-controls-locked",
"motor-speed:favorite-fan-level",
"motor-speed:motor-speed",
"motor-speed:motor-favorite",
"use-time:use-time"
]
[7/8/2024, 2:04:17 PM] [miot] [Dialysis Air Purifier] Registering 1 accessories!
[7/8/2024, 2:04:17 PM] [miot] [Dialysis Air Purifier] Everything looks good! Initiating property polling!
[7/8/2024, 2:04:17 PM] [miot] [Abhay Purifier] It is a airpurifier device! Found device class at ../modules/airpurifier/devices/zhimi.airpurifier.mc1.js!
[7/8/2024, 2:04:17 PM] [miot] [Abhay Purifier] Initializing device services
[7/8/2024, 2:04:17 PM] [miot] [Abhay Purifier] Device services: [
"air-purifier",
"environment",
"filter",
"indicator-light",
"alarm",
"physical-controls-locked"
]
[7/8/2024, 2:04:17 PM] [miot] [Abhay Purifier] Initializing device properties
[7/8/2024, 2:04:17 PM] [miot] [Abhay Purifier] Device properties: [
"air-purifier:on",
"air-purifier:fan-level",
"air-purifier:mode",
"environment:relative-humidity",
"environment:pm2.5-density",
"environment:temperature",
"filter:filter-life-level",
"filter:filter-left-time",
"indicator-light:on",
"alarm:alarm",
"physical-controls-locked:physical-controls-locked"
]
[7/8/2024, 2:04:17 PM] [miot] [Abhay Purifier] Initializing device actions
[7/8/2024, 2:04:17 PM] [miot] [Abhay Purifier] Initializing device events
[7/8/2024, 2:04:17 PM] [miot] [Abhay Purifier] Initial properties to monitor: [
"air-purifier:on",
"air-purifier:mode",
"air-purifier:fan-level",
"environment:pm2.5-density",
"environment:relative-humidity",
"environment:temperature",
"filter:filter-life-level",
"filter:filter-left-time",
"alarm:alarm",
"indicator-light:on",
"physical-controls-locked:physical-controls-locked"
]
[7/8/2024, 2:04:17 PM] [miot] [Abhay Purifier] Successfully created a AirPurifier device! It is a Xiaomi Air Purifier 2S (Global Version).
[7/8/2024, 2:04:17 PM] [miot] [Abhay Purifier] Found cached accessory for this device! Unregistering it first!
[7/8/2024, 2:04:17 PM] [miot] [Abhay Purifier] Initializing accessory!
[7/8/2024, 2:04:17 PM] [miot] [Abhay Purifier] Creating AirPurifier accessory for device Abhay Purifier!
[7/8/2024, 2:04:17 PM] [miot] [Abhay Purifier] Found accessory class at ../modules/airpurifier/AirPurifierAccessory.js!
[7/8/2024, 2:04:17 PM] [miot] [Abhay Purifier] Successfully created Buzzer wrapper of type Property!
[7/8/2024, 2:04:17 PM] [miot] [Abhay Purifier] Successfully created Led wrapper of type Property!
[7/8/2024, 2:04:17 PM] [miot] [Abhay Purifier] Successfully created Mode wrapper of type Property!
[7/8/2024, 2:04:17 PM] [miot] [Abhay Purifier] Accessory successfully initialized!
[7/8/2024, 2:04:17 PM] [miot] [Abhay Purifier] Final properties to monitor: [
"air-purifier:on",
"air-purifier:mode",
"air-purifier:fan-level",
"environment:pm2.5-density",
"environment:relative-humidity",
"environment:temperature",
"filter:filter-life-level",
"filter:filter-left-time",
"alarm:alarm",
"indicator-light:on",
"physical-controls-locked:physical-controls-locked"
]
[7/8/2024, 2:04:17 PM] [miot] [Abhay Purifier] Registering 1 accessories!
[7/8/2024, 2:04:17 PM] [miot] [Abhay Purifier] Everything looks good! Initiating property polling!
[7/8/2024, 2:04:17 PM] [miot] [Abhay Purifier] Error: Missing information required to connect to the MiCloud! Please specify a MiCloud username and password!
[7/8/2024, 2:04:17 PM] [miot] [Abhay Purifier] Stopping connection! Missing or invalid required information!
[7/8/2024, 2:04:17 PM] [miot] [Living Room] Did not find device class! Trying to identify device from miot spec!
[7/8/2024, 2:04:17 PM] [miot] [Dinning Room] Did not find device class! Trying to identify device from miot spec!
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Found cached device information: mijia.camera.v3
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Model known: mijia.camera.v3!
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Initializing device!
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Creating device instance by model: mijia.camera.v3!
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Found cached device information: yeelink.light.color7
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Model known: yeelink.light.color7!
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Initializing device!
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Creating device instance by model: yeelink.light.color7!
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Found cached device information: yeelink.light.color7
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Model known: yeelink.light.color7!
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Initializing device!
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Creating device instance by model: yeelink.light.color7!
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Did not find device class! Trying to identify device from miot spec!
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Did not find device class! Trying to identify device from miot spec!
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Did not find device class! Trying to identify device from miot spec!
[7/8/2024, 2:04:17 PM] [miot] [Living Room] Found cached miot spec for device: mijia.camera.v3
[7/8/2024, 2:04:17 PM] [miot] [Living Room] Parsing miot spec!
[7/8/2024, 2:04:17 PM] [miot] [Living Room] Using camera type and Camera description for device identification!
[7/8/2024, 2:04:17 PM] [miot] [Living Room] Got device type Camera from spec!
[7/8/2024, 2:04:17 PM] [miot] [Living Room] Found device type class at ../modules/camera/CameraDevice.js!
[7/8/2024, 2:04:17 PM] [miot] [Living Room] Using module class for device type Camera, indentified by miot spec! Not all features might work!
[7/8/2024, 2:04:17 PM] [miot] [Living Room] Initializing device services
[7/8/2024, 2:04:17 PM] [miot] [Living Room] Device services: [
"camera-control",
"camera-stream-for-amazon-alexa",
"camera-stream-for-google-home",
"p2p-stream",
"memory-card-management"
]
[7/8/2024, 2:04:17 PM] [miot] [Living Room] Initializing device properties
[7/8/2024, 2:04:17 PM] [miot] [Living Room] Device properties: [
"camera-control:on",
"camera-control:image-rollover",
"camera-control:night-shot",
"camera-control:wdr-mode",
"camera-control:motion-tracking",
"camera-control:recording-mode",
"camera-stream-for-amazon-alexa:stream-status",
"camera-stream-for-amazon-alexa:video-codec-type",
"camera-stream-for-amazon-alexa:video-attribute",
"camera-stream-for-amazon-alexa:audio-codec-type",
"camera-stream-for-amazon-alexa:audio-attribute",
"camera-stream-for-amazon-alexa:authorization-type",
"camera-stream-for-amazon-alexa:stream-address",
"camera-stream-for-amazon-alexa:image-snapshot",
"camera-stream-for-amazon-alexa:expiration-time",
"camera-stream-for-google-home:video-codec-type",
"camera-stream-for-google-home:video-attribute",
"camera-stream-for-google-home:audio-codec-type",
"camera-stream-for-google-home:audio-attribute",
"camera-stream-for-google-home:stream-address"
]
[7/8/2024, 2:04:17 PM] [miot] [Living Room] Initializing device actions
[7/8/2024, 2:04:17 PM] [miot] [Living Room] Device actions: [
"camera-stream-for-amazon-alexa:start-rtsp-stream",
"camera-stream-for-amazon-alexa:stop-stream",
"camera-stream-for-amazon-alexa:get-stream-configuration",
"camera-stream-for-google-home:start-hls-stream",
"camera-stream-for-google-home:stop-stream",
"p2p-stream:start-p2p-stream",
"p2p-stream:stop-stream",
"memory-card-management:format",
"memory-card-management:pop-up"
]
[7/8/2024, 2:04:17 PM] [miot] [Living Room] Initializing device events
[7/8/2024, 2:04:17 PM] [miot] [Living Room] Initial properties to monitor: [
"camera-control:on"
]
[7/8/2024, 2:04:17 PM] [miot] [Living Room] Successfully created a Camera device! It is a Unknown camera device.
[7/8/2024, 2:04:17 PM] [miot] [Living Room] Found cached accessory for this device! Unregistering it first!
[7/8/2024, 2:04:17 PM] [miot] [Living Room] Initializing accessory!
[7/8/2024, 2:04:17 PM] [miot] [Living Room] Creating Camera accessory for device Living Room!
[7/8/2024, 2:04:17 PM] [miot] [Living Room] Found accessory class at ../modules/camera/CameraAccessory.js!
[7/8/2024, 2:04:17 PM] [miot] [Living Room] Accessory successfully initialized!
[7/8/2024, 2:04:17 PM] [miot] [Living Room] Final properties to monitor: [
"camera-control:on"
]
[7/8/2024, 2:04:17 PM] [miot] [Living Room] Registering 1 accessories!
[7/8/2024, 2:04:17 PM] [miot] [Living Room] Everything looks good! Initiating property polling!
[7/8/2024, 2:04:17 PM] [miot] [Dinning Room] Found cached miot spec for device: mijia.camera.v3
[7/8/2024, 2:04:17 PM] [miot] [Dinning Room] Parsing miot spec!
[7/8/2024, 2:04:17 PM] [miot] [Dinning Room] Using camera type and Camera description for device identification!
[7/8/2024, 2:04:17 PM] [miot] [Dinning Room] Got device type Camera from spec!
[7/8/2024, 2:04:17 PM] [miot] [Dinning Room] Found device type class at ../modules/camera/CameraDevice.js!
[7/8/2024, 2:04:17 PM] [miot] [Dinning Room] Using module class for device type Camera, indentified by miot spec! Not all features might work!
[7/8/2024, 2:04:17 PM] [miot] [Dinning Room] Initializing device services
[7/8/2024, 2:04:17 PM] [miot] [Dinning Room] Device services: [
"camera-control",
"camera-stream-for-amazon-alexa",
"camera-stream-for-google-home",
"p2p-stream",
"memory-card-management"
]
[7/8/2024, 2:04:17 PM] [miot] [Dinning Room] Initializing device properties
[7/8/2024, 2:04:17 PM] [miot] [Dinning Room] Device properties: [
"camera-control:on",
"camera-control:image-rollover",
"camera-control:night-shot",
"camera-control:wdr-mode",
"camera-control:motion-tracking",
"camera-control:recording-mode",
"camera-stream-for-amazon-alexa:stream-status",
"camera-stream-for-amazon-alexa:video-codec-type",
"camera-stream-for-amazon-alexa:video-attribute",
"camera-stream-for-amazon-alexa:audio-codec-type",
"camera-stream-for-amazon-alexa:audio-attribute",
"camera-stream-for-amazon-alexa:authorization-type",
"camera-stream-for-amazon-alexa:stream-address",
"camera-stream-for-amazon-alexa:image-snapshot",
"camera-stream-for-amazon-alexa:expiration-time",
"camera-stream-for-google-home:video-codec-type",
"camera-stream-for-google-home:video-attribute",
"camera-stream-for-google-home:audio-codec-type",
"camera-stream-for-google-home:audio-attribute",
"camera-stream-for-google-home:stream-address"
]
[7/8/2024, 2:04:17 PM] [miot] [Dinning Room] Initializing device actions
[7/8/2024, 2:04:17 PM] [miot] [Dinning Room] Device actions: [
"camera-stream-for-amazon-alexa:start-rtsp-stream",
"camera-stream-for-amazon-alexa:stop-stream",
"camera-stream-for-amazon-alexa:get-stream-configuration",
"camera-stream-for-google-home:start-hls-stream",
"camera-stream-for-google-home:stop-stream",
"p2p-stream:start-p2p-stream",
"p2p-stream:stop-stream",
"memory-card-management:format",
"memory-card-management:pop-up"
]
[7/8/2024, 2:04:17 PM] [miot] [Dinning Room] Initializing device events
[7/8/2024, 2:04:17 PM] [miot] [Dinning Room] Initial properties to monitor: [
"camera-control:on"
]
[7/8/2024, 2:04:17 PM] [miot] [Dinning Room] Successfully created a Camera device! It is a Unknown camera device.
[7/8/2024, 2:04:17 PM] [miot] [Dinning Room] Found cached accessory for this device! Unregistering it first!
[7/8/2024, 2:04:17 PM] [miot] [Dinning Room] Initializing accessory!
[7/8/2024, 2:04:17 PM] [miot] [Dinning Room] Creating Camera accessory for device Dinning Room!
[7/8/2024, 2:04:17 PM] [miot] [Dinning Room] Found accessory class at ../modules/camera/CameraAccessory.js!
[7/8/2024, 2:04:17 PM] [miot] [Dinning Room] Accessory successfully initialized!
[7/8/2024, 2:04:17 PM] [miot] [Dinning Room] Final properties to monitor: [
"camera-control:on"
]
[7/8/2024, 2:04:17 PM] [miot] [Dinning Room] Registering 1 accessories!
[7/8/2024, 2:04:17 PM] [miot] [Dinning Room] Everything looks good! Initiating property polling!
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Found cached miot spec for device: mijia.camera.v3
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Parsing miot spec!
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Using camera type and Camera description for device identification!
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Got device type Camera from spec!
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Found device type class at ../modules/camera/CameraDevice.js!
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Using module class for device type Camera, indentified by miot spec! Not all features might work!
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Initializing device services
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Device services: [
"camera-control",
"camera-stream-for-amazon-alexa",
"camera-stream-for-google-home",
"p2p-stream",
"memory-card-management"
]
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Initializing device properties
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Device properties: [
"camera-control:on",
"camera-control:image-rollover",
"camera-control:night-shot",
"camera-control:wdr-mode",
"camera-control:motion-tracking",
"camera-control:recording-mode",
"camera-stream-for-amazon-alexa:stream-status",
"camera-stream-for-amazon-alexa:video-codec-type",
"camera-stream-for-amazon-alexa:video-attribute",
"camera-stream-for-amazon-alexa:audio-codec-type",
"camera-stream-for-amazon-alexa:audio-attribute",
"camera-stream-for-amazon-alexa:authorization-type",
"camera-stream-for-amazon-alexa:stream-address",
"camera-stream-for-amazon-alexa:image-snapshot",
"camera-stream-for-amazon-alexa:expiration-time",
"camera-stream-for-google-home:video-codec-type",
"camera-stream-for-google-home:video-attribute",
"camera-stream-for-google-home:audio-codec-type",
"camera-stream-for-google-home:audio-attribute",
"camera-stream-for-google-home:stream-address"
]
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Initializing device actions
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Device actions: [
"camera-stream-for-amazon-alexa:start-rtsp-stream",
"camera-stream-for-amazon-alexa:stop-stream",
"camera-stream-for-amazon-alexa:get-stream-configuration",
"camera-stream-for-google-home:start-hls-stream",
"camera-stream-for-google-home:stop-stream",
"p2p-stream:start-p2p-stream",
"p2p-stream:stop-stream",
"memory-card-management:format",
"memory-card-management:pop-up"
]
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Initializing device events
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Initial properties to monitor: [
"camera-control:on"
]
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Successfully created a Camera device! It is a Unknown camera device.
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Found cached accessory for this device! Unregistering it first!
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Initializing accessory!
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Creating Camera accessory for device Abeer Room!
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Found accessory class at ../modules/camera/CameraAccessory.js!
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Accessory successfully initialized!
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Final properties to monitor: [
"camera-control:on"
]
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Registering 1 accessories!
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Everything looks good! Initiating property polling!
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Found cached miot spec for device: yeelink.light.color7
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Parsing miot spec!
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Using light type and Light description for device identification!
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Got device type Light from spec!
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Found device type class at ../modules/light/LightDevice.js!
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Using module class for device type Light, indentified by miot spec! Not all features might work!
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Initializing device services
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Device services: [
"light"
]
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Initializing device properties
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Device properties: [
"light:on",
"light:brightness",
"light:color-temperature",
"light:color",
"light:mode"
]
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Initializing device actions
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Device actions: [
"light:toggle"
]
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Initializing device events
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Initial properties to monitor: [
"light:on",
"light:brightness",
"light:color-temperature",
"light:color",
"light:mode"
]
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Successfully created a Light device! It is a Unknown light device.
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Found cached accessory for this device! Unregistering it first!
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Initializing accessory!
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Creating Light accessory for device Light 1!
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Found accessory class at ../modules/light/LightAccessory.js!
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Successfully created Light 1 custom service of type Light!
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Successfully created Mode wrapper of type Property!
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Accessory successfully initialized!
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Final properties to monitor: [
"light:on",
"light:brightness",
"light:color-temperature",
"light:color",
"light:mode"
]
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Registering 1 accessories!
[7/8/2024, 2:04:17 PM] [miot] [Light 1] Everything looks good! Initiating property polling!
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Found cached miot spec for device: yeelink.light.color7
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Parsing miot spec!
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Using light type and Light description for device identification!
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Got device type Light from spec!
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Found device type class at ../modules/light/LightDevice.js!
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Using module class for device type Light, indentified by miot spec! Not all features might work!
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Initializing device services
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Device services: [
"light"
]
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Initializing device properties
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Device properties: [
"light:on",
"light:brightness",
"light:color-temperature",
"light:color",
"light:mode"
]
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Initializing device actions
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Device actions: [
"light:toggle"
]
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Initializing device events
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Initial properties to monitor: [
"light:on",
"light:brightness",
"light:color-temperature",
"light:color",
"light:mode"
]
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Successfully created a Light device! It is a Unknown light device.
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Found cached accessory for this device! Unregistering it first!
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Initializing accessory!
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Creating Light accessory for device Light 2!
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Found accessory class at ../modules/light/LightAccessory.js!
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Successfully created Light 2 custom service of type Light!
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Successfully created Mode wrapper of type Property!
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Accessory successfully initialized!
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Final properties to monitor: [
"light:on",
"light:brightness",
"light:color-temperature",
"light:color",
"light:mode"
]
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Registering 1 accessories!
[7/8/2024, 2:04:17 PM] [miot] [Light 2] Everything looks good! Initiating property polling!
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Device found! Setting up miot device from local connection!
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Device firmware: 4.0.7_0089
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Connected to device: mijia.camera.v3
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Doing initial property fetch.
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Preparing property poll!
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Splitting properties into chunks. Number of chunks: 1. Chunk size: 14
[7/8/2024, 2:04:17 PM] [miot] [Abeer Room] Successfully saved device info!
follow-redirects options {
maxRedirects: 21,
maxBodyLength: Infinity,
protocol: 'https:',
path: '/homebridge/verified/latest/verified-plugins.json',
method: 'GET',
headers: [Object: null prototype] {
Accept: 'application/json, text/plain, /',
'User-Agent': 'homebridge-config-ui-x',
'Accept-Encoding': 'gzip, compress, deflate, br'
},
agents: { http: undefined, https: null },
auth: undefined,
family: undefined,
beforeRedirect: [Function: dispatchBeforeRedirect],
beforeRedirects: { proxy: [Function: beforeRedirect] },
hostname: 'raw.githubusercontent.com',
port: '',
agent: null,
nativeProtocols: {
'http:': {
_connectionListener: [Function: connectionListener],
METHODS: [Array],
STATUS_CODES: [Object],
Agent: [Function],
ClientRequest: [Function: ClientRequest],
IncomingMessage: [Function: IncomingMessage],
OutgoingMessage: [Function: OutgoingMessage],
Server: [Function: Server],
ServerResponse: [Function: ServerResponse],
createServer: [Function: createServer],
validateHeaderName: [Function: _node_internal],
validateHeaderValue: [Function: _node_internal],
get: [Function: get],
request: [Function: request],
setMaxIdleHTTPParsers: [Function: setMaxIdleHTTPParsers],
maxHeaderSize: [Getter],
globalAgent: [Getter/Setter]
},
'https:': {
Agent: [Function: Agent],
globalAgent: [Agent],
Server: [Function: Server],
createServer: [Function: createServer],
get: [Function: get],
request: [Function: request]
}
}
} +0ms
[7/8/2024, 2:04:18 PM] [Homebridge UI] Homebridge UI v4.56.4 is listening on :: port 8581
socket.io:server initializing namespace / +0ms
socket.io:server creating engine.io instance with opts {"allowEIO3":true,"cors":{"origin":["http://localhost:8080","http://localhost:4200"],"credentials":true},"cleanupEmptyChildNamespaces":false,"path":"/socket.io"} +0ms
socket.io:server attaching client serving req handler +1ms
socket.io:server initializing namespace /app +0ms
socket.io:server initializing namespace /plugins +2ms
socket.io:server initializing namespace /accessories +1ms
socket.io:server initializing namespace /child-bridges +0ms
socket.io:server initializing namespace /plugins/settings-ui +1ms
socket.io:server initializing namespace /status +0ms
socket.io:server initializing namespace /platform-tools/terminal +1ms
socket.io:server initializing namespace /backup +0ms
socket.io:server initializing namespace /log +0ms
[7/8/2024, 2:04:19 PM] [Homebridge UI] Error: listen EADDRINUSE: address already in use :::8581
[7/8/2024, 2:04:19 PM] [Homebridge UI] Another process or service on this host is using port 8581.
[7/8/2024, 2:04:19 PM] [Homebridge UI] Please stop the other service or change the port you have assigned to homebridge-config-ui-x.
[7/8/2024, 2:04:19 PM] [Homebridge UI] Ending process now.
follow-redirects options {
maxRedirects: 21,
maxBodyLength: Infinity,
protocol: 'https:',
path: '/checkin',
method: 'POST',
headers: [Object: null prototype] {
Accept: 'application/json, text/plain, /',
'Content-Type': 'application/x-protobuf',
'User-Agent': 'axios/1.7.2',
'Content-Length': '47',
'Accept-Encoding': 'gzip, compress, deflate, br'
},
agents: { http: undefined, https: undefined },
auth: undefined,
family: undefined,
beforeRedirect: [Function: dispatchBeforeRedirect],
beforeRedirects: { proxy: [Function: beforeRedirect] },
hostname: 'android.clients.google.com',
port: '',
agent: undefined,
nativeProtocols: {
'http:': {
_connectionListener: [Function: connectionListener],
METHODS: [Array],
STATUS_CODES: [Object],
Agent: [Function],
ClientRequest: [Function: ClientRequest],
IncomingMessage: [Function: IncomingMessage],
OutgoingMessage: [Function: OutgoingMessage],
Server: [Function: Server],
ServerResponse: [Function: ServerResponse],
createServer: [Function: createServer],
validateHeaderName: [Function: _node_internal],
validateHeaderValue: [Function: _node_internal],
get: [Function: get],
request: [Function: request],
setMaxIdleHTTPParsers: [Function: setMaxIdleHTTPParsers],
maxHeaderSize: [Getter],
globalAgent: [Getter/Setter]
},
'https:': {
Agent: [Function: Agent],
globalAgent: [Agent],
Server: [Function: Server],
createServer: [Function: createServer],
get: [Function: get],
request: [Function: request]
}
}
} +0ms

@ramnos
Copy link
Author

ramnos commented Jul 8, 2024

changed port to 8582. even though user and pass are correct

still getting this

[7/8/2024, 2:10:38 PM] Error: listen EADDRINUSE: address already in use :::51116
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. (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1378:18)
at step (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:195:27)
at Object.next (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:176:57)
at /usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:169:75
at new Promise ()

[7/8/2024, 2:10:39 PM] [miot] [Mi Air Purifier 2] Error: Missing information required to connect to the MiCloud! Please specify a MiCloud username and password!
[7/8/2024, 2:10:39 PM] [miot] [Mi Air Purifier 2] Stopping connection! Missing or invalid required information!

@merdok
Copy link
Owner

merdok commented Jul 8, 2024

As per log:

Error: Missing information required to connect to the MiCloud! Please specify a MiCloud username and password!

You did not specify the micloud credentials which are required for this device.

@ramnos
Copy link
Author

ramnos commented Jul 8, 2024

where shall i mention it? I added devices using MI cloud user and pass. Any place else I need to mention?

@merdok
Copy link
Owner

merdok commented Jul 8, 2024

Just check the README, there are dedicated configuration entries for that, which are also available in the ui config interface.

@ramnos
Copy link
Author

ramnos commented Jul 8, 2024

After putting user and pass

[7/8/2024, 3:16:47 PM] [miot] [Light 1] Registering 1 accessories!
[7/8/2024, 3:16:47 PM] [miot] [Light 1] Everything looks good! Initiating property polling!
[7/8/2024, 3:16:47 PM] [miot] [Abhay Purifier] (MiCloud) Login step 1
[7/8/2024, 3:16:48 PM] [miot] [Abeer Room] (MiCloud) Login step 1
[7/8/2024, 3:16:48 PM] [miot] [Abhay Purifier] (MiCloud) Login step 2
[7/8/2024, 3:16:48 PM] [miot] [Abhay Purifier] Connection to MiCloud device failed!
[7/8/2024, 3:16:48 PM] [miot] [Abhay Purifier] Error: Login step 2 failed
[7/8/2024, 3:16:48 PM] [miot] [Abhay Purifier] Error during connection! Retrying in 60 seconds!
[7/8/2024, 3:16:48 PM] [miot] [Abeer Room] (MiCloud) Login step 2
[7/8/2024, 3:16:48 PM] [miot] [Abeer Room] Connection to MiCloud device failed!
[7/8/2024, 3:16:48 PM] [miot] [Abeer Room] Error: Login step 2 failed
[7/8/2024, 3:16:48 PM] [miot] [Abeer Room] Error during connection! Retrying in 60 seconds!

@ramnos
Copy link
Author

ramnos commented Jul 8, 2024

[7/8/2024, 3:16:48 PM] [Homebridge UI] Error: listen EADDRINUSE: address already in use :::8581
[7/8/2024, 3:16:48 PM] [Homebridge UI] Another process or service on this host is using port 8581.
[7/8/2024, 3:16:48 PM] [Homebridge UI] Please stop the other service or change the port you have assigned to homebridge-config-ui-x.
[7/8/2024, 3:16:48 PM] [Homebridge UI] Ending process now.

@merdok
Copy link
Owner

merdok commented Jul 8, 2024

Seems the micloud credentials entered are not correct. You are getting a login error.

@ramnos
Copy link
Author

ramnos commented Jul 8, 2024

Issue # 1 - User and password are correct still getting error for ONLY 1 device. Remaining 2 devices not giving user/pass error

[7/8/2024, 3:58:30 PM] [miot] [Abhay Purifier] Error: The device with id 287661738 was not found in your MiCloud account on the in server! Please make sure that the specified MiCloud account and country is correct!
[7/8/2024, 3:58:30 PM] [miot] [Abhay Purifier] Stopping connection! Missing or invalid required information!

Issue #2 - [7/8/2024, 3:58:29 PM] [Homebridge UI] Error: listen EADDRINUSE: address already in use :::8581
[7/8/2024, 3:58:29 PM] [Homebridge UI] Another process or service on this host is using port 8581.
[7/8/2024, 3:58:29 PM] [Homebridge UI] Please stop the other service or change the port you have assigned to homebridge-config-ui-x.
[7/8/2024, 3:58:29 PM] [Homebridge UI] Ending process now.

Issue # 3 - [7/8/2024, 4:00:40 PM] [miot] [Light 1] Poll failed 4 times in a row! Stopping polling and trying to reconnect! Reason: Error: Call to device timed out
[7/8/2024, 4:00:40 PM] [miot] [Abeer Room] Poll failed 4 times in a row! Stopping polling and trying to reconnect! Reason: Error: Call to device timed out
[7/8/2024, 4:00:40 PM] [miot] [Light 2] Poll failed 4 times in a row! Stopping polling and trying to reconnect! Reason: Error: Call to device timed out

@merdok
Copy link
Owner

merdok commented Jul 8, 2024

Then I guess you specified the wrong country. You need to specify the correct country which your device is registered on.

@ramnos
Copy link
Author

ramnos commented Jul 8, 2024

It’s the right country.

Any comments on the other 2 issues I mentioned

@merdok
Copy link
Owner

merdok commented Jul 8, 2024

Then you would need to re-validate that your device is on the in(India?) server.

Issue 2 is not related to the plugin

Issue 3, is probably also a device which requires a micloud connection, so you would have to add the forceMiCloud property to that device's micloud configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new device Request new device support
Projects
None yet
Development

No branches or pull requests

2 participants