@homebridge-plugins/homebridge-govee 11.32.2-beta.29 → 11.32.2-beta.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -45,7 +45,7 @@ All notable changes to `@homebridge-plugins/homebridge-govee` will be documented
45
45
  - feat: add the H5161 power strip and give the H7184 kitchen composter an on and off switch
46
46
  - feat: recognise three more sensors, which report what they send, and say plainly in the log why a sensor has no tile yet
47
47
  - feat: add ble encryption for the H3001 solar string lights, which silently ignore unencrypted frames (#1328) (@dominick-han)
48
- - fix: only mention an unrecognised bluetooth broadcast when the device is on your own account, since a scan also hears the neighbours
48
+ - fix: mention an unrecognised bluetooth broadcast once, and only when the device is on your own account, since a scan also hears the neighbours
49
49
 
50
50
  ## v11.32.1 (2026-08-02)
51
51
 
@@ -134,25 +134,28 @@ export default class BLEConnection {
134
134
  ? advertisement.manufacturerData.toString('hex')
135
135
  : 'no manufacturer data'
136
136
 
137
- // Bluetooth is a broadcast medium, so this scan hears every Govee
138
- // device in range - including a neighbour's, which is not something
139
- // the owner can do anything about. Only a device on this account is
140
- // worth putting in front of them.
141
- const isOurs = this.platform.hasBleDevice(address)
142
- const line = `[BLE] unrecognised broadcast from a govee device - please include this line if you report it: ${JSON.stringify({
143
- name: unknownName,
144
- address,
145
- source: 'BLE',
146
- kind: 'broadcast',
147
- raw,
148
- })}`
149
-
150
- // Say it once so it is actually noticed, then stay quiet about this
151
- // device for the rest of the session - it rebroadcasts constantly.
152
- if (isOurs && isFirstReport(`ble|${address}|${raw}`)) {
153
- this.log.warn(line)
154
- } else {
155
- this.log.debug(line)
137
+ // A device rebroadcasts constantly, so say this once and then stay
138
+ // quiet about it for the rest of the session. This has to come first:
139
+ // gating it on the warning below would leave every other broadcast
140
+ // ungoverned, and a debug log would fill with the same line.
141
+ if (isFirstReport(`ble|${address}|${raw}`)) {
142
+ const line = `[BLE] unrecognised broadcast from a govee device - please include this line if you report it: ${JSON.stringify({
143
+ name: unknownName,
144
+ address,
145
+ source: 'BLE',
146
+ kind: 'broadcast',
147
+ raw,
148
+ })}`
149
+
150
+ // Bluetooth is a broadcast medium, so this scan hears every Govee
151
+ // device in range - including a neighbour's, which is not something
152
+ // the owner can do anything about. Only a device on this account is
153
+ // worth putting in front of them.
154
+ if (this.platform.hasBleDevice(address)) {
155
+ this.log.warn(line)
156
+ } else {
157
+ this.log.debug(line)
158
+ }
156
159
  }
157
160
  }
158
161
  return
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@homebridge-plugins/homebridge-govee",
3
3
  "alias": "Govee",
4
4
  "type": "module",
5
- "version": "11.32.2-beta.29",
5
+ "version": "11.32.2-beta.30",
6
6
  "description": "Homebridge plugin to integrate Govee devices into HomeKit.",
7
7
  "author": {
8
8
  "name": "bwp91",