aranet4-exporter-go icon indicating copy to clipboard operation
aranet4-exporter-go copied to clipboard

Updates fail with "Field not found: Bonded"

Open tris opened this issue 7 months ago • 0 comments

Environment is:

  • Aranet4 Home
  • Raspberry Pi Zero 2 W
  • Raspberry Pi OS Lite (32-bit)
  • Kernel version: 6.6
  • Debian version: 12 (bookworm)
  • bluetooth=5.66-1+rpt1+deb12u1
  • pi-bluetooth=0.1.20
  • bluez=5.66-1+rpt+deb12u1
  • aranet4-exporter=1.0.0

I paired and trusted my Aranet4 with bluetoothctl just fine, but after installing/starting aranet4-exporter, it's not happy:

Jun 30 15:20:55 pi aranet4-exporter[32581]: 2024/06/30 15:20:55 Monitoring aranet xx:xx:xx:xx:xx:xx as room=office
Jun 30 15:20:55 pi aranet4-exporter[32581]: 2024/06/30 15:20:55 Prometheus metrics: :9963/metrics
Jun 30 15:21:05 pi aranet4-exporter[32581]: 2024/06/30 15:21:05 failed update (xx:xx:xx:xx:xx:xx): failed connecting to aranet4: could not find device "xx:xx:xx:xx:xx:xx": MapToStruct: Field not found: Bonded
Jun 30 15:21:15 pi aranet4-exporter[32581]: 2024/06/30 15:21:15 failed update (xx:xx:xx:xx:xx:xx): failed connecting to aranet4: could not find device "xx:xx:xx:xx:xx:xx": MapToStruct: Field not found: Bonded
Jun 30 15:21:25 pi aranet4-exporter[32581]: 2024/06/30 15:21:25 failed update (xx:xx:xx:xx:xx:xx): failed connecting to aranet4: could not find device "xx:xx:xx:xx:xx:xx": MapToStruct: Field not found: Bonded

I suspect this is because the go-bluetooth dependency is slightly out of date.

tris avatar Jun 30 '24 23:06 tris