homebridge-keylights
homebridge-keylights copied to clipboard
spread-the-word - extremely chatty
Hi there - first off much thanks for this plugin. I've been using it for almost a year now and it has been wonderfully convenient to access and control the Key Lights through HomeKit.
I recently ran Homebridge debug with * to look into some other issue, but discovered the logs flooded with activity from spread-the-word. I haven't looked deeply yet into the library but figured I'd start here since it's a transitive dep and could be a configuration issue in how it's initialized. Sample of the logs that is pretty much non-stop:
2022-11-03T20:49:05.198Z SpreadTheWord:Server response from 192.168.1.1
2022-11-03T20:49:05.198Z SpreadTheWord:Server added 4 records
2022-11-03T20:49:05.199Z SpreadTheWord:Listener querying unresolved record openthread.thread.home.arpa
2022-11-03T20:49:05.199Z SpreadTheWord:Listener querying unresolved record _dacp._tcp.local
2022-11-03T20:49:05.200Z SpreadTheWord:Server query from 172.21.147.128
2022-11-03T20:49:05.200Z SpreadTheWord:Server question: openthread.thread.home.arpa ANY
2022-11-03T20:49:05.200Z SpreadTheWord:Server answer all
2022-11-03T20:49:05.200Z SpreadTheWord:Server question: _dacp._tcp.local ANY
2022-11-03T20:49:05.200Z SpreadTheWord:Server answer all
2022-11-03T20:49:05.261Z SpreadTheWord:TXT parse <Buffer 06 63 23 3d 31 39 39 04 66 66 3d 30 14 69 64 3d 30 45 3a 45 45 3a 33 41 3a 36 39 3a 41 31 3a 38 36 0d 6d 64 3d 68 6f 6d 65 62 72 69 64 67 65 06 70 76 ... 31 more bytes> { binary: undefined }
2022-11-03T20:49:05.261Z SpreadTheWord:TXT parse output {
'c#': '199',
ff: '0',
id: '0E:EE:3A:69:A1:86',
md: 'homebridge',
pv: '1.1',
's#': '1',
sf: '0',
ci: '2',
sh: 'MPJecA=='
} { binary: undefined }
2022-11-03T20:49:05.261Z SpreadTheWord:TXT parse <Buffer 04 63 23 3d 32 04 66 66 3d 30 14 69 64 3d 30 45 3a 31 33 3a 30 36 3a 30 33 3a 30 42 3a 33 33 0d 6d 64 3d 68 6f 6d 65 62 72 69 64 67 65 06 70 76 3d 31 ... 29 more bytes> { binary: undefined }
2022-11-03T20:49:05.262Z SpreadTheWord:TXT parse output {
'c#': '2',
ff: '0',
id: '0E:13:06:03:0B:33',
md: 'homebridge',
pv: '1.1',
's#': '1',
sf: '0',
ci: '2',
sh: 'cmYnqA=='
} { binary: undefined }
2022-11-03T20:49:05.262Z SpreadTheWord:TXT parse <Buffer 04 63 23 3d 37 04 66 66 3d 30 14 69 64 3d 30 45 3a 44 37 3a 35 44 3a 38 44 3a 37 39 3a 38 31 0d 6d 64 3d 68 6f 6d 65 62 72 69 64 67 65 06 70 76 3d 31 ... 29 more bytes> { binary: undefined }
2022-11-03T20:49:05.262Z SpreadTheWord:TXT parse output {
'c#': '7',
ff: '0',
id: '0E:D7:5D:8D:79:81',
md: 'homebridge',
pv: '1.1',
's#': '1',
sf: '0',
ci: '2',
sh: 'QMGQsg=='
} { binary: undefined }
2022-11-03T20:49:05.263Z SpreadTheWord:TXT parse <Buffer 06 63 23 3d 31 34 32 04 66 66 3d 30 14 69 64 3d 30 45 3a 37 35 3a 39 44 3a 43 38 3a 39 35 3a 31 38 0d 6d 64 3d 68 6f 6d 65 62 72 69 64 67 65 06 70 76 ... 31 more bytes> { binary: undefined }
2022-11-03T20:49:05.263Z SpreadTheWord:TXT parse output {
'c#': '142',
ff: '0',
id: '0E:75:9D:C8:95:18',
md: 'homebridge',
pv: '1.1',
's#': '1',
sf: '0',
ci: '2',
sh: 'ZGu2Gg=='
} { binary: undefined }
2022-11-03T20:49:05.264Z SpreadTheWord:TXT parse <Buffer 04 63 23 3d 33 04 66 66 3d 30 14 69 64 3d 30 45 3a 33 36 3a 43 33 3a 38 32 3a 43 36 3a 35 44 0d 6d 64 3d 68 6f 6d 65 62 72 69 64 67 65 06 70 76 3d 31 ... 29 more bytes> { binary: undefined }
2022-11-03T20:49:05.265Z SpreadTheWord:TXT parse output {
'c#': '3',
ff: '0',
id: '0E:36:C3:82:C6:5D',
md: 'homebridge',
pv: '1.1',
's#': '1',
sf: '0',
ci: '2',
sh: '06IqCQ=='
} { binary: undefined }
2022-11-03T20:49:05.267Z SpreadTheWord:TXT parse <Buffer 04 63 23 3d 33 04 66 66 3d 30 14 69 64 3d 30 45 3a 35 41 3a 43 44 3a 35 44 3a 42 35 3a 45 41 0d 6d 64 3d 68 6f 6d 65 62 72 69 64 67 65 06 70 76 3d 31 ... 29 more bytes> { binary: undefined }
2022-11-03T20:49:05.267Z SpreadTheWord:TXT parse output {
'c#': '3',
ff: '0',
id: '0E:5A:CD:5D:B5:EA',
md: 'homebridge',
pv: '1.1',
's#': '1',
sf: '0',
ci: '2',
sh: 'yza0kQ=='
} { binary: undefined }
2022-11-03T20:49:05.268Z SpreadTheWord:Server response from 192.168.1.102
2022-11-03T20:49:05.270Z SpreadTheWord:Server added 20 records
2022-11-03T20:49:05.272Z SpreadTheWord:Listener querying unresolved record openthread.thread.home.arpa
2022-11-03T20:49:05.273Z SpreadTheWord:Listener querying unresolved record _dacp._tcp.local
2022-11-03T20:49:05.274Z SpreadTheWord:Server query from 172.21.147.128
2022-11-03T20:49:05.275Z SpreadTheWord:Server question: openthread.thread.home.arpa ANY
2022-11-03T20:49:05.275Z SpreadTheWord:Server answer all
2022-11-03T20:49:05.276Z SpreadTheWord:Server question: _dacp._tcp.local ANY
2022-11-03T20:49:05.276Z SpreadTheWord:Server answer all
2022-11-03T20:49:05.312Z SpreadTheWord:TXT parse <Buffer 0b 73 68 3d 6b 32 44 73 50 67 3d 3d 05 63 69 3d 31 30 04 73 66 3d 30 05 73 23 3d 34 35 06 70 76 3d 31 2e 31 08 6d 64 3d 43 47 44 4e 31 14 69 64 3d 37 ... 26 more bytes> { binary: undefined }
2022-11-03T20:49:05.313Z SpreadTheWord:TXT parse output {
sh: 'k2DsPg==',
ci: '10',
sf: '0',
's#': '45',
pv: '1.1',
md: 'CGDN1',
id: '7A:67:15:8D:D4:D7',
ff: '1',
'c#': '3'
} { binary: undefined }
2022-11-03T20:49:05.315Z SpreadTheWord:Server response from 192.168.1.1
2022-11-03T20:49:05.316Z SpreadTheWord:Server added 4 records
2022-11-03T20:49:05.317Z SpreadTheWord:Listener querying unresolved record openthread.thread.home.arpa
2022-11-03T20:49:05.318Z SpreadTheWord:Listener querying unresolved record _dacp._tcp.local
2022-11-03T20:49:05.320Z SpreadTheWord:Server query from 172.21.147.128
2022-11-03T20:49:05.320Z SpreadTheWord:Server question: openthread.thread.home.arpa ANY
2022-11-03T20:49:05.322Z SpreadTheWord:Server answer all
2022-11-03T20:49:05.323Z SpreadTheWord:Server question: _dacp._tcp.local ANY
2022-11-03T20:49:05.324Z SpreadTheWord:Server answer all
2022-11-03T20:49:05.367Z SpreadTheWord:TXT parse <Buffer 09 6d 66 3d 45 6c 67 61 74 6f 06 64 74 3d 32 30 30 14 69 64 3d 33 43 3a 36 41 3a 39 44 3a 31 39 3a 31 41 3a 33 41 21 6d 64 3d 45 6c 67 61 74 6f 20 4b ... 29 more bytes> { binary: undefined }
2022-11-03T20:49:05.367Z SpreadTheWord:TXT parse output {
mf: 'Elgato',
dt: '200',
id: '3C:6A:9D:19:1A:3A',
md: 'Elgato Key Light Air XXXXXXXXX',
pv: '1.0'
} { binary: undefined }
I'm running Homebridge in a container with bridged networking; in this case 172.21.147.128
refers to the Homebridge instance. All the other 192.* addresses are local devices on the network.
Based on my understanding of the plugin, I'm expecting discovery to happen at start, but then it should be pretty quiet once accessories are initialized. I've seen some chatter around HomePods flooding the network with openthread.thread.home.arpa queries, but my expectation is that this plugin wouldn't (shouldn't?) care once the accessories have been initialized. Is this expected behavior based of stw based on the needs of this plugin?
Hi there,
You're right, that's a lot of noise by stw. I was in the process of rewriting the plug-in before moving to a new place and haven't had the time yet to finish the job.
It might be that discovery is running all the time to find new lights, but that's probably not the best way to do. I'll see if I can fix this in the new version.
Spread the word has been replaced with bonjour-service in the latest release. This issue should be resolved now.
Thank you! Appreciate all the work you've put into this plugin. :pray: