Skip to content

monitor stopped performing scans, bluetoothctl error #312

Open
@airdrummingfool

Description

@airdrummingfool

I'm creating this issue mostly to document a problem I found, in case it happens to someone else.

I noticed after a long period (weeks) of uptime, at some point after a restart of HA and monitor (using an MQTT message to monitor/scan/restart), monitor stopped actually scanning and finding my devices.

monitor continued to respond to MQTT messages such as restart and status, but any time a scan was requested, nothing would be posted back to MQTT - no confidence report messages or anything indicating that the scan happened.

The only log entry that I could find that seemed relevant was a message from bluetoothctl regarding a source not found. The presence of this message during monitor's startup seemed to correlate with monitor not working.

bluetoothctl[2406]: Source ID 20 was not found when attempting to remove it

Restarting monitor (using monitor/scan/restart) did not fix things, nor did anything else I tried short of a full reboot of my Raspberry Pi.

It would be cool if there was a way to trigger a full reboot of the host device that monitor was running on via MQTT, for times where something like this happens. However, this might not be a realistic request: host devices/monitor setups vary considerably, and a simple sudo reboot might not always work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions