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

Invalid IP #52

Open
jahnkenneth opened this issue Dec 19, 2020 · 9 comments
Open

Invalid IP #52

jahnkenneth opened this issue Dec 19, 2020 · 9 comments

Comments

@jahnkenneth
Copy link

Hello,

I have a Mi Humidifier 2. I am getting the following error:

MiHumidifier] Invalid config for device #0}. Error: Ivalid IP address undefined
at Object.validateConfig (/home/hoobs/.hoobs/node_modules/homebridge-mi-humidifier/dist/utils.js:18:15)
at /home/hoobs/.hoobs/node_modules/homebridge-mi-humidifier/dist/platform.js:34:25
at Array.forEach ()
at MiHumidifierPlatform.didFinishLaunching (/home/hoobs/.hoobs/node_modules/homebridge-mi-humidifier/dist/platform.js:31:29)
at HomebridgeAPI.emit (events.js:215:7)
at HomebridgeAPI.signalFinished (/usr/local/lib/node_modules/@hoobs/hoobs/node_modules/homebridge/lib/api.js:81:14)
at Server.start (/usr/local/lib/node_modules/@hoobs/hoobs/bridge/server.js:160:18)
at /usr/local/lib/node_modules/@hoobs/hoobs/bridge/cli.js:94:16
at processTicksAndRejections (internal/process/task_queues.js:93:5)

The IP-adress is correct...
My config:

[
{
"platform": "MiHumidifier",
"devices": [
{
"name": "Luftfukter",
"address": "192.168.68.194",
"token": "2e563007425a05924d4e5eb6fb13daa0",
"model": "zhimi.humidifier.ca4",
"updateInterval": 30,
"ledBulb": {
"enabled": true,
"name": "Humidifier LED"
},
"buzzerSwitch": {
"enabled": true,
"name": "Humidifier Buzzer"
},
"temperatureSensor": {
"enabled": true,
"name": "Humidifier Temperature"
},
"humiditySensor": {
"enabled": true,
"name": "Humidifier Humidity"
}
}
]
}
]

@nt0xa
Copy link
Owner

nt0xa commented Dec 22, 2020

Hey @jahnkenneth,
Is it content of "platforms" of your config?

@jahnkenneth
Copy link
Author

jahnkenneth commented Dec 22, 2020 via email

@nt0xa
Copy link
Owner

nt0xa commented Dec 23, 2020

It seems that you use full homebridge config in field that requires to enter only config for specific device.
You configuration should be like this in Hoobs:

iDB 2020-12-23 at 23 43 40

@jahnkenneth
Copy link
Author

jahnkenneth commented Dec 23, 2020

Will try it.
Could you post it as text, so I can just copy and paste? :-)

@nt0xa
Copy link
Owner

nt0xa commented Dec 23, 2020

[
    {
        "name": "Luftfukter",
        "address": "192.168.68.194",
        "token": "2e563007425a05924d4e5eb6fb13daa0",
        "model": "zhimi.humidifier.ca4",
        "updateInterval": 30,
        "ledBulb": {
            "enabled": true,
            "name": "Humidifier LED"
        },
        "buzzerSwitch": {
            "enabled": true,
            "name": "Humidifier Buzzer"
        },
        "humiditySensor": {
            "enabled": true,
            "name": "Humidifier Temperature"
        },
        "temperatureSensor": {
            "enabled": true,
            "name": "Humidifier Humidity"
        }
    }
]

@jahnkenneth
Copy link
Author

23.12.2020, 22:11:32 [MiHumidifier] Fail to get props. SocketError: Timeout
at /home/hoobs/.hoobs/node_modules/miio-api/dist/socket.js:106:39
at done (/home/hoobs/.hoobs/node_modules/miio-api/dist/socket.js:92:13)
at Timeout. (/home/hoobs/.hoobs/node_modules/miio-api/dist/socket.js:106:21)
at listOnTimeout (internal/timers.js:531:17)
at processTimers (internal/timers.js:475:7)

@jahnkenneth
Copy link
Author

jahnkenneth commented Dec 23, 2020

New error message.
The device shows up in Homekit, but no response from it... All valuta shows zero, and it’s not possible to control the device.

@nt0xa
Copy link
Owner

nt0xa commented Dec 24, 2020

Are you sure that IP and token are correct?

@DanoPlurana
Copy link

I ve got exactly the same problem.

[2/15/2021, 01:40:02] [MiHumidifier] [192.168.0.152] Fail to get device properties. SocketError: Timeout

The IP and token are correct for sure. Any ideas?

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

No branches or pull requests

3 participants