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

Xiaomi deerma support request (python-miio already support this model) #19

Closed
r4zr1 opened this issue Dec 7, 2019 · 18 comments
Closed
Labels
enhancement New feature or request

Comments

@r4zr1
Copy link

r4zr1 commented Dec 7, 2019

Hi!
Could you please add support to xiaomi deerma Humidifier https://www.xiaomiyoupin.com/detail?gid=109486 when you have free time?

python-miio already supports this model
rytilahti/python-miio#533

@r4zr1
Copy link
Author

r4zr1 commented Dec 7, 2019

nah, it's another library
Can you switch to not dead library?

@haiyeung
Copy link

support! i buy this humidifer recently

@Aekung
Copy link

Aekung commented Jan 26, 2020

Hope to see update on this as well since this model "mjjsq" is already supported by python-miio.

Looking forward to the update if possible.

Thank you.

@earlywaff
Copy link

Looking forward to the update if possible!
TNX!)

@PietroLubini
Copy link
Contributor

I've added support for "deerma.humidifier.mjjsq". @russtone, create a branch for me to push the changes, please.

@Donni1966
Copy link

Hey that cool, @PietroLubini.
i've get the new Humidifier yesterday. Wait for support to integrate this in my hombrigde installation.

@nt0xa
Copy link
Owner

nt0xa commented Apr 19, 2020

Hi @PietroLubini, you can create a pull request and I will merge it

@Aekung
Copy link

Aekung commented Apr 21, 2020

Hi,

May I know how to update the plugin to support deerma as done by @Donni1966 ?

Thank you and looking forward to hearing from you.

nt0xa added a commit that referenced this issue Apr 21, 2020
* Add support for "deerma.humidifier.mjjsq".
Issue: #19

* Review comments > Add support for "deerma.humidifier.mjjsq". Issue: #19

* Review comments > Add support for "deerma.humidifier.mjjsq". Issue: #19

* Review comments > Add support for "deerma.humidifier.mjjsq". Issue: #19

* Fix MODES import

Co-authored-by: Anton Prokhorov <russtone@yandex.ru>
@nt0xa
Copy link
Owner

nt0xa commented Apr 21, 2020

Hi, I've just merged @PietroLubini pull request and released new version

@Aekung
Copy link

Aekung commented Apr 21, 2020

Hi, I've just merged @PietroLubini pull request and released new version

Thanks. I'm updating the plugin =)

@Donni1966
Copy link

Hi.

  1. very thanx to support the ne model.

i updated and i get humintity an Temp and an control, but in the log of the HB is see this

at Object.reject (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:475:13)
at DeviceInfo.onMessage (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:374:8)
at Socket.<anonymous> (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:160:11)
at Socket.emit (events.js:310:20)
at UDP.onMessage [as onmessage] (dgram.js:924:8) {

code: -30012
}
[4/21/2020, 11:25:34] [Luftbefeuchter Offie] getWaterLevel Error: busy.
at Object.reject (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:475:13)
at DeviceInfo.onMessage (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:374:8)
at Socket. (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:160:11)
at Socket.emit (events.js:310:20)
at UDP.onMessage [as onmessage] (dgram.js:924:8) {
code: -30012
}
[4/21/2020, 11:25:34] [Luftbefeuchter Offie] getRotationSpeed Error: busy.
at Object.reject (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:475:13)
at DeviceInfo.onMessage (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:374:8)
at Socket. (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:160:11)
at Socket.emit (events.js:310:20)
at UDP.onMessage [as onmessage] (dgram.js:924:8) {
code: -30012
}

any idear?

@nt0xa
Copy link
Owner

nt0xa commented Apr 21, 2020

This looks like #21, I've tried to fix this error, but I can't reproduce it with my v1 model. It will be helpful if you can collect some debug logs by running homebridge like this:

DEBUG=miio*,thing* homebridge -D

@Donni1966
Copy link

Puh :-)
try my best

here some log details
Apr 21 11:56:20 Homebridge01 homebridge[20042]: 2020-04-21T09:56:20.851Z miio:packet <- <Buffer 21 31 00 40 00 00 00 00 0e 50 86 9e 00 02 36 ec b6 3f 04 40 2b e5 2e c6 54 e4 4e 4e 4e 15 15 60>
Apr 21 11:56:20 Homebridge01 homebridge[20042]: 2020-04-21T09:56:20.851Z miio:packet <- <Buffer 21 31 00 40 00 00 00 00 0e 50 86 9e 00 02 36 ec b6 3f 04 40 2b e5 2e c6 54 e4 4e 4e 4e 15 15 60>
Apr 21 11:56:20 Homebridge01 homebridge[20042]: 2020-04-21T09:56:20.852Z thing:miio:240158366 <- Message: {"id":113,"result":[0]}
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.003Z miio:packet <- <Buffer 21 31 00 60 00 00 00 00 0e 50 86 9e 00 02 36 ec e0 4b 81 00 f2 01 1d 26 e3 9e 10 ca c1 16 4d c6>
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.003Z miio:packet <- <Buffer 21 31 00 60 00 00 00 00 0e 50 86 9e 00 02 36 ec e0 4b 81 00 f2 01 1d 26 e3 9e 10 ca c1 16 4d c6>
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.004Z thing:miio:240158366 <- Message: {"id":122,"error":{"code":-30012,"message":"busy."}}
Apr 21 11:56:21 Homebridge01 homebridge[20042]: [4/21/2020, 11:56:21] [Luftbefeuchter Offie] getCurrentHumidifierState Error: busy.
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Object.reject (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:475:13)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at DeviceInfo.onMessage (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:374:8)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Socket. (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:160:11)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Socket.emit (events.js:310:20)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at UDP.onMessage [as onmessage] (dgram.js:924:8) {
Apr 21 11:56:21 Homebridge01 homebridge[20042]: code: -30012
Apr 21 11:56:21 Homebridge01 homebridge[20042]: }
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.071Z miio:packet <- <Buffer 21 31 00 60 00 00 00 00 0e 50 86 9e 00 02 36 ec 4a fe 7b 55 99 07 8b a8 db f7 0a 4f 60 79 a5 a3>
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.071Z miio:packet <- <Buffer 21 31 00 60 00 00 00 00 0e 50 86 9e 00 02 36 ec 4a fe 7b 55 99 07 8b a8 db f7 0a 4f 60 79 a5 a3>
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.071Z thing:miio:240158366 <- Message: {"id":123,"error":{"code":-30012,"message":"busy."}}
Apr 21 11:56:21 Homebridge01 homebridge[20042]: [4/21/2020, 11:56:21] [Luftbefeuchter Offie] getActive Error: busy.
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Object.reject (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:475:13)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at DeviceInfo.onMessage (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:374:8)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Socket. (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:160:11)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Socket.emit (events.js:310:20)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at UDP.onMessage [as onmessage] (dgram.js:924:8) {
Apr 21 11:56:21 Homebridge01 homebridge[20042]: code: -30012
Apr 21 11:56:21 Homebridge01 homebridge[20042]: }
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.106Z miio:packet <- <Buffer 21 31 00 40 00 00 00 00 0e 50 86 9e 00 02 36 ec 68 76 c8 e9 f2 d6 43 5a 63 6b 52 b5 08 3c 1a bd>
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.107Z miio:packet <- <Buffer 21 31 00 40 00 00 00 00 0e 50 86 9e 00 02 36 ec 68 76 c8 e9 f2 d6 43 5a 63 6b 52 b5 08 3c 1a bd>
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.108Z thing:miio:240158366 <- Message: {"id":114,"result":[0]}
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.221Z miio:packet <- <Buffer 21 31 00 60 00 00 00 00 0e 50 86 9e 00 02 36 ec 02 60 07 1a 3a ab e5 02 fe 7d 82 6c b4 e6 dc 32>
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.221Z miio:packet <- <Buffer 21 31 00 60 00 00 00 00 0e 50 86 9e 00 02 36 ec 02 60 07 1a 3a ab e5 02 fe 7d 82 6c b4 e6 dc 32>
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.222Z thing:miio:240158366 <- Message: {"id":125,"error":{"code":-30012,"message":"busy."}}
Apr 21 11:56:21 Homebridge01 homebridge[20042]: [4/21/2020, 11:56:21] [Luftbefeuchter Offie] getWaterLevel Error: busy.
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Object.reject (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:475:13)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at DeviceInfo.onMessage (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:374:8)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Socket. (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:160:11)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Socket.emit (events.js:310:20)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at UDP.onMessage [as onmessage] (dgram.js:924:8) {
Apr 21 11:56:21 Homebridge01 homebridge[20042]: code: -30012
Apr 21 11:56:21 Homebridge01 homebridge[20042]: }
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.317Z miio:packet <- <Buffer 21 31 00 60 00 00 00 00 0e 50 86 9e 00 02 36 ed 3f cf 28 72 1f 51 48 ba 5c e9 0e 50 a8 f3 36 79>
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.317Z miio:packet <- <Buffer 21 31 00 60 00 00 00 00 0e 50 86 9e 00 02 36 ed 3f cf 28 72 1f 51 48 ba 5c e9 0e 50 a8 f3 36 79>
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.318Z thing:miio:240158366 <- Message: {"id":126,"error":{"code":-30012,"message":"busy."}}
Apr 21 11:56:21 Homebridge01 homebridge[20042]: [4/21/2020, 11:56:21] [Luftbefeuchter Offie] getRotationSpeed Error: busy.
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Object.reject (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:475:13)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at DeviceInfo.onMessage (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:374:8)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Socket. (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:160:11)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Socket.emit (events.js:310:20)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at UDP.onMessage [as onmessage] (dgram.js:924:8) {
Apr 21 11:56:21 Homebridge01 homebridge[20042]: code: -30012
Apr 21 11:56:21 Homebridge01 homebridge[20042]: }
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.361Z miio:packet <- <Buffer 21 31 00 60 00 00 00 00 0e 50 86 9e 00 02 36 ed 23 35 30 d9 70 dd 46 43 e8 b9 f9 36 28 81 fd a1>
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.364Z thing:miio:240158366 <- Message: {"id":127,"error":{"code":-30012,"message":"busy."}}
Apr 21 11:56:21 Homebridge01 homebridge[20042]: [4/21/2020, 11:56:21] [Luftbefeuchter Offie] getSwitch1 Error: busy.
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Object.reject (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:475:13)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at DeviceInfo.onMessage (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:374:8)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Socket. (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:160:11)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Socket.emit (events.js:310:20)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at UDP.onMessage [as onmessage] (dgram.js:924:8) {
Apr 21 11:56:21 Homebridge01 homebridge[20042]: code: -30012
Apr 21 11:56:21 Homebridge01 homebridge[20042]: }
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.403Z miio:packet <- <Buffer 21 31 00 40 00 00 00 00 0e 50 86 9e 00 02 36 ed d1 5b 4a e8 90 03 ee 25 72 65 5d 78 24 f9 0e 0d>
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.404Z miio:packet <- <Buffer 21 31 00 40 00 00 00 00 0e 50 86 9e 00 02 36 ed d1 5b 4a e8 90 03 ee 25 72 65 5d 78 24 f9 0e 0d>
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.404Z thing:miio:240158366 <- Message: {"id":115,"result":[70]}
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.458Z miio:packet <- <Buffer 21 31 00 60 00 00 00 00 0e 50 86 9e 00 02 36 ed e3 df 5e ca c3 1d d1 70 88 b8 52 16 6b d0 5f 13>
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.459Z miio:packet <- <Buffer 21 31 00 60 00 00 00 00 0e 50 86 9e 00 02 36 ed e3 df 5e ca c3 1d d1 70 88 b8 52 16 6b d0 5f 13>
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.459Z thing:miio:240158366 <- Message: {"id":129,"error":{"code":-30012,"message":"busy."}}
Apr 21 11:56:21 Homebridge01 homebridge[20042]: [4/21/2020, 11:56:21] [Luftbefeuchter Offie] getCurrentRelativeHumidity Error: busy.
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Object.reject (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:475:13)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at DeviceInfo.onMessage (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:374:8)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Socket. (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:160:11)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Socket.emit (events.js:310:20)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at UDP.onMessage [as onmessage] (dgram.js:924:8) {
Apr 21 11:56:21 Homebridge01 homebridge[20042]: code: -30012
Apr 21 11:56:21 Homebridge01 homebridge[20042]: }
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.553Z miio:packet <- <Buffer 21 31 00 60 00 00 00 00 0e 50 86 9e 00 02 36 ed 49 25 74 3c eb 58 9f 4b b6 a2 8b 75 93 29 6b 82>
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.553Z miio:packet <- <Buffer 21 31 00 60 00 00 00 00 0e 50 86 9e 00 02 36 ed 49 25 74 3c eb 58 9f 4b b6 a2 8b 75 93 29 6b 82>
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.554Z thing:miio:240158366 <- Message: {"id":229,"error":{"code":-30012,"message":"busy."}}
Apr 21 11:56:21 Homebridge01 homebridge[20042]: [4/21/2020, 11:56:21] [Luftbefeuchter Offie] getWaterLevel Error: busy.
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Object.reject (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:475:13)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at DeviceInfo.onMessage (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:374:8)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Socket. (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:160:11)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Socket.emit (events.js:310:20)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at UDP.onMessage [as onmessage] (dgram.js:924:8) {
Apr 21 11:56:21 Homebridge01 homebridge[20042]: code: -30012
Apr 21 11:56:21 Homebridge01 homebridge[20042]: }
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.577Z miio:packet <- <Buffer 21 31 00 40 00 00 00 00 0e 50 86 9e 00 02 36 ed 46 fd 30 46 cb ce 23 01 c8 ff aa 6e f4 f7 bc 0a>
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.577Z miio:packet <- <Buffer 21 31 00 40 00 00 00 00 0e 50 86 9e 00 02 36 ed 46 fd 30 46 cb ce 23 01 c8 ff aa 6e f4 f7 bc 0a>
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.578Z thing:miio:240158366 <- Message: {"id":116,"result":[1]}
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.654Z miio:packet <- <Buffer 21 31 00 60 00 00 00 00 0e 50 86 9e 00 02 36 ed 11 f7 5d 79 d1 a8 f8 aa da d5 78 d8 6d 69 49 7f>
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.658Z thing:miio:240158366 <- Message: {"id":429,"error":{"code":-30012,"message":"busy."}}
Apr 21 11:56:21 Homebridge01 homebridge[20042]: [4/21/2020, 11:56:21] [Luftbefeuchter Offie] getCurrentHumidifierState Error: busy.
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Object.reject (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:475:13)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at DeviceInfo.onMessage (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:374:8)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Socket. (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:160:11)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Socket.emit (events.js:310:20)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at UDP.onMessage [as onmessage] (dgram.js:924:8) {
Apr 21 11:56:21 Homebridge01 homebridge[20042]: code: -30012
Apr 21 11:56:21 Homebridge01 homebridge[20042]: }
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.680Z miio:packet <- <Buffer 21 31 00 60 00 00 00 00 0e 50 86 9e 00 02 36 ed 0f fc 5a 1c 50 49 8a 66 0a a3 c3 e9 74 75 49 99>
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.680Z miio:packet <- <Buffer 21 31 00 60 00 00 00 00 0e 50 86 9e 00 02 36 ed 0f fc 5a 1c 50 49 8a 66 0a a3 c3 e9 74 75 49 99>
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.701Z thing:miio:240158366 <- Message: {"id":529,"error":{"code":-30012,"message":"busy."}}
Apr 21 11:56:21 Homebridge01 homebridge[20042]: [4/21/2020, 11:56:21] [Luftbefeuchter Offie] getActive Error: busy.
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Object.reject (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:475:13)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at DeviceInfo.onMessage (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:374:8)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Socket. (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:160:11)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Socket.emit (events.js:310:20)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at UDP.onMessage [as onmessage] (dgram.js:924:8) {
Apr 21 11:56:21 Homebridge01 homebridge[20042]: code: -30012
Apr 21 11:56:21 Homebridge01 homebridge[20042]: }
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.715Z miio:packet <- <Buffer 21 31 00 40 00 00 00 00 0e 50 86 9e 00 02 36 ed 0f 21 d1 bb 50 e1 58 ea 87 4c f7 44 cc 4f bb 1d>
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.716Z miio:packet <- <Buffer 21 31 00 40 00 00 00 00 0e 50 86 9e 00 02 36 ed 0f 21 d1 bb 50 e1 58 ea 87 4c f7 44 cc 4f bb 1d>
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.718Z thing:miio:240158366 <- Message: {"id":117,"result":[4]}
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.765Z miio:packet <- <Buffer 21 31 00 60 00 00 00 00 0e 50 86 9e 00 02 36 ed b5 18 94 aa 91 2d cb a5 18 87 5d f7 79 88 ac c4>
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.768Z miio:packet <- <Buffer 21 31 00 60 00 00 00 00 0e 50 86 9e 00 02 36 ed b5 18 94 aa 91 2d cb a5 18 87 5d f7 79 88 ac c4>
Apr 21 11:56:21 Homebridge01 homebridge[20042]: 2020-04-21T09:56:21.769Z thing:miio:240158366 <- Message: {"id":729,"error":{"code":-30012,"message":"busy."}}
Apr 21 11:56:21 Homebridge01 homebridge[20042]: [4/21/2020, 11:56:21] [Luftbefeuchter Offie] getWaterLevel Error: busy.
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Object.reject (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:475:13)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at DeviceInfo.onMessage (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:374:8)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Socket. (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:160:11)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at Socket.emit (events.js:310:20)
Apr 21 11:56:21 Homebridge01 homebridge[20042]: at UDP.onMessage [as onmessage] (dgram.js:924:8) {
Apr 21 11:56:21 Homebridge01 homebridge[20042]: code: -30012
Apr 21 11:56:21 Homebridge01 homebridge[20042]: }

@Donni1966
Copy link

the values are changing or temp. State etc. and the seems realistic

@PietroLubini
Copy link
Contributor

PietroLubini commented Apr 21, 2020

Hi.

  1. very thanx to support the ne model.

i updated and i get humintity an Temp and an control, but in the log of the HB is see this

at Object.reject (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:475:13)
at DeviceInfo.onMessage (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:374:8)
at Socket.<anonymous> (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:160:11)
at Socket.emit (events.js:310:20)
at UDP.onMessage [as onmessage] (dgram.js:924:8) {

code: -30012
}
[4/21/2020, 11:25:34] [Luftbefeuchter Offie] getWaterLevel Error: busy.
at Object.reject (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:475:13)
at DeviceInfo.onMessage (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:374:8)
at Socket. (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:160:11)
at Socket.emit (events.js:310:20)
at UDP.onMessage [as onmessage] (dgram.js:924:8) {
code: -30012
}
[4/21/2020, 11:25:34] [Luftbefeuchter Offie] getRotationSpeed Error: busy.
at Object.reject (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:475:13)
at DeviceInfo.onMessage (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:374:8)
at Socket. (/usr/local/lib/node_modules/homebridge-mi-humidifier/node_modules/miio/lib/network.js:160:11)
at Socket.emit (events.js:310:20)
at UDP.onMessage [as onmessage] (dgram.js:924:8) {
code: -30012
}

any idear?

It happens when there is an error in getting data from Humidifier (e.g. WiFi connection error). Can't you control mode of Humidifier in HomeKit (Fan Speed)? Maybe it is better to recolor message in log from red :)
By the way, WaterLevel is not very useful for mjjsq version because device returns 0 or 1 only (0 - empty, 1 - non empty).

@Donni1966
Copy link

Yes i can control switch on and of an control but no correctly.

there is a bottom on the front side. This botten knows Level 1 (so lowest) and level 5 highes. The switch switch of the device by pressing more than 3 seconds. The regulator in HomeKit only controll only to level 5, not to the other level. the switch in HomeKit switch off

.

So i understand the blue controller in control the volume the fog in this 4 Level. but this not work.

I you move the slider he every times comes up to level 5 and i you put the slider down, nothing happened.

in the software you an set 4 Level Low Medium high and Humidity and than in the MI Software you can set the humidity to an special level. Thats in my understanding the sliders word in the HomeKit.

Than the are to switch in the software. LED and Sound on off. The not supported by HomeKit Plugin. But is not importend.

i take some screen shots and a small video if is helpful.

the device is near an good 2.4 ghz wifi. I can hav trouble with this wifi, because 2.4 GHZ Wifi a a lot of around me. I test this with an network analyzer.

thanx or support this.

IMG_0040
IMG_0041
IMG_0042

@PietroLubini
Copy link
Contributor

PietroLubini commented Apr 21, 2020

Yes i can control switch on and of an control but no correctly.

there is a bottom on the front side. This botten knows Level 1 (so lowest) and level 5 highes. The switch switch of the device by pressing more than 3 seconds. The regulator in HomeKit only controll only to level 5, not to the other level. the switch in HomeKit switch off

.

So i understand the blue controller in control the volume the fog in this 4 Level. but this not work.

I you move the slider he every times comes up to level 5 and i you put the slider down, nothing happened.

in the software you an set 4 Level Low Medium high and Humidity and than in the MI Software you can set the humidity to an special level. Thats in my understanding the sliders word in the HomeKit.

Than the are to switch in the software. LED and Sound on off. The not supported by HomeKit Plugin. But is not importend.

i take some screen shots and a small video if is helpful.

the device is near an good 2.4 ghz wifi. I can hav trouble with this wifi, because 2.4 GHZ Wifi a a lot of around me. I test this with an network analyzer.

thanx or support this.

  1. Mode control:
    Plugin supports 5 positions: 0 - off; 1 - low; 2 - medium; 3 - high; 4 - humidity (off). See pictures above
    Mode0 - off
    Mode1 - low
    Mode2 - medium
    Mode3 - high
    Mode4 - humidity

By the way, if you change the target humidity in HomeKit and your mode is not mode4 (humidity), the plugin will set mode4 automatically.

  1. LED indicator is actually supported - it is Oscillate switch
  2. Notification sounds is not supported - just didn't find any similar to Oscillate button characteristic in HomeKit.

@Donni1966
Copy link

Hi,

i see in the grouped View no slider :-) or the other switch. Now i ungroup it and the control make more sense - only water level not work. But you explain this.
Screenshot 2020-04-21 22 38 05
Screenshot 2020-04-21 22 37 55

this is the grouped view.

and by the way. There is an problem on 2.4 ghz network. overlaps on channel and so on.

thanx or help

@nt0xa nt0xa added the enhancement New feature or request label Apr 28, 2020
@nt0xa nt0xa closed this as completed Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants