How to check if Bluetooth hardware on Pi is alright

continuing from New 97.2 setup, bluetooth device_tracker does nothing
I wonder if my bluetooth hardware is alright on the Pi. Would anyone of you know how to check?
Or if and how we need/can enable it? I understand this https://www.home-assistant.io/docs/installation/hassbian/integrations/ as if we shouldn’t have to do anything?

this is the hardware my Hassio system sees:

wouldn’t know why so many disks are there btw, it is a brand new flashed sd card…
thanks for having a look

1 Like

It should already be enabled, because it’s not a separate device, it is part of the network stack. On hassio, the entire network stack is passed through. There shouldn’t be anything required to enable it.

yes, and it was like that before on this Pi.
Im simply using a brand new card now, and rebuilding the system.

No way I can see anything Bluetooth related… not even an error message setting it up

1 Like

You just enable the bluetooth device tracker and it should work. If it doesn’t, there will be something written to the logs.

yep, as I would have hoped. Unfortunately that is not the case. This is my configuration:

homeassistant:
  auth_providers:
   - type: homeassistant
   - type: trusted_networks
     trusted_networks:
       - 127.0.0.1
       - 192.168.1.0/24

#default_config:
config:

device_tracker:
  - platform: bluetooth_tracker
    new_device_defaults:
      track_new_devices: true

frontend:
history:

http: !include http.yaml
logbook:
logger: !include logger.yaml

lovelace:
  mode: yaml

map:
mobile_app:
mqtt_statestream: !include mqtt_statestreams.yaml

panel_iframe: !include panel_iframe.yaml
person:

ssdp:

sun:
system_health:
updater:
zeroconf:

and there’s absolutely no reference to bluetooth in the logs. I have this in logger:

# https://home-assistant.io/components/logger/
# Possible log severities: critical, fatal, error, warning, warn, info, debug, notset
default: error
logs:
  ayncio: debug
#  homeassistant.components.device_tracker: warn
#  homeassistant.components.mqtt: warn
#  homeassistant.components.device_tracker.mqtt: info
  homeassistant.components.device_tracker.bluetooth_tracker: debug
  homeassistant.components.device_tracker: info
#  homeassistant.components.logbook: warn
#  homeassistant.components.logger: warn
#  homeassistant.components.hassio: debug
#  homeassistant.components.script: debug
#  homeassistant.components.weather: warn
#  homeassistant.components.recorder: info
#  homeassistant.components.python_script: warn
#  homeassistant.components.script: debug
#  homeassistant.components.nmap_tracker: error
#  homeassistant.helpers.entity: critical
  homeassistant.setup: info
  homeassistant.core: info
2019-08-27 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain logger took 0.0 seconds.
2019-08-27 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up http
2019-08-27 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.0 seconds.
2019-08-27 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up system_log
2019-08-27 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain system_log took 0.0 seconds.
2019-08-27 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up recorder
2019-08-27 12:51:30 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 1.0 seconds.
2019-08-27 12:51:30 INFO (MainThread) [homeassistant.setup] Setting up group
2019-08-27 12:51:30 INFO (MainThread) [homeassistant.setup] Setup of domain group took 0.0 seconds.
2019-08-27 12:51:30 INFO (MainThread) [homeassistant.setup] Setting up updater
2019-08-27 12:51:31 INFO (MainThread) [homeassistant.setup] Setting up ssdp
2019-08-27 12:51:31 INFO (MainThread) [homeassistant.setup] Setup of domain ssdp took 0.0 seconds.
2019-08-27 12:51:31 INFO (MainThread) [homeassistant.setup] Setting up sun
2019-08-27 12:51:31 INFO (MainThread) [homeassistant.setup] Setup of domain sun took 0.1 seconds.
2019-08-27 12:51:31 INFO (MainThread) [homeassistant.setup] Setting up cast
2019-08-27 12:51:31 INFO (MainThread) [homeassistant.setup] Setup of domain cast took 0.0 seconds.
2019-08-27 12:51:31 INFO (MainThread) [homeassistant.setup] Setting up person
2019-08-27 12:51:32 INFO (MainThread) [homeassistant.setup] Setting up hue
2019-08-27 12:51:32 INFO (MainThread) [homeassistant.setup] Setup of domain hue took 0.0 seconds.
2019-08-27 12:51:32 INFO (MainThread) [homeassistant.setup] Setting up lovelace
2019-08-27 12:51:32 INFO (MainThread) [homeassistant.setup] Setup of domain lovelace took 0.0 seconds.
2019-08-27 12:51:32 INFO (MainThread) [homeassistant.setup] Setting up zone
2019-08-27 12:51:32 INFO (MainThread) [homeassistant.setup] Setup of domain zone took 0.0 seconds.
2019-08-27 12:51:32 INFO (MainThread) [homeassistant.setup] Setting up tradfri
2019-08-27 12:51:32 INFO (MainThread) [homeassistant.setup] Setup of domain tradfri took 0.0 seconds.
2019-08-27 12:51:32 INFO (MainThread) [homeassistant.setup] Setup of domain updater took 1.8 seconds.
2019-08-27 12:51:32 INFO (MainThread) [homeassistant.setup] Setting up system_health
2019-08-27 12:51:32 INFO (MainThread) [homeassistant.setup] Setup of domain system_health took 0.0 seconds.
2019-08-27 12:51:32 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
2019-08-27 12:51:32 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds.
2019-08-27 12:51:32 INFO (MainThread) [homeassistant.setup] Setting up auth
2019-08-27 12:51:32 INFO (MainThread) [homeassistant.setup] Setup of domain auth took 0.0 seconds.
2019-08-27 12:51:33 INFO (MainThread) [homeassistant.setup] Setting up api
2019-08-27 12:51:33 INFO (MainThread) [homeassistant.setup] Setting up config
2019-08-27 12:51:33 INFO (MainThread) [homeassistant.setup] Setting up webhook
2019-08-27 12:51:33 INFO (MainThread) [homeassistant.setup] Setup of domain webhook took 0.0 seconds.
2019-08-27 12:51:33 INFO (MainThread) [homeassistant.setup] Setting up history
2019-08-27 12:51:33 INFO (MainThread) [homeassistant.setup] Setup of domain history took 0.0 seconds.
2019-08-27 12:51:34 INFO (MainThread) [homeassistant.setup] Setting up mqtt
2019-08-27 12:51:34 INFO (MainThread) [homeassistant.setup] Setup of domain mqtt took 0.0 seconds.
2019-08-27 12:51:34 INFO (MainThread) [homeassistant.setup] Setting up device_tracker
2019-08-27 12:51:34 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.4 seconds.
2019-08-27 12:51:34 INFO (MainThread) [homeassistant.setup] Setting up onboarding
2019-08-27 12:51:34 INFO (MainThread) [homeassistant.setup] Setup of domain config took 0.4 seconds.
2019-08-27 12:51:35 INFO (MainThread) [homeassistant.setup] Setting up mobile_app
2019-08-27 12:51:35 INFO (MainThread) [homeassistant.setup] Setting up media_player
2019-08-27 12:51:35 INFO (MainThread) [homeassistant.setup] Setup of domain media_player took 0.0 seconds.
2019-08-27 12:51:35 INFO (MainThread) [homeassistant.setup] Setting up zeroconf
2019-08-27 12:51:35 INFO (MainThread) [homeassistant.setup] Setup of domain onboarding took 1.4 seconds.
2019-08-27 12:51:35 INFO (MainThread) [homeassistant.setup] Setup of domain mobile_app took 0.4 seconds.
2019-08-27 12:51:35 INFO (MainThread) [homeassistant.components.device_tracker] Setting up device_tracker.legacy
2019-08-27 12:51:35 INFO (MainThread) [homeassistant.setup] Setting up mqtt_statestream
2019-08-27 12:51:35 INFO (MainThread) [homeassistant.setup] Setup of domain mqtt_statestream took 0.0 seconds.
2019-08-27 12:51:36 INFO (MainThread) [homeassistant.setup] Setting up frontend
2019-08-27 12:51:36 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 0.0 seconds.
2019-08-27 12:51:36 INFO (MainThread) [homeassistant.setup] Setting up sensor
2019-08-27 12:51:36 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 0.0 seconds.
2019-08-27 12:51:36 INFO (MainThread) [homeassistant.setup] Setting up binary_sensor
2019-08-27 12:51:36 INFO (MainThread) [homeassistant.setup] Setup of domain binary_sensor took 0.0 seconds.
2019-08-27 12:51:36 INFO (MainThread) [homeassistant.setup] Setting up notify
2019-08-27 12:51:36 INFO (MainThread) [homeassistant.setup] Setup of domain notify took 0.0 seconds.
2019-08-27 12:51:36 INFO (MainThread) [homeassistant.setup] Setting up panel_custom
2019-08-27 12:51:36 INFO (MainThread) [homeassistant.setup] Setup of domain panel_custom took 0.0 seconds.
2019-08-27 12:51:36 INFO (MainThread) [homeassistant.setup] Setting up map
2019-08-27 12:51:36 INFO (MainThread) [homeassistant.setup] Setup of domain map took 0.0 seconds.
2019-08-27 12:51:36 INFO (MainThread) [homeassistant.setup] Setting up panel_iframe
2019-08-27 12:51:36 INFO (MainThread) [homeassistant.setup] Setup of domain panel_iframe took 0.0 seconds.
2019-08-27 12:51:36 INFO (MainThread) [homeassistant.setup] Setting up logbook
2019-08-27 12:51:36 INFO (MainThread) [homeassistant.setup] Setup of domain logbook took 0.0 seconds.
2019-08-27 12:51:36 INFO (MainThread) [homeassistant.setup] Setting up light
2019-08-27 12:51:36 INFO (MainThread) [homeassistant.setup] Setup of domain person took 4.3 seconds.
2019-08-27 12:51:36 INFO (MainThread) [homeassistant.setup] Setup of domain light took 0.1 seconds.
2019-08-27 12:51:36 INFO (MainThread) [homeassistant.setup] Setting up hassio
2019-08-27 12:51:36 INFO (MainThread) [homeassistant.setup] Setup of domain zeroconf took 1.3 seconds.
2019-08-27 12:51:36 INFO (MainThread) [homeassistant.setup] Setting up switch
2019-08-27 12:51:36 INFO (MainThread) [homeassistant.setup] Setup of domain switch took 0.0 seconds.
2019-08-27 12:51:37 INFO (MainThread) [homeassistant.setup] Setup of domain hassio took 1.1 seconds.
2019-08-27 12:51:56 INFO (MainThread) [homeassistant.setup] Setup of domain device_tracker took 22.8 seconds.
2019-08-27 12:51:56 INFO (MainThread) [homeassistant.components.device_tracker] Setting up device_tracker.mobile_app
2019-08-27 12:51:57 INFO (MainThread) [homeassistant.setup] Setting up owntracks
2019-08-27 12:51:57 INFO (MainThread) [homeassistant.setup] Setup of domain owntracks took 0.0 seconds.
2019-08-27 12:51:57 INFO (MainThread) [homeassistant.components.device_tracker] Setting up device_tracker.owntracks
2019-08-27 12:51:57 INFO (MainThread) [homeassistant.core] Starting Home Assistant
2019-08-27 12:51:57 INFO (MainThread) [homeassistant.core] Timer:starting

In rebuilding did you upgrade to buster by any chance?

Really sorry, but I don’t know what that is… dld the image from Gettitng started… 32 b version Rpi3

1 Like

Did you ever get this resolved? I’m right there now!

not really, never looked back to be honest, I use this Pi for other things than BT tracking now… It did find a few BT devices after all, but never updates the states…

On a related topic…

I have an alert to notify me if the bluetooth on the RPi dies or doesn’t work on after a restart as occasionally happens on mine.

Here’s the binary sensor I currently use to trigger the alert. It works, but depends on at least one of these devices being configured. I’d like to set something that would detect the service directly so it is independent of any particular device.

    bluetooth_alert:
      friendly_name: Bluetooth
      icon_template: mdi:bluetooth-off
      value_template: >
        {{ true if states('device_tracker.jphone_bt') in ['unknown','unavailable','none']
              and states('device_tracker.sphone_bt') in ['unknown','unavailable','none'] 
              and states('device_tracker.jlaptop_bt') in ['unknown','unavailable','none'] else false }}

Anyone have any idea how one would go about setting up a sensor for this? Is there a shell command that can be used to determine if bluetooth is running on the RPi?

1 Like