nt0xa / homebridge-mi-humidifier

A Xiaomi Mi humidifier plugin for Homebridge
MIT License
64 stars 24 forks source link

Characterstic ? Temperature - Humidify : 0° #93

Closed rereone closed 3 years ago

rereone commented 3 years ago

Hello,

I have a problem. I installed the latest version.

And I Have a Error : https://github.com/homebridge/homebridge/wiki/Characteristic-Warnings

Help please.

Temperature and Humidify : 0° ?

nt0xa commented 3 years ago

Hey @rereone,

Could you please collect debug logs? You can do it by running homebridge like this:

DEBUG=miio-api* homebridge -D
rereone commented 3 years ago

Hello,

Is It that :

.....................................DEBUG=miio-api* homebridge -D Initializing HAP-NodeJS v0.9.4...

[2021-5-11 18:17:02] Loaded plugin: homebridge-mi-humidifier@2.4.2 [2021-5-11 18:17:02] Registering platform 'homebridge-mi-humidifier.MiHumidifier'

[2021-5-11 18:17:03] [MiHumidifier] Initializing MiHumidifier platform...

[2021-5-11 18:17:03] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://git.io/JtMGR for more info.

miio-api:192.168.1.22:ylcti07o -> Packet { miio-api:192.168.1.22:ylcti07o deviceId: 4294967295, miio-api:192.168.1.22:ylcti07o timestamp: 4294967295, miio-api:192.168.1.22:ylcti07o checksum: , miio-api:192.168.1.22:ylcti07o data: , miio-api:192.168.1.22:ylcti07o unknown: 4294967295 miio-api:192.168.1.22:ylcti07o } +0ms miio-api:192.168.1.22:ylcti07o #1 -> miio-api:192.168.1.22:ylcti07o 0000 21 31 00 20 ff ff ff ff ff ff ff ff ff ff ff ff miio-api:192.168.1.22:ylcti07o 0010 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff +4ms miio-api:192.168.1.22:ylcti07o <- miio-api:192.168.1.22:ylcti07o 0000 21 31 00 20 00 00 00 00 0e 9d 97 a7 00 09 08 1c miio-api:192.168.1.22:ylcti07o 0010 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff +202ms miio-api:192.168.1.22:ylcti07o <- Packet { miio-api:192.168.1.22:ylcti07o deviceId: 245208999, miio-api:192.168.1.22:ylcti07o timestamp: 591900, miio-api:192.168.1.22:ylcti07o checksum: , miio-api:192.168.1.22:ylcti07o data: , miio-api:192.168.1.22:ylcti07o unknown: 0 miio-api:192.168.1.22:ylcti07o } +0ms [2021-5-11 18:17:04] [MiHumidifier] [192.168.1.22] Removing characteristic 00000052-0000-1000-8000-0026BB765291 miio-api:192.168.1.22:952yol0h -> { miio-api:192.168.1.22:952yol0h id: 1008611971, miio-api:192.168.1.22:952yol0h method: 'get_properties', miio-api:192.168.1.22:952yol0h params: [ miio-api:192.168.1.22:952yol0h { did: 'power', value: null, siid: 2, piid: 1 }, miio-api:192.168.1.22:952yol0h { did: 'fan_level', value: null, siid: 2, piid: 5 }, miio-api:192.168.1.22:952yol0h { did: 'water_level', value: null, siid: 7, piid: 1 }, miio-api:192.168.1.22:952yol0h { did: 'relative_humidity', value: null, siid: 3, piid: 1 }, miio-api:192.168.1.22:952yol0h { did: 'switch_status', value: null, siid: 6, piid: 1 }, miio-api:192.168.1.22:952yol0h { did: 'target_humidity', value: null, siid: 2, piid: 6 }, miio-api:192.168.1.22:952yol0h { did: 'buzzer', value: null, siid: 5, piid: 1 }, miio-api:192.168.1.22:952yol0h { did: 'temperature', value: null, siid: 3, piid: 7 } miio-api:192.168.1.22:952yol0h ] miio-api:192.168.1.22:952yol0h } +0ms miio-api:192.168.1.22:952yol0h -> Packet { miio-api:192.168.1.22:952yol0h deviceId: 245208999, miio-api:192.168.1.22:952yol0h timestamp: 591900, miio-api:192.168.1.22:952yol0h checksum: <Buffer 23 96 f6 46 71 fa 54 b9 e0 dd 6c 32 88 0f f3 41>, miio-api:192.168.1.22:952yol0h data: <Buffer a5 bd 4c 00 fe b6 4a 5b b1 e0 58 a0 cb 30 9b 23 ee fc 8b dc ee 2f bf f9 4b 7a 67 d3 be 7f 28 33 d2 85 12 28 5f 9f 8f a2 a1 f0 49 fc 40 f2 cb 6b 5d d8 ... 430 more bytes>, miio-api:192.168.1.22:952yol0h unknown: 0 miio-api:192.168.1.22:952yol0h } +3ms miio-api:192.168.1.22:952yol0h #1 -> miio-api:192.168.1.22:952yol0h 0000 21 31 02 00 00 00 00 00 0e 9d 97 a7 00 09 08 1c miio-api:192.168.1.22:952yol0h 0010 23 96 f6 46 71 fa 54 b9 e0 dd 6c 32 88 0f f3 41 miio-api:192.168.1.22:952yol0h 0020 a5 bd 4c 00 fe b6 4a 5b b1 e0 58 a0 cb 30 9b 23 miio-api:192.168.1.22:952yol0h 0030 ee fc 8b dc ee 2f bf f9 4b 7a 67 d3 be 7f 28 33 miio-api:192.168.1.22:952yol0h 0040 d2 85 12 28 5f 9f 8f a2 a1 f0 49 fc 40 f2 cb 6b miio-api:192.168.1.22:952yol0h 0050 5d d8 66 e8 69 7c 89 fe 75 e1 85 95 34 b3 b7 f1 miio-api:192.168.1.22:952yol0h 0060 0b d6 3d 35 86 b6 21 a3 44 7d 2f 76 b3 fb 6a 25 miio-api:192.168.1.22:952yol0h 0070 44 3d 06 98 8c 91 09 d7 11 44 d9 b4 f3 82 57 32 miio-api:192.168.1.22:952yol0h 0080 20 10 b5 8a 62 8c 18 99 03 f8 22 2a 57 d0 c1 0e miio-api:192.168.1.22:952yol0h 0090 5f ee cc b8 c8 e1 e0 79 ed f0 fe aa 82 90 de 16 miio-api:192.168.1.22:952yol0h 00a0 89 73 e0 ca b9 ec 99 33 5c ff 28 30 6b c5 92 a8 miio-api:192.168.1.22:952yol0h 00b0 3d cf 95 22 3b 2a f4 f1 f9 de e1 3a 23 d7 27 6f miio-api:192.168.1.22:952yol0h 00c0 c3 8c c4 59 c0 1e 48 d5 f6 11 fb 2f 62 6e 8e 5b miio-api:192.168.1.22:952yol0h 00d0 81 d1 07 e7 e3 e7 b3 d9 b6 ce 5a 3f fe 63 4b d1 miio-api:192.168.1.22:952yol0h 00e0 ab 58 c8 57 a4 e0 27 30 cf 16 60 56 52 94 ac 3a miio-api:192.168.1.22:952yol0h 00f0 d7 f9 26 f2 42 68 f3 ca a9 7b 58 19 2d 5a d2 7d miio-api:192.168.1.22:952yol0h 0100 f9 1f 8c fa 95 d6 43 c0 7a bc 0f a2 65 66 f7 31 miio-api:192.168.1.22:952yol0h 0110 bb 58 28 d0 1d 60 88 18 45 53 ad 24 d7 38 19 43 miio-api:192.168.1.22:952yol0h 0120 08 18 49 61 de 91 f4 2c 12 71 da 57 04 e7 0a a5 miio-api:192.168.1.22:952yol0h 0130 c9 b2 f8 2a d4 60 93 c2 9d eb 15 59 29 7e f9 5a miio-api:192.168.1.22:952yol0h 0140 e7 75 46 69 61 41 8b 61 0d 00 51 85 54 91 65 08 miio-api:192.168.1.22:952yol0h 0150 26 bd 88 d0 ca 60 33 29 8d 39 e5 c7 20 a8 31 ba miio-api:192.168.1.22:952yol0h 0160 46 17 1a 67 a3 d6 3a b9 9d c2 c5 f0 70 ca 12 fe miio-api:192.168.1.22:952yol0h 0170 da ce 18 f3 cd 20 22 78 3f ef 4e 1a 71 5e 8b b4 miio-api:192.168.1.22:952yol0h 0180 c0 84 82 95 04 c2 60 05 c8 d5 a3 59 bf fc 6a c4 miio-api:192.168.1.22:952yol0h 0190 d1 57 1e 87 5a aa ef 45 a8 6c a6 67 f6 62 cd d5 miio-api:192.168.1.22:952yol0h 01a0 5e ad 5b 75 cb 40 51 40 b7 68 94 32 53 25 16 97 miio-api:192.168.1.22:952yol0h 01b0 6b a0 79 3c 99 91 19 6c ae 9c c8 3b d3 ae 87 da miio-api:192.168.1.22:952yol0h 01c0 6e 75 b3 de d7 a2 73 ea db 46 57 a1 79 ec 91 ee miio-api:192.168.1.22:952yol0h 01d0 18 32 3b bc e0 40 80 83 73 47 cd 73 1f 8e c7 67 miio-api:192.168.1.22:952yol0h 01e0 fc 56 dc 63 f5 f9 de 9c 8a 67 18 00 18 a2 db b0 miio-api:192.168.1.22:952yol0h 01f0 33 79 0c 65 a4 1f 26 88 a8 b2 57 98 bb 74 36 23 +1ms

miio-api:192.168.1.22:952yol0h <- miio-api:192.168.1.22:952yol0h 0000 21 31 02 00 00 00 00 00 0e 9d 97 a7 00 09 08 1d miio-api:192.168.1.22:952yol0h 0010 9f 80 28 50 0e e8 3e e8 1a 96 88 95 05 c3 6d 6c miio-api:192.168.1.22:952yol0h 0020 a5 bd 4c 00 fe b6 4a 5b b1 e0 58 a0 cb 30 9b 23 miio-api:192.168.1.22:952yol0h 0030 77 0a 32 87 bc 93 26 0f 6c c4 8c c2 77 39 89 47 miio-api:192.168.1.22:952yol0h 0040 51 ce 79 7c 00 13 3e 16 50 47 1b ca 3d a9 bb ba miio-api:192.168.1.22:952yol0h 0050 94 99 7d e5 71 25 5a 1c e8 bc 62 69 98 20 ac c2 miio-api:192.168.1.22:952yol0h 0060 20 0c 2c 65 0c 22 15 29 8b 3a 27 ed e9 79 f8 a3 miio-api:192.168.1.22:952yol0h 0070 ed 92 73 6b 02 18 22 4b 6f e3 83 25 f8 00 25 d4 miio-api:192.168.1.22:952yol0h 0080 8c 45 ac 16 0d c1 20 f5 af 98 b0 23 5e c7 46 2b miio-api:192.168.1.22:952yol0h 0090 d4 67 7e a9 27 30 c3 bf d4 9a d0 64 50 37 7b 96 miio-api:192.168.1.22:952yol0h 00a0 1e 38 a0 fb 90 2b 22 db ff 40 70 d4 ab fa 88 c4 miio-api:192.168.1.22:952yol0h 00b0 4c 53 32 79 4f f9 ea 22 39 4b a6 03 d0 12 1c 63 miio-api:192.168.1.22:952yol0h 00c0 2e ef ba 84 21 2b bf c5 03 a5 27 88 80 ce bc 7a miio-api:192.168.1.22:952yol0h 00d0 a7 99 90 cc 9f d7 c6 24 73 81 5e 51 52 d5 42 a6 miio-api:192.168.1.22:952yol0h 00e0 cb 7d 83 85 ee 29 3a 38 3a 80 62 f1 e7 9a 8d 62 miio-api:192.168.1.22:952yol0h 00f0 8b 50 7c eb 4f c5 5c 1e 8e 10 ad 99 e1 01 a8 49 miio-api:192.168.1.22:952yol0h 0100 16 6e d8 bc d8 2d 59 07 3c bd 10 6a 4b ed fe 39 miio-api:192.168.1.22:952yol0h 0110 fe fe 64 5d c8 ca e0 2a d1 21 7f 56 1b f3 2d 94 miio-api:192.168.1.22:952yol0h 0120 47 79 65 3c 17 6f bc e5 36 58 09 21 03 eb 33 97 miio-api:192.168.1.22:952yol0h 0130 22 43 dd 36 bf a7 38 d5 5d c0 fc b6 3c 7c ce 08 miio-api:192.168.1.22:952yol0h 0140 25 76 fe 28 41 ac c2 09 2e 5c 02 81 a4 ad 1c 1c miio-api:192.168.1.22:952yol0h 0150 93 0f 9a 36 86 be dd 7b 9d 11 a1 24 73 9f 9f ed miio-api:192.168.1.22:952yol0h 0160 a4 ce 8c 58 25 d0 68 fa 4c da 1a 39 b6 08 50 a8 miio-api:192.168.1.22:952yol0h 0170 6b 0f f8 1f 9f b4 ca 23 3a 10 fe d6 59 fc 21 42 miio-api:192.168.1.22:952yol0h 0180 3b 15 41 06 f8 ec c0 b1 7a 2b f1 cf 8e 3d 21 a9 miio-api:192.168.1.22:952yol0h 0190 aa 29 bb dc 61 55 41 d8 79 b1 5d c9 2b ec 5a 18 miio-api:192.168.1.22:952yol0h 01a0 62 d8 0e 3b ea c9 eb cd bc 51 4d 56 ad c8 b6 13 miio-api:192.168.1.22:952yol0h 01b0 5e 49 3b 61 ed d0 d7 d0 6e 1a f9 9c d5 e8 5f 34 miio-api:192.168.1.22:952yol0h 01c0 8c 71 a0 91 74 e5 0a bc 97 6d 7d 39 85 35 35 69 miio-api:192.168.1.22:952yol0h 01d0 a4 f7 b8 50 dd 73 9f b4 80 e7 f6 74 da 7e 6a 57 miio-api:192.168.1.22:952yol0h 01e0 3b cb c5 ff 31 fb 84 3b 89 ad d7 7e 5c 73 5c 4e miio-api:192.168.1.22:952yol0h 01f0 f4 2a ba 10 6a 88 1c 17 06 4a cc 31 6c bf 92 f5 +325ms miio-api:192.168.1.22:952yol0h <- Packet { miio-api:192.168.1.22:952yol0h deviceId: 245208999, miio-api:192.168.1.22:952yol0h timestamp: 591901, miio-api:192.168.1.22:952yol0h checksum: <Buffer 9f 80 28 50 0e e8 3e e8 1a 96 88 95 05 c3 6d 6c>, miio-api:192.168.1.22:952yol0h data: <Buffer a5 bd 4c 00 fe b6 4a 5b b1 e0 58 a0 cb 30 9b 23 77 0a 32 87 bc 93 26 0f 6c c4 8c c2 77 39 89 47 51 ce 79 7c 00 13 3e 16 50 47 1b ca 3d a9 bb ba 94 99 ... 430 more bytes>, miio-api:192.168.1.22:952yol0h unknown: 0 miio-api:192.168.1.22:952yol0h } +0ms miio-api:192.168.1.22:952yol0h <- { miio-api:192.168.1.22:952yol0h id: 1008611971, miio-api:192.168.1.22:952yol0h result: [ miio-api:192.168.1.22:952yol0h { did: 'power', siid: 2, piid: 1, code: -4004 }, miio-api:192.168.1.22:952yol0h { did: 'fan_level', siid: 2, piid: 5, code: -4004 }, miio-api:192.168.1.22:952yol0h { did: 'water_level', siid: 7, piid: 1, code: -4004 }, miio-api:192.168.1.22:952yol0h { did: 'relative_humidity', siid: 3, piid: 1, code: -4004 }, miio-api:192.168.1.22:952yol0h { did: 'switch_status', siid: 6, piid: 1, code: -4004 }, miio-api:192.168.1.22:952yol0h { did: 'target_humidity', siid: 2, piid: 6, code: -4004 }, miio-api:192.168.1.22:952yol0h { did: 'buzzer', siid: 5, piid: 1, code: -4004 }, miio-api:192.168.1.22:952yol0h { did: 'temperature', siid: 3, piid: 7, code: -4004 } miio-api:192.168.1.22:952yol0h ], miio-api:192.168.1.22:952yol0h exe_time: 200 miio-api:192.168.1.22:952yol0h } +3ms [2021-5-11 18:17:04] [MiHumidifier] [192.168.1.22] Updating property "power": undefined -> 0 [2021-5-11 18:17:04] [MiHumidifier] [192.168.1.22] Updating property "power": undefined -> 0 [2021-5-11 18:17:04] [MiHumidifier] [192.168.1.22] Updating property "fan_level": undefined -> 1 [2021-5-11 18:17:04] [MiHumidifier] [192.168.1.22] Updating property "water_level": undefined -> 0 [2021-5-11 18:17:04] [MiHumidifier] [192.168.1.22] Updating property "relative_humidity": undefined -> undefined [2021-5-11 18:17:04] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [2021-5-11 18:17:04] [homebridge-mi-humidifier] Error: at CurrentRelativeHumidity.Characteristic.characteristicWarning (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2038:105) at CurrentRelativeHumidity.Characteristic.validateUserInput (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1931:16) at CurrentRelativeHumidity.Characteristic.updateValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1379:20) at /usr/local/lib/node_modules/homebridge-mi-humidifier/src/devices/humidifier.ts:111:32 at Array.forEach () at /usr/local/lib/node_modules/homebridge-mi-humidifier/src/devices/humidifier.ts:106:21 at Array.forEach () at BaseHumidifier.update (/usr/local/lib/node_modules/homebridge-mi-humidifier/src/devices/humidifier.ts:103:18) at processTicksAndRejections (internal/process/task_queues.js:97:5) at /usr/local/lib/node_modules/homebridge-mi-humidifier/src/platform.ts:164:9 at MiHumidifierPlatform.didFinishLaunching (/usr/local/lib/node_modules/homebridge-mi-humidifier/src/platform.ts:135:7) [2021-5-11 18:17:04] [MiHumidifier] [192.168.1.22] Updating property "relative_humidity": undefined -> undefined [2021-5-11 18:17:04] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [2021-5-11 18:17:04] [homebridge-mi-humidifier] Error: at CurrentRelativeHumidity.Characteristic.characteristicWarning (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2038:105) at CurrentRelativeHumidity.Characteristic.validateUserInput (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1931:16) at CurrentRelativeHumidity.Characteristic.updateValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1379:20) at /usr/local/lib/node_modules/homebridge-mi-humidifier/src/devices/humidifier.ts:111:32 at Array.forEach () at /usr/local/lib/node_modules/homebridge-mi-humidifier/src/devices/humidifier.ts:106:21 at Array.forEach () at BaseHumidifier.update (/usr/local/lib/node_modules/homebridge-mi-humidifier/src/devices/humidifier.ts:103:18) at processTicksAndRejections (internal/process/task_queues.js:97:5) at /usr/local/lib/node_modules/homebridge-mi-humidifier/src/platform.ts:164:9 at MiHumidifierPlatform.didFinishLaunching (/usr/local/lib/node_modules/homebridge-mi-humidifier/src/platform.ts:135:7) [2021-5-11 18:17:04] [MiHumidifier] [192.168.1.22] Updating property "switch_status": undefined -> true [2021-5-11 18:17:04] [MiHumidifier] [192.168.1.22] Updating property "target_humidity": undefined -> undefined [2021-5-11 18:17:04] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Relative Humidity Humidifier Threshold': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [2021-5-11 18:17:04] [homebridge-mi-humidifier] Error: at RelativeHumidityHumidifierThreshold.Characteristic.characteristicWarning (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2038:105) at RelativeHumidityHumidifierThreshold.Characteristic.validateUserInput (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1931:16) at RelativeHumidityHumidifierThreshold.Characteristic.updateValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1379:20) at /usr/local/lib/node_modules/homebridge-mi-humidifier/src/devices/humidifier.ts:111:32 at Array.forEach () at /usr/local/lib/node_modules/homebridge-mi-humidifier/src/devices/humidifier.ts:106:21 at Array.forEach () at BaseHumidifier.update (/usr/local/lib/node_modules/homebridge-mi-humidifier/src/devices/humidifier.ts:103:18) at processTicksAndRejections (internal/process/task_queues.js:97:5) at /usr/local/lib/node_modules/homebridge-mi-humidifier/src/platform.ts:164:9 at MiHumidifierPlatform.didFinishLaunching (/usr/local/lib/node_modules/homebridge-mi-humidifier/src/platform.ts:135:7) [2021-5-11 18:17:04] [MiHumidifier] [192.168.1.22] Updating property "buzzer": undefined -> false [2021-5-11 18:17:04] [MiHumidifier] [192.168.1.22] Updating property "temperature": undefined -> undefined [2021-5-11 18:17:04] [homebridge-mi-humidifier] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [2021-5-11 18:17:04] [homebridge-mi-humidifier] Error: at CurrentTemperature.Characteristic.characteristicWarning (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2038:105) at CurrentTemperature.Characteristic.validateUserInput (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1931:16) at CurrentTemperature.Characteristic.updateValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1379:20) at /usr/local/lib/node_modules/homebridge-mi-humidifier/src/devices/humidifier.ts:111:32 at Array.forEach () at /usr/local/lib/node_modules/homebridge-mi-humidifier/src/devices/humidifier.ts:106:21 at Array.forEach () at BaseHumidifier.update (/usr/local/lib/node_modules/homebridge-mi-humidifier/src/devices/humidifier.ts:103:18) at processTicksAndRejections (internal/process/task_queues.js:97:5) at /usr/local/lib/node_modules/homebridge-mi-humidifier/src/platform.ts:164:9 at MiHumidifierPlatform.didFinishLaunching (/usr/local/lib/node_modules/homebridge-mi-humidifier/src/platform.ts:135:7)

rereone commented 3 years ago

I don't know if I put all because I have a lot of materials in Homebridge.

nt0xa commented 3 years ago

Which model of humidifier do you have?

rereone commented 3 years ago

For me, a Deerma... Jsq4, no?

It is a Xiami Mi Smart Antibacterial Humidify.

nt0xa commented 3 years ago

Could you try to change model to other deerma deerma.humidifier.mjjsq?

rereone commented 3 years ago

Yes, it's working.

Thanks you very much.