Closed santiagolorenzo-uy closed 5 months ago
Might be that this is a micloud only device. Did you try to specify your micloud credentials in the config and set the forceMiCloud property to true?
Might be that this is a micloud only device. Did you try to specify your micloud credentials in the config and set the forceMiCloud property to true?
Hello, thanks to take the time to respond. Yes I put mycloud account, this is mandatory as I know. And yes I turn on "force mycloud", it start to gave me errors everywhere in the log
What errors did it gave you? You need to be more specific, best is that you post a deepDebugLog
during startup of homebridge so we can see what is happening. https://github.com/merdok/homebridge-miot?tab=readme-ov-file#debug
This is the error that gave me when I put de MiCloud info, is strange because it takes all the info automatically from the account. I was thinking that maybe the country is the guilty option, because to configure the plug I must put singapur in the country, I tried "SG" in the country option but it says "CN" in the error.
If your device is on the Singapure server then you need to specify that in your MiCloud connection settings. The error simply states that the specified device cannot be found on the china server.
But I did that and doesn’t work. But I solved, I start try another countries till one work (tw) thanks for everyone time. I am a little stupid at this things
glad that it works now! thanks for the info
Describe the bug Homebridge detect the plug and install it but puts two devices in the accesory list(xiaomi smart plug 2 and a "LED"). It doesn't work at all when I try to turn on the device.
Expected behavior when I make click on the device in home bridge (or even in the HomeKit app) the plug doesn't turn on or off.
Your config.json this?
{ "name": "Xiaomi Smart Plug 2 (Wi-Fi)", "ip": "XXX.XXX.XXX.XXX", "token": "this is private?", "deviceId": "this is private?", "model": "cuco.plug.v2eur", "pollingInterval": 10, "deepDebugLog": false, "silentLog": false, "deviceEnabled": true, "buzzerControl": true, "ledControl": true, "childLockControl": true, "modeControl": true }
Debug log NOTHING HAPPENED, NO ERRORS OCCURED, but this is what I got:
[5/27/2024, 9:09:14 PM] [miot] [Xiaomi Smart Plug 2 (Wi-Fi)] Using module class for device type Outlet, indentified by miot spec! Not all features might work! [5/27/2024, 9:09:14 PM] [miot] [Xiaomi Smart Plug 2 (Wi-Fi)] Initializing device services [5/27/2024, 9:09:14 PM] [miot] [Xiaomi Smart Plug 2 (Wi-Fi)] Device services: [ "switch", "physical-controls-locked", "power-consumption", "indicator-light", "delay", "charging-protection", "cycle", "max-power-limit" ] [5/27/2024, 9:09:14 PM] [miot] [Xiaomi Smart Plug 2 (Wi-Fi)] Initializing device properties [5/27/2024, 9:09:14 PM] [miot] [Xiaomi Smart Plug 2 (Wi-Fi)] Device properties: [ "switch:on", "switch:default-power-on-state", "switch:fault", "physical-controls-locked:physical-controls-locked", "power-consumption:power-consumption", "power-consumption:electric-power", "indicator-light:on", "delay:delay", "delay:delay-time", "delay:delay-remain-time", "charging-protection:on", "charging-protection:power", "charging-protection:protect-time", "cycle:status", "cycle:data-value", "max-power-limit:on", "max-power-limit:power" ] [5/27/2024, 9:09:14 PM] [miot] [Xiaomi Smart Plug 2 (Wi-Fi)] Initializing device actions [5/27/2024, 9:09:14 PM] [miot] [Xiaomi Smart Plug 2 (Wi-Fi)] Device actions: [ "switch:toggle" ] [5/27/2024, 9:09:14 PM] [miot] [Xiaomi Smart Plug 2 (Wi-Fi)] Successfully created a Outlet device! It is a Unknown outlet device. [5/27/2024, 9:09:14 PM] [miot] [Xiaomi Smart Plug 2 (Wi-Fi)] Initializing accessory! [5/27/2024, 9:09:14 PM] [miot] [Xiaomi Smart Plug 2 (Wi-Fi)] Accessory successfully initialized! [5/27/2024, 9:09:14 PM] [miot] [Xiaomi Smart Plug 2 (Wi-Fi)] Registering 1 accessories! [5/27/2024, 9:09:14 PM] [miot] [Xiaomi Smart Plug 2 (Wi-Fi)] Everything looks good! Initiating property polling! Screenshots If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.