oogje / homebridge-i6-bigAssFans

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

es6 support #10

Closed Emotive9 closed 2 years ago

Emotive9 commented 2 years ago

Requesting support for the new es6 model. This model has separate up light and down light controls.

oogje commented 2 years ago

Hello. Assuming you have an es6 (I don't know anyone else who might), do you want to participate in adding support for it by running betas and providing your log files?

Emotive9 commented 2 years ago

Sure, just let me know what you need.

oogje commented 2 years ago

I'll assume you know at least as much as I do about homebridge and you can let me know if I get ahead of you.

Can you add the following to your config.json in your fan specific section, like after the "ip" line, and then restart homebridge with debugging turned on (-D) and post the plugin's logs? Don't forget the , separator.

"debugLevels": [
  [ "cluing", 1 ]
]

You'll probably want to edit out any personal info that shows up, like MAC address or a public IP address. Or, if you like we can do this in Discord or email or whatever.

Emotive9 commented 2 years ago

I've added the debeg lines to the config under the fans and am running in debug mode but do not see anything relevant coming from the fan. I am running homebridge in docker.

{ "name": "Family Room", "ip": "xx", "debugLevels": [ [ "cluing", 1 ] ], "mac": "xx", "fanModel": "other", "whoosh": false, "fanAuto": false, "lightAuto": false, "dimToWarm": false, "ecoMode": false }

[6/21/2022, 5:02:16 PM] [homebridge-i6-bigassfans] dblog progress(0/0) Family Room - model: es6 (0x65, 0x73, 0x36) [6/21/2022, 5:02:16 PM] [homebridge-i6-bigassfans] dblog progress(0/0) Family Room - firmware: 3.0.2

oogje commented 2 years ago

Very good. How about changing [“cluing”, 1] to [“cluing”, 6] and restarting. I’m hoping to see messages from the fan that are unexpected - presumably unique to the es6.

On Jun 21, 2022, at 5:06 PM, Emotive9 @.***> wrote:

 I've added the debeg lines to the config under the fans and am running in debug mode but do not see anything relevant coming from the fan. I am running homebridge in docker.

{ "name": "Family Room", "ip": "xx", "debugLevels": [ [ "cluing", 1 ] ], "mac": "xx", "fanModel": "other", "whoosh": false, "fanAuto": false, "lightAuto": false, "dimToWarm": false, "ecoMode": false }

[6/21/2022, 5:02:16 PM] [homebridge-i6-bigassfans] dblog progress(0/0) Family Room - model: es6 (0x65, 0x73, 0x36) [6/21/2022, 5:02:16 PM] [homebridge-i6-bigassfans] dblog progress(0/0) Family Room - firmware: 3.0.2

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

Emotive9 commented 2 years ago

Here is the output:

[6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0xc8, 0x07, : 0 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0x80, 0x04, : 0 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0x88, 0x03, : 0 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0xa8, 0x08, : 1 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0xc2, 0x03, : now [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0xc8, 0x03, : 0 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0xc8, 0x08, : 1 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0xd0, 0x08, : 7 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0xda, 0x03, : 0 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0xe0, 0x08, : 0 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0xe8, 0x03, : 1 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0xf0, 0x03, : 0 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0x90, 0x05, : 2 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0x9a, 0x05, : 0x00 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0xc0, 0x04, : 1 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0xe0, 0x0a, : 1 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0xe2, 0x04, : now [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0xe8, 0x0a, : 0xff, 0xff, 0xff, 0xff, 0x0f [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0xf0, 0x0a, : 0x80, 0xdd, 0xdb, 0x01 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0xf8, 0x0a, : 0 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0xc8, 0x05, : 22 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(5/6) Family Room - code watch - s: 0x18, 0xc0, m: 0xbe, 0x01 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog progress(0/0) Family Room - model: es6 (0x65, 0x73, 0x36) [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0x18, 0xc0, : 0xbe, 0x01 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog progress(0/0) Family Room - firmware: 3.0.2 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0x6a, 0x01, : 52 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0x70, : 0 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0x78, : 24 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0xaa, 0x02, : 1050-46-50 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0xb0, 0x07, : 0 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0xc0, 0x08, : 0 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0xc8, 0x09, : 1 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0xe2, 0x09, : 0x07, 0x08, 0x92, 0x29, 0x10, 0x07, 0x20, 0x02 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0xb8, 0x09, : 1 [6/22/2022, 8:28:54 AM] [homebridge-i6-bigassfans] dblog cluing(4/6) Family Room - initial mystery property value: 0xc2, 0x09, : 0x21, 0x12, 0x05, 0x33, 0x2e, 0x30, 0x2e, 0x31, 0x1a, 0x05, 0x31, 0x2e, 0x35, 0x2e, 0x30, 0x22, 0x11, 0x35, 0x41, 0x3a, 0x34, 0x42, 0x3a, 0x35, 0x44, 0x3a, 0x31, 0x33, 0x3a, 0x41, 0x36, 0x3a, 0x46, 0x34 [6/22/2022, 8:29:53 AM] [homebridge-i6-bigassfans] dblog cluing(5/6) Family Room - code watch - s: 0x18, 0xc0, m: 0xbe, 0x01 [6/22/2022, 8:29:53 AM] [homebridge-i6-bigassfans] dblog cluing(3/6) Family Room - mystery property value: 0xe2, 0x09 changed from: 0x07, 0x08, 0x92, 0x29, 0x10, 0x07, 0x20, 0x02, to: 0x07, 0x08, 0x93, 0x29, 0x10, 0x07, 0x20, 0x02

oogje commented 2 years ago

First, can you install homebridge-i6-bigassfans@0.5.0-beta3?

Then with the same debug log settings as before, restart homebridge, and making a note of the time for each action so we can identify the action in the logs...

and post the output.

Thanks for your patience.

Emotive9 commented 2 years ago

Uplight On [6/23/2022, 9:07:20 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 72, mystery number: 1 [6/23/2022, 9:07:20 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 76, mystery string: now [6/23/2022, 9:07:20 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 82, mystery number: 2 [6/23/2022, 9:07:20 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 83, mystery string: [6/23/2022, 9:07:20 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 172, mystery number: 1 [6/23/2022, 9:07:20 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 174, mystery number: 3600000 [6/23/2022, 9:07:20 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 173, mystery number: -1 [6/23/2022, 9:07:20 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 175, mystery number: 0 Uplight Off [6/23/2022, 9:07:48 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 72, mystery number: 1 [6/23/2022, 9:07:48 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 76, mystery string: now [6/23/2022, 9:07:48 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 82, mystery number: 2 [6/23/2022, 9:07:48 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 83, mystery string: [6/23/2022, 9:07:48 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 172, mystery number: 1 [6/23/2022, 9:07:48 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 174, mystery number: 3600000 [6/23/2022, 9:07:48 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 173, mystery number: -1 [6/23/2022, 9:07:48 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 175, mystery number: 0 [6/23/2022, 9:07:53 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 3, mystery number: 24384 [6/23/2022, 9:07:53 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 6, mystery string: GMT5:00:00GMT4:00:00,M03.02.00/02:00:00,M11.01.00/02:00:00 [6/23/2022, 9:07:53 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 9, mystery string: 32b5a97c-a45b-478f-92f3-076b17668b17 [6/23/2022, 9:07:53 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 118, mystery number: 0 [6/23/2022, 9:07:53 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 13, mystery string: 4 [6/23/2022, 9:07:53 PM] [homebridge-i6-bigassfans] dblog cluing(1/6) Family Room - fell into default, field 171 message with subfield: "2" [6/23/2022, 9:07:53 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 14, mystery number: 0 [6/23/2022, 9:07:53 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 15, mystery number: 24 [6/23/2022, 9:07:53 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 153, mystery number: 1 [6/23/2022, 9:07:53 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 156, mystery string:�: [6/23/2022, 9:07:53 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 37, mystery string: 1050-46-50 [6/23/2022, 9:07:53 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 151, mystery number: 1

Brightness change [6/23/2022, 9:09:53 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 3, mystery number: 24384 [6/23/2022, 9:09:53 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 6, mystery string: GMT5:00:00GMT4:00:00,M03.02.00/02:00:00,M11.01.00/02:00:00 [6/23/2022, 9:09:53 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 9, mystery string: 32b5a97c-a45b-478f-92f3-076b17668b17 [6/23/2022, 9:09:53 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 118, mystery number: 0 [6/23/2022, 9:09:53 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 13, mystery string: 4 [6/23/2022, 9:09:53 PM] [homebridge-i6-bigassfans] dblog cluing(1/6) Family Room - fell into default, field 171 message with subfield: "2" [6/23/2022, 9:09:53 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 14, mystery number: 0 [6/23/2022, 9:09:53 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 15, mystery number: 24 [6/23/2022, 9:09:53 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 153, mystery number: 1 [6/23/2022, 9:09:53 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 156, mystery string:�: [6/23/2022, 9:09:53 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 37, mystery string: 1050-46-50 [6/23/2022, 9:09:53 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 151, mystery number: 1 [6/23/2022, 9:09:56 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 72, mystery number: 1 [6/23/2022, 9:09:56 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 76, mystery string: now [6/23/2022, 9:09:56 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 82, mystery number: 2 [6/23/2022, 9:09:56 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 83, mystery string: [6/23/2022, 9:09:56 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 172, mystery number: 1 [6/23/2022, 9:09:56 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 174, mystery number: 3600000 [6/23/2022, 9:09:56 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 173, mystery number: -1 [6/23/2022, 9:09:56 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 175, mystery number: 0 [6/23/2022, 9:09:56 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 72, mystery number: 1 [6/23/2022, 9:09:56 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 76, mystery string: now [6/23/2022, 9:09:56 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 82, mystery number: 2 [6/23/2022, 9:09:56 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 83, mystery string: [6/23/2022, 9:09:56 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 172, mystery number: 1 [6/23/2022, 9:09:56 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 174, mystery number: 3600000 [6/23/2022, 9:09:56 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 173, mystery number: -1 [6/23/2022, 9:09:56 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 175, mystery number: 0 [6/23/2022, 9:10:03 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 72, mystery number: 1 [6/23/2022, 9:10:03 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 76, mystery string: now [6/23/2022, 9:10:03 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 82, mystery number: 2 [6/23/2022, 9:10:03 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 83, mystery string: [6/23/2022, 9:10:03 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 172, mystery number: 1 [6/23/2022, 9:10:03 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 174, mystery number: 3600000 [6/23/2022, 9:10:03 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 173, mystery number: -1 [6/23/2022, 9:10:03 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 175, mystery number: 0 [6/23/2022, 9:10:03 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 72, mystery number: 1 [6/23/2022, 9:10:03 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 76, mystery string: now [6/23/2022, 9:10:03 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 82, mystery number: 2 [6/23/2022, 9:10:03 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 83, mystery string: [6/23/2022, 9:10:03 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 172, mystery number: 1 [6/23/2022, 9:10:03 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 174, mystery number: 3600000 [6/23/2022, 9:10:03 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 173, mystery number: -1 [6/23/2022, 9:10:03 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 175, mystery number: 0

Bright White [6/23/2022, 9:09:02 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 72, mystery number: 1 [6/23/2022, 9:09:02 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 76, mystery string: now [6/23/2022, 9:09:02 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 82, mystery number: 2 [6/23/2022, 9:09:02 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 83, mystery string: [6/23/2022, 9:09:02 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 172, mystery number: 1 [6/23/2022, 9:09:02 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 174, mystery number: 3600000 [6/23/2022, 9:09:02 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 173, mystery number: -1 [6/23/2022, 9:09:02 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 175, mystery number: 0 Soft White [6/23/2022, 9:09:07 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 72, mystery number: 1 [6/23/2022, 9:09:07 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 76, mystery string: now [6/23/2022, 9:09:07 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 82, mystery number: 2 [6/23/2022, 9:09:07 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 83, mystery string: [6/23/2022, 9:09:07 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 172, mystery number: 1 [6/23/2022, 9:09:07 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 174, mystery number: 3600000 [6/23/2022, 9:09:07 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 173, mystery number: -1 [6/23/2022, 9:09:07 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 175, mystery number: 0

Also to note. The light supports uplight only/downlight only or both controls.

oogje commented 2 years ago

I may be going down the wrong path with the 'cluing' logs but eventually it'll end.

Can you do a similar thing, but just switch from uplight to downlight to both, no need for on/off or brightness/color temp changes. I'm hoping to see one of those mystery fields change.

Emotive9 commented 2 years ago

Uplight Only On [6/27/2022, 12:01:29 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 72, mystery number: 1 [6/27/2022, 12:01:29 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 76, mystery string: now [6/27/2022, 12:01:29 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 82, mystery number: 2 [6/27/2022, 12:01:29 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 83, mystery string: [6/27/2022, 12:01:29 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 172, mystery number: 1 [6/27/2022, 12:01:29 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 174, mystery number: 3600000 [6/27/2022, 12:01:29 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 173, mystery number: -1 [6/27/2022, 12:01:29 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 175, mystery number: 0

Downlight Only On [6/27/2022, 12:00:51 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 72, mystery number: 1 [6/27/2022, 12:00:51 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 76, mystery string: now [6/27/2022, 12:00:51 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 82, mystery number: 1 [6/27/2022, 12:00:51 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 83, mystery string: [6/27/2022, 12:00:51 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 172, mystery number: 1 [6/27/2022, 12:00:51 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 174, mystery number: 3600000 [6/27/2022, 12:00:51 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 173, mystery number: -1 [6/27/2022, 12:00:51 PM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 175, mystery number: 0

Both On [6/27/2022, 11:59:14 AM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 72, mystery number: 1 [6/27/2022, 11:59:14 AM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 76, mystery string: now [6/27/2022, 11:59:14 AM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 82, mystery number: 0 [6/27/2022, 11:59:14 AM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 83, mystery string: [6/27/2022, 11:59:14 AM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 172, mystery number: 1 [6/27/2022, 11:59:14 AM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 174, mystery number: 3600000 [6/27/2022, 11:59:14 AM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 173, mystery number: -1 [6/27/2022, 11:59:14 AM] [homebridge-i6-bigassfans] dblog cluing(6/6) Family Room - field 175, mystery number: 0

oogje commented 2 years ago

Looking good.

As it stands, does the plugin operate either or both of your lights based on uplight only/downlight only or both control in the app and/or remote?

What's that control look like? Is it a three-way switch or maybe a pulldown menu?

Emotive9 commented 2 years ago

Pressing the light button will turn whichever mode was used last. Pressing and holding the light button for about 3 seconds will switch between modes up/down/both. i6_remote-front

The app allows you to manually select each mode. IMG_2226

oogje commented 2 years ago

Can you operate either of up/downlights with the homebridge plugin/homekit or does the fan ignore it when you try?

Emotive9 commented 2 years ago

The fan ignores the light commands it seem but the fan speeds work.

oogje commented 2 years ago

Would you add [“network”, 11] and [“redflags”, 2] to the debugLevels? This will log everything the fan sends to homebridge, including its MAC and IP addresses, wifi access point, etc., although they will be slightly obscured in hexadecimal.

If you don't want to post it here you can email it to me at the address listed in my profile or this temporary address: turbo_titled_0w@icloud.com.

if you want to do this then after adding those attributes to the config file and restarting, note the time, turn the uplight on and off (or off and on) and noting the time, back to its original state using the BAF app, then repeat with the downlight, and again with both, and email or post the logs.

If this doesn't reveal the secrets of the lights then things might start to get complicated 😬.

Emotive9 commented 2 years ago

Sorry for the delay. I will get the logs emailed to you tonight or tomorrow.

oogje commented 2 years ago

No problem. I don’t mind.

oogje commented 2 years ago

I received your email. Thank you.

oogje commented 2 years ago

I assume when either of your up or down lights is on, the HomeKit app shows the light as on. And if both your lights are off, HomeKit shows the light as off. Is that correct?

Emotive9 commented 2 years ago

Currently the light tile does not seem to control the light.

oogje commented 2 years ago

Indeed. But does HomeKit show the changes when you control the light from the remote?

Emotive9 commented 2 years ago

Oh, no. It stays dark like I never hit it. Another oddity is there are 2 fan icons but only one controls the fan.

oogje commented 2 years ago

Just to make sure I understand, you turn on the light with the remote control and the physical light goes on and the light’s state changes in the Big Ass Fans app, but in the Home app the light doesn’t change state?

Emotive9 commented 2 years ago

Correct. I was never able to see the light changes or control them through homekit.

oogje commented 2 years ago

Ok. Here's where we stand. I don't know why the plugin/HomeKit/Home app isn't indicating when at least one of the lights is on. As far as I can tell, your fan is reporting light status just like the other models but it has an additional field to indicate which light (up, down or both) it's talking about. So if either light is on, the Home app should indicate that. At this stage of the game we don't need to figure out why the Home app doesn't control your lights because it doesn't even show your light(s) status. If we find the cause of that problem then the control issue will probably fall into place.

I don't know why you see two fans, I haven't seen that happen before.

I used the most recent logs you sent me to simulate your fan and I don't see any problem. When I pass the messages your fan sent into my simulation the light turns on (to 47% brightness) when you you indicate you turned on both lights.

But I don't have your fan's message from the start of the session (where it reports that it's an es6, etc) so maybe something interesting is happening there that I don't see.

There are bunch of things to do if you have the patience.

It would be useful if you can get back to a clean slate, remove the plugin, clear your cache, install the latest beta, homebridge-i6-bigassfans@0.5.2-beta2, and before you start up set the debugLevels to:

 "debugLevels": [
  ["light", 2],
  ["cluing", 6],
  ["redflags", 1],
  ["newcode", 1],
  [“network”, 11],
  ["characteristics", 1]
]

Then, with the remote control or the BAF app flip a light on and off or off and on and email me everything marked 'BigAssFans-i6' from the log.

Thanks.

Emotive9 commented 2 years ago

I've updated to the latest beta, removed the fan from the config, cleared the cache (the fan was in there twice), restarted and added the fan back. I now see the light control reflects what I do on the fan and can also control the light from the homekit app. Using homekit control sets both up and downlight.

Logs have been emailed. Thanks!

oogje commented 2 years ago

Excellent. Now we can figure out how to implement the light selection control. I need to experiment with some ideas to see what's even possible given my understanding of homebridge.

Does the Home app honor the selection you make with the BAF app or does it affect both lights no matter what you have previously selected with the BAF app?

oogje commented 2 years ago

By the way, I don't see the text from the initial setup and then where your fan reports its model (product type) and firmware nor the data stream the would have preceded it. I would expect it to be closer to the beginning of the file before you turned the light on. Maybe you could mail me the entire log file?

oogje commented 2 years ago

I received the start logs. Thank you!

Emotive9 commented 2 years ago

New logs sent.

If I change the uplight or downlight only homekit will control the last used light.

oogje commented 2 years ago

Good to know it honors the up/down light selection.

oogje commented 2 years ago

I've published homebridge-i6-bigassfans@0.5.2-beta3 which tries to handle multiple lights. It works by creating two lights rather than an up/down/both switch (I don't know how to make a 3-way switch control).

You should clear the homebridge-i6-bigassfan's accessory cache as this version renames the downlight internally.

On start there will be only one light but when the fan sends a message indicating there is an additional light, that light will be created.

When I feed your log output to my simulator it seems to work, so I have some confidence the Home app will display the state of your lights correctly. Having said that, in my testing sometimes there's a delay in the Home app's updating the uplight status on some devices - not always the same ones. You might even have to refresh the Home app by leaving it and coming back to it. Viewing accessories with the Homebridge UI plug doesn't have this issue, nor does the Home app on my Mac (which is on ethernet). I don't know if it's my home wireless network or what. If you experience the refresh issue we'll look into if and when everything else is working as it should.

Finally, I have no way of testing how your fan's light respond when you change states from the Home app. I took a guess how to make that work.

Emotive9 commented 2 years ago

Just tested and everything works fine. Each light can be controlled and I have not noticed any delay in the status updates. Thanks for all your help with this.

oogje commented 2 years ago

That’s great. Thanks for sticking with it.