oogje / homebridge-i6-bigAssFans

A Homebridge plugin which allows you to control a Big Ass Fan.
MIT License
18 stars 3 forks source link

Chunk Size Error in Log #8

Closed afellows77 closed 2 years ago

afellows77 commented 2 years ago

I have two Haiku L Series fans (both have lights) configured using your app. It is working great, but I am getting two of the following errors every minute in the log. I assume one entry for each fan. I have not noticed any degraded functionality, it is just cluttering up the Homebridge logs. Please let me know what other information I can provide.

Error:

[26/04/2022, 15:20:43] [BigAssFans-i6] this is not the chunk size we're looking for: undefined, actual: 36 [26/04/2022, 15:20:43] [BigAssFans-i6] this is not the chunk size we're looking for: undefined, actual: 36 [26/04/2022, 15:21:43] [BigAssFans-i6] this is not the chunk size we're looking for: undefined, actual: 36 [26/04/2022, 15:21:43] [BigAssFans-i6] this is not the chunk size we're looking for: undefined, actual: 36 [26/04/2022, 15:22:43] [BigAssFans-i6] this is not the chunk size we're looking for: undefined, actual: 36 [26/04/2022, 15:22:43] [BigAssFans-i6] this is not the chunk size we're looking for: undefined, actual: 36 [26/04/2022, 15:23:43] [BigAssFans-i6] this is not the chunk size we're looking for: undefined, actual: 36 [26/04/2022, 15:23:43] [BigAssFans-i6] this is not the chunk size we're looking for: undefined, actual: 36 [26/04/2022, 15:24:43] [BigAssFans-i6] this is not the chunk size we're looking for: undefined, actual: 36 [26/04/2022, 15:24:43] [BigAssFans-i6] this is not the chunk size we're looking for: undefined, actual: 36 [26/04/2022, 15:25:43] [BigAssFans-i6] this is not the chunk size we're looking for: undefined, actual: 36 [26/04/2022, 15:25:43] [BigAssFans-i6] this is not the chunk size we're looking for: undefined, actual: 36

Debug log:

[26/04/2022, 15:43:26] [BigAssFans-i6] dblog progress(0/0) Kitchen Fan - model: Haiku L Series (0x48, 0x61, 0x69, 0x6b, 0x75, 0x20, 0x4c, 0x20, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73) [26/04/2022, 15:43:26] [BigAssFans-i6] dblog progress(0/0) Kitchen Fan - firmware: 3.0.1 [26/04/2022, 15:43:26] [BigAssFans-i6] dblog progress(0/0) Bedroom Fan - model: Haiku L Series (0x48, 0x61, 0x69, 0x6b, 0x75, 0x20, 0x4c, 0x20, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73) [26/04/2022, 15:43:26] [BigAssFans-i6] dblog progress(0/0) Bedroom Fan - firmware: 3.0.1 [26/04/2022, 15:43:26] [BigAssFans-i6] light detected [26/04/2022, 15:43:26] [BigAssFans-i6] current temperature out of range: 1000, assuming no temperature sensor for model "Haiku L Series" [26/04/2022, 15:43:26] [BigAssFans-i6] Assuming no humidity sensor for model "Haiku L Series" [26/04/2022, 15:43:26] [BigAssFans-i6] this is not the chunk size we're looking for: undefined, actual: 36 [26/04/2022, 15:43:26] [BigAssFans-i6] this is not the chunk size we're looking for: undefined, actual: 36

Config:

{     "fans": [         {             "name": "Kitchen Fan",             "ip": “X.X.X.X”,             "mac": "20:F8:5E:XX:XX:XX”,             "whoosh": true,             "dimToWarm": false,             "fanAuto": false,             "lightAuto": true,             "ecoMode": true         },         {             "name": "Bedroom Fan",             "ip": "X.X.X.X",             "mac": "20:F8:5E:XX:XX:XX”,             "whoosh": true,             "dimToWarm": false,             "fanAuto": false,             "lightAuto": true,             "ecoMode": true         }     ],     "platform": "BigAssFans-i6" }

Environment:

oogje commented 2 years ago

Hello,

If you could add this debugging property to the config.json and post or email me the additional output that may be enough to figure out what's going on:

"debugLevels": [ ["network", 1] ]

Keep in mind, some things like your IP, MAC address, your WiFI network name and such might be in that debug output. If you want to send it via email, my address is in my GitHub profile.

In the meantime if you want to try to reduce the warnings, you can turn off the probe that happens very 60 seconds by default with:

"probeFrequency": 0

in your conf.json

afellows77 commented 2 years ago

Here is the output after adding the "network, 1" debug level to each fan:

[26/04/2022, 17:06:14] [BigAssFans-i6] dblog network(1/1) Kitchen Fan - assuming new protocol [26/04/2022, 17:06:14] [BigAssFans-i6] dblog progress(0/0) Kitchen Fan - model: Haiku L Series (0x48, 0x61, 0x69, 0x6b, 0x75, 0x20, 0x4c, 0x20, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73) [26/04/2022, 17:06:14] [BigAssFans-i6] dblog progress(0/0) Kitchen Fan - firmware: 3.0.1 [26/04/2022, 17:06:14] [BigAssFans-i6] dblog network(1/1) Bedroom Fan - assuming new protocol [26/04/2022, 17:06:14] [BigAssFans-i6] dblog progress(0/0) Bedroom Fan - model: Haiku L Series (0x48, 0x61, 0x69, 0x6b, 0x75, 0x20, 0x4c, 0x20, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73) [26/04/2022, 17:06:14] [BigAssFans-i6] dblog progress(0/0) Bedroom Fan - firmware: 3.0.1 [26/04/2022, 17:06:14] [BigAssFans-i6] light detected [26/04/2022, 17:06:14] [BigAssFans-i6] current temperature out of range: 1000, assuming no temperature sensor for model "Haiku L Series" [26/04/2022, 17:06:14] [BigAssFans-i6] Assuming no humidity sensor for model "Haiku L Series" [26/04/2022, 17:06:14] [BigAssFans-i6] this is not the chunk size we're looking for: undefined, actual: 36 [26/04/2022, 17:06:14] [BigAssFans-i6] dblog network(1/1) Kitchen Fan - rawChunk: 0xc0, 0x12, 0x22, 0x22, 0x20, 0x12, 0x1e, 0xda, 0x0a, 0x1b, 0x12, 0x10, 0xf5, 0x4a, 0x9c, 0x70, 0x5e, 0x40, 0x59, 0xfc, 0xab, 0xee, 0xb0, 0x27, 0xda, 0x4e, 0x96, 0xd0, 0x1a, 0x07, 0x4b, 0x69, 0x74, 0x63, 0x68, 0x65, 0x6e, 0xc0 [26/04/2022, 17:06:14] [BigAssFans-i6] dblog network(1/1) Kitchen Fan - data remaining: 0x22, 0x22, 0x20, 0x12, 0x1e, 0xda, 0x0a, 0x1b, 0x12, 0x10, 0xf5, 0x4a, 0x9c, 0x70, 0x5e, 0x40, 0x59, 0xfc, 0xab, 0xee, 0xb0, 0x27, 0xda, 0x4e, 0x96, 0xd0, 0x1a, 0x07, 0x4b, 0x69, 0x74, 0x63, 0x68, 0x65, 0x6e, 0xc0 [26/04/2022, 17:06:14] [BigAssFans-i6] this is not the chunk size we're looking for: undefined, actual: 36 [26/04/2022, 17:06:14] [BigAssFans-i6] dblog network(1/1) Bedroom Fan - rawChunk: 0xc0, 0x12, 0x22, 0x22, 0x20, 0x12, 0x1e, 0xda, 0x0a, 0x1b, 0x12, 0x10, 0x90, 0xb0, 0x5e, 0xad, 0x81, 0x69, 0x5d, 0x44, 0x8d, 0x8c, 0xa6, 0x93, 0x0d, 0xbd, 0x3b, 0x96, 0x1a, 0x07, 0x42, 0x65, 0x64, 0x72, 0x6f, 0x6f, 0x6d, 0xc0 [26/04/2022, 17:06:14] [BigAssFans-i6] dblog network(1/1) Bedroom Fan - data remaining: 0x22, 0x22, 0x20, 0x12, 0x1e, 0xda, 0x0a, 0x1b, 0x12, 0x10, 0x90, 0xb0, 0x5e, 0xad, 0x81, 0x69, 0x5d, 0x44, 0x8d, 0x8c, 0xa6, 0x93, 0x0d, 0xbd, 0x3b, 0x96, 0x1a, 0x07, 0x42, 0x65, 0x64, 0x72, 0x6f, 0x6f, 0x6d, 0xc0

oogje commented 2 years ago

Great. Thanks.

oogje commented 2 years ago

I'm glad you opened this issue. It's a worthy bug triggered in your case by the fact you have group names that are exactly seven characters long. I've published homebridge-i6-bigassfans@0.4.3-beta1 which I hope fixes it.

afellows77 commented 2 years ago

I'm not seeing the message in the logs anymore so it appears this is resolved. I'll make sure everything is still working as expected and update this issue tomorrow. Thanks for the quick resolution!

oogje commented 2 years ago

Thank you!

afellows77 commented 2 years ago

After testing all the functionality I use, everything is working perfectly. Thanks again for the quick response on this issue.

oogje commented 2 years ago

That's good to hear. Thanks for your help.