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.
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
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…
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?