RA stoped working if another system process blocked the Bluetooth device
See original GitHub issueDescribe the bug After the v2.15.0 update Room Assistant stoped working with ibeacon companion app.
before the update everything was fine. as you can see
On Start my beacon companion app is some kind of Discovered but is not shown in HA.
there must something wrong inside the HomeAssistant Plugin. The MQTT Message shows my beacon is online
Setup: HomeAssistant with Supervisor Plugin Room Assistant 1 Nodes: Raspi Pi4 with latest Rasbian OS 2 Node Raspi Zero with latest Rasbian OS
To reproduce Update to v2.15.0
Relevant logs
Logs from HomeAssistant
Mar 16 06:11:30 homeassistant 8761805a77ad[1161]: [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
Mar 16 06:11:30 homeassistant 8761805a77ad[1161]: [s6-init] ensuring user provided files have correct perms...exited 0.
Mar 16 06:11:30 homeassistant 8761805a77ad[1161]: [fix-attrs.d] applying ownership & permissions fixes...
Mar 16 06:11:30 homeassistant 8761805a77ad[1161]: [fix-attrs.d] done.
Mar 16 06:11:30 homeassistant 8761805a77ad[1161]: [cont-init.d] executing container initialization scripts...
Mar 16 06:11:30 homeassistant 8761805a77ad[1161]: [cont-init.d] done.
Mar 16 06:11:30 homeassistant 8761805a77ad[1161]: [services.d] starting services
Mar 16 06:11:30 homeassistant 8761805a77ad[1161]: [services.d] done.
Mar 16 06:11:30 homeassistant 8761805a77ad[1161]: [06:11:30] ERROR: #033[35mGot unexpected response from the API: Service not enabled#033[0m
Mar 16 06:11:30 homeassistant 8761805a77ad[1161]: [06:11:30] INFO: #033[32mCopying room-assistant configuration from /config/room_assistant#033[0m
Mar 16 06:11:30 homeassistant 8761805a77ad[1161]: [06:11:30] INFO: #033[32mStarting room-assistant#033[0m
Mar 16 06:11:32 homeassistant 8761805a77ad[1161]: *** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
Mar 16 06:11:32 homeassistant 8761805a77ad[1161]: *** WARNING *** Please fix your application to use the native API of Avahi!
Mar 16 06:11:32 homeassistant 8761805a77ad[1161]: *** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>
Mar 16 06:11:32 homeassistant 8761805a77ad[1161]: *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
Mar 16 06:11:32 homeassistant 8761805a77ad[1161]: *** WARNING *** Please fix your application to use the native API of Avahi!
Mar 16 06:11:32 homeassistant 8761805a77ad[1161]: *** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>
Mar 16 06:11:33 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:33 AM - info - IntegrationsModule: Loading integrations: bluetooth-low-energy, home-assistant
Mar 16 06:11:34 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:34 AM - info - NestFactory: Starting Nest application...
Mar 16 06:11:35 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:35 AM - info - InstanceLoader: AppModule dependencies initialized
Mar 16 06:11:35 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:35 AM - info - InstanceLoader: ConfigModule dependencies initialized
Mar 16 06:11:35 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:35 AM - info - InstanceLoader: NestEmitterModule dependencies initialized
Mar 16 06:11:35 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:35 AM - info - InstanceLoader: IntegrationsModule dependencies initialized
Mar 16 06:11:35 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:35 AM - info - InstanceLoader: HttpModule dependencies initialized
Mar 16 06:11:35 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:35 AM - info - InstanceLoader: DiscoveryModule dependencies initialized
Mar 16 06:11:35 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:35 AM - info - InstanceLoader: PrometheusModule dependencies initialized
Mar 16 06:11:35 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:35 AM - info - InstanceLoader: ClusterModule dependencies initialized
Mar 16 06:11:35 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:35 AM - info - InstanceLoader: TerminusModule dependencies initialized
Mar 16 06:11:35 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:35 AM - info - InstanceLoader: BluetoothModule dependencies initialized
Mar 16 06:11:35 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:35 AM - info - InstanceLoader: ScheduleModule dependencies initialized
Mar 16 06:11:35 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:35 AM - info - InstanceLoader: EntitiesModule dependencies initialized
Mar 16 06:11:35 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:35 AM - info - InstanceLoader: BluetoothLowEnergyModule dependencies initialized
Mar 16 06:11:35 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:35 AM - info - InstanceLoader: HomeAssistantModule dependencies initialized
Mar 16 06:11:35 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:35 AM - info - InstanceLoader: StatusModule dependencies initialized
Mar 16 06:11:35 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:35 AM - info - RoutesResolver: EntitiesController {/entities}:
Mar 16 06:11:35 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:35 AM - info - RouterExplorer: Mapped {/entities, GET} route
Mar 16 06:11:35 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:35 AM - info - RoutesResolver: StatusController {/status}:
Mar 16 06:11:35 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:35 AM - info - RouterExplorer: Mapped {/status, GET} route
Mar 16 06:11:35 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:35 AM - info - RoutesResolver: PrometheusController {/metrics}:
Mar 16 06:11:35 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:35 AM - info - RouterExplorer: Mapped {/metrics, GET} route
Mar 16 06:11:35 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:35 AM - info - HomeAssistantService: Successfully connected to MQTT broker at mqtt://localhost:1883
Mar 16 06:11:35 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:35 AM - info - ConfigService: Loading configuration from /usr/lib/node_modules/room-assistant/dist/config/definitions/default.js, config/local.yml (Current: /room-assistant)
Mar 16 06:11:36 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:36 AM - info - ClusterService: Starting mDNS advertisements and discovery
Mar 16 06:11:36 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:36 AM - info - NestApplication: Nest application successfully started
Mar 16 06:11:36 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:36 AM - info - BluetoothLowEnergyService: Discovered new BLE peripheral Flower care with ID 80eaca8947f7 and RSSI -51
Mar 16 06:11:36 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:36 AM - info - BluetoothLowEnergyService: Discovered new BLE peripheral 49d7e8cd4348 with ID 49d7e8cd4348 and RSSI -73
Mar 16 06:11:37 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:37 AM - info - BluetoothLowEnergyService: Discovered new BLE peripheral 798919fe6828 with ID 798919fe6828 and RSSI -77
Mar 16 06:11:38 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:11:38 AM - info - BluetoothLowEnergyService: Discovered new BLE peripheral KEY-BLE with ID 001a22136fd2 and RSSI -75
^[[BMar 16 06:12:46 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:12:46 AM - info - BluetoothLowEnergyService: Discovered new BLE peripheral BLE_RA_Stefan_Beacon with ID 4FD90C36-C476-4FE8-BDE0-A509D645D57E and RSSI -77
Mar 16 06:12:47 homeassistant 8761805a77ad[1161]: 3/16/2021, 6:12:47 AM - info - BluetoothLowEnergyService: Discovered new BLE peripheral 3e300c995d08 with ID 3e300c995d08 and RSSI -74
Logs from Node
^C1__06:09:28~pi@192.168.2.91 [raspi4dev] ~ # sudo room-assistant -v -c /home/pi/room-assistant/config/
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>
2021-3-16 6:09:36 - info - IntegrationsModule: Loading integrations: bluetooth-low-energy, home-assistant
2021-3-16 6:09:37 - info - NestFactory: Starting Nest application...
2021-3-16 6:09:37 - info - InstanceLoader: AppModule dependencies initialized
2021-3-16 6:09:37 - info - InstanceLoader: ConfigModule dependencies initialized
2021-3-16 6:09:37 - info - InstanceLoader: NestEmitterModule dependencies initialized
2021-3-16 6:09:37 - info - InstanceLoader: IntegrationsModule dependencies initialized
2021-3-16 6:09:37 - info - InstanceLoader: HttpModule dependencies initialized
2021-3-16 6:09:37 - info - InstanceLoader: DiscoveryModule dependencies initialized
2021-3-16 6:09:37 - info - InstanceLoader: PrometheusModule dependencies initialized
2021-3-16 6:09:37 - info - InstanceLoader: ClusterModule dependencies initialized
2021-3-16 6:09:37 - info - InstanceLoader: TerminusModule dependencies initialized
2021-3-16 6:09:37 - info - InstanceLoader: BluetoothModule dependencies initialized
2021-3-16 6:09:37 - info - InstanceLoader: ScheduleModule dependencies initialized
2021-3-16 6:09:37 - info - InstanceLoader: EntitiesModule dependencies initialized
2021-3-16 6:09:37 - info - InstanceLoader: BluetoothLowEnergyModule dependencies initialized
2021-3-16 6:09:37 - info - InstanceLoader: HomeAssistantModule dependencies initialized
2021-3-16 6:09:37 - info - InstanceLoader: StatusModule dependencies initialized
2021-3-16 6:09:37 - info - RoutesResolver: EntitiesController {/entities}:
2021-3-16 6:09:37 - info - RouterExplorer: Mapped {/entities, GET} route
2021-3-16 6:09:37 - info - RoutesResolver: StatusController {/status}:
2021-3-16 6:09:37 - info - RouterExplorer: Mapped {/status, GET} route
2021-3-16 6:09:37 - info - RoutesResolver: PrometheusController {/metrics}:
2021-3-16 6:09:37 - info - RouterExplorer: Mapped {/metrics, GET} route
2021-3-16 6:09:37 - info - HomeAssistantService: Successfully connected to MQTT broker at mqtt://192.168.2.120:1883
2021-3-16 6:09:37 - info - ConfigService: Loading configuration from /usr/lib/node_modules/room-assistant/dist/config/definitions/default.js, /home/pi/room-assistant/config/local.yml (Current: /home/pi)
2021-3-16 6:09:38 - debug - EntitiesService: Adding new entity status-cluster-size
2021-3-16 6:09:38 - debug - HomeAssistantService: Registering entity room-assistant-office-status-cluster-size under homeassistant/sensor/room-assistant/office-status-cluster-size/config
2021-3-16 6:09:38 - debug - EntitiesService: Adding new entity status-cluster-leader
2021-3-16 6:09:38 - debug - HomeAssistantService: Registering entity room-assistant-office-status-cluster-leader under homeassistant/sensor/room-assistant/office-status-cluster-leader/config
2021-3-16 6:09:38 - info - ClusterService: Starting mDNS advertisements and discovery
2021-3-16 6:09:38 - info - NestApplication: Nest application successfully started
2021-3-16 6:09:38 - debug - BluetoothService: Adapter 0 went into state poweredOn
2021-3-16 6:09:38 - debug - BluetoothService: Starting scanning for BLE peripherals on adapter 0
2021-3-16 6:09:38 - debug - BluetoothService: Adapter 0 went into state poweredOn
2021-3-16 6:09:38 - debug - BluetoothService: Started scanning for BLE peripherals on adapter 0
2021-3-16 6:09:38 - debug - BluetoothService: Started advertising instance via BLE
2021-3-16 6:09:38 - debug - HomeAssistantService: Sending new state 2 for room-assistant-office-status-cluster-size
2021-3-16 6:09:38 - debug - HomeAssistantService: Sending new state frontdoor for room-assistant-office-status-cluster-leader
2021-3-16 6:09:38 - debug - HomeAssistantService: Sending new attributes {"nodes":["frontdoor","office"]} for room-assistant-office-status-cluster-size
2021-3-16 6:09:38 - debug - HomeAssistantService: Sending new attributes {"quorumReached":true} for room-assistant-office-status-cluster-leader
2021-3-16 6:09:38 - info - BluetoothLowEnergyService: Attempting app discovery for tag 5cc2c95353cd
2021-3-16 6:09:38 - debug - BluetoothLowEnergyService: Tag 5cc2c95353cd seems to broadcast the app with manufacturer data 4c0010060e1e330b47410100000010000000000000000000000000
2021-3-16 6:09:38 - debug - BluetoothService: Locking adapter 0
2021-3-16 6:09:38 - debug - BluetoothService: Stopping scanning for BLE peripherals on adapter 0
2021-3-16 6:09:38 - debug - BluetoothService: Connecting to BLE device at address 5c:c2:c9:53:53:cd
2021-3-16 6:09:38 - debug - BluetoothService: Stopped scanning for BLE peripherals on adapter 0
2021-3-16 6:09:38 - debug - BluetoothService: Stopped advertising instance via BLE
2021-3-16 6:09:38 - info - ClusterService: Added 192.168.2.120:6425 to the cluster with id flur
2021-3-16 6:09:38 - debug - HomeAssistantService: Sending new state 3 for room-assistant-office-status-cluster-size
2021-3-16 6:09:38 - debug - HomeAssistantService: Sending new attributes {"nodes":["frontdoor","flur","office"]} for room-assistant-office-status-cluster-size
2021-3-16 6:09:39 - debug - BluetoothService: Disconnecting from BLE device at address 5c:c2:c9:53:53:cd
2021-3-16 6:09:39 - info - BluetoothLowEnergyService: Discovered companion app with ID 4FD90C36-C476-4FE8-BDE0-A509D645D57E for tag 5cc2c95353cd
2021-3-16 6:09:39 - info - BluetoothLowEnergyService: Discovered new BLE peripheral BLE_RA_Stefan_Beacon with ID 4FD90C36-C476-4FE8-BDE0-A509D645D57E and RSSI -58
2021-3-16 6:09:39 - debug - EntitiesService: Adding new entity ble-4fd90c36-c476-4fe8-bde0-a509d645d57e-tracker
2021-3-16 6:09:39 - debug - HomeAssistantService: Registering entity room-assistant-ble-4fd90c36-c476-4fe8-bde0-a509d645d57e-tracker under homeassistant/device_tracker/room-assistant/ble-4fd90c36-c476-4fe8-bde0-a509d645d57e-tracker/config
2021-3-16 6:09:39 - debug - EntitiesService: Adding new entity ble-4fd90c36-c476-4fe8-bde0-a509d645d57e
2021-3-16 6:09:39 - debug - HomeAssistantService: Registering entity room-assistant-ble-4fd90c36-c476-4fe8-bde0-a509d645d57e under homeassistant/sensor/room-assistant/ble-4fd90c36-c476-4fe8-bde0-a509d645d57e/config
2021-3-16 6:09:39 - debug - BluetoothService: Disconnected from BLE device at address 5c:c2:c9:53:53:cd
2021-3-16 6:09:39 - debug - BluetoothService: Unlocking adapter 0
2021-3-16 6:09:39 - debug - BluetoothService: Adapter 0 went into state poweredOn
2021-3-16 6:09:39 - debug - BluetoothService: Starting scanning for BLE peripherals on adapter 0
2021-3-16 6:09:39 - debug - BluetoothService: Started scanning for BLE peripherals on adapter 0
2021-3-16 6:09:39 - debug - BluetoothService: Started advertising instance via BLE
2021-3-16 6:09:39 - info - BluetoothLowEnergyService: Attempting app discovery for tag 6d155fb81e13
2021-3-16 6:09:39 - debug - BluetoothLowEnergyService: Tag 6d155fb81e13 seems to broadcast the app with manufacturer data 4c0010060e1e330b47410100000010000000000000000000000000
2021-3-16 6:09:39 - debug - BluetoothService: Locking adapter 0
2021-3-16 6:09:39 - debug - BluetoothService: Stopping scanning for BLE peripherals on adapter 0
2021-3-16 6:09:39 - debug - BluetoothService: Connecting to BLE device at address 6d:15:5f:b8:1e:13
2021-3-16 6:09:39 - debug - BluetoothService: Stopped scanning for BLE peripherals on adapter 0
2021-3-16 6:09:39 - debug - BluetoothService: Stopped advertising instance via BLE
2021-3-16 6:09:40 - debug - BluetoothService: Disconnecting from BLE device at address 6d:15:5f:b8:1e:13
2021-3-16 6:09:40 - info - BluetoothLowEnergyService: Discovered companion app with ID 4FD90C36-C476-4FE8-BDE0-A509D645D57E for tag 6d155fb81e13
2021-3-16 6:09:40 - debug - BluetoothService: Disconnected from BLE device at address 6d:15:5f:b8:1e:13
2021-3-16 6:09:40 - debug - BluetoothService: Unlocking adapter 0
2021-3-16 6:09:40 - debug - BluetoothService: Adapter 0 went into state poweredOn
2021-3-16 6:09:40 - debug - BluetoothService: Starting scanning for BLE peripherals on adapter 0
2021-3-16 6:09:40 - debug - BluetoothService: Started scanning for BLE peripherals on adapter 0
2021-3-16 6:09:41 - debug - BluetoothService: Started advertising instance via BLE
2021-3-16 6:09:41 - info - BluetoothLowEnergyService: Discovered new BLE peripheral 68204d619caf with ID 68204d619caf and RSSI -73
2021-3-16 6:09:41 - info - BluetoothLowEnergyService: Discovered new BLE peripheral 3e300c995d08 with ID 3e300c995d08 and RSSI -58
2021-3-16 6:09:41 - info - BluetoothLowEnergyService: Discovered new BLE peripheral 51166179e012 with ID 51166179e012 and RSSI -64
2021-3-16 6:11:38 - info - BluetoothLowEnergyService: Discovered new BLE peripheral 1a13118f39b0 with ID 1a13118f39b0 and RSSI -83
2021-3-16 6:14:33 - info - BluetoothLowEnergyService: Discovered new BLE peripheral c869cd59d681 with ID c869cd59d681 and RSSI -84
2021-3-16 6:16:43 - info - BluetoothLowEnergyService: Discovered new BLE peripheral 7857ce04706f with ID 7857ce04706f and RSSI -63
Relevant configuration Paste the relevant parts of your configuration below.
Home Assistant Config: cat /usr/share/hassio/homeassistant/room_assistant/local.yml
# You don't need to add the MQTT details for Home Assistant with the add-on installation, it will be auto-discovered!
global:
instanceName: flur
integrations:
- bluetoothLowEnergy
- homeAssistant
cluster:
port: 6425
weight: 10
peerAddresses:
- 192.168.2.120:6425
- 192.168.3.40:6425
- 192.168.2.184:6425
bluetoothLowEnergy:
timeout: 5
updateFrequency: 2
allowlist:
- '4FD90C36-C476-4FE8-BDE0-A509D645D57E'
- '9fc0822c689c45f8b45adabe7c96d845-100-1'
tagOverrides:
4FD90C36-C476-4FE8-BDE0-A509D645D57E:
name: BLE_RA_Stefan_Beacon
9fc0822c689c45f8b45adabe7c96d845-100-1:
name: BLE_RA_Steffi_Beacon
Node Config: ~/room-assistant/config/config.yml
global:
instanceName: office
integrations:
- bluetoothLowEnergy
- homeAssistant
bluetoothLowEnergy:
timeout: 5
updateFrequency: 2
allowlist:
- '4FD90C36-C476-4FE8-BDE0-A509D645D57E'
- '9fc0822c689c45f8b45adabe7c96d845-100-1'
tagOverrides:
4FD90C36-C476-4FE8-BDE0-A509D645D57E:
name: BLE_RA_Stefan_Beacon
9fc0822c689c45f8b45adabe7c96d845-100-1:
name: BLE_RA_Steffi_Beacon
cluster:
weight: 5
port: 6425
peerAddresses:
- 192.168.2.120:6425
- 192.168.3.40:6425
- 192.168.2.184:6425
homeAssistant:
mqttUrl: 'mqtt://192.168.2.120:1883'
mqttOptions:
username: username
username: password
Expected behavior A clear and concise description of what you expected to happen.
Environment
- room-assistant version: 2.15.0
- installation type: Home Assistant Supervisor Plugin
Version core-2021.3.4 supervisor-2021.03.6 Raspbian GNU/Linux 10 (buster)
- installation type node: node
- hardware: Raspi Pi 4 and Zero
- OS: Raspbian GNU/Linux 10 (buster) latest apt-get update
- beaconid: 4FD90C36-C476-4FE8-BDE0-A509D645D57E
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
In that case I’ll close this issue in favor of #458. Feel free to re-open in case you see something more to be solved here! 😃
Just changed the title to describe the issue more problaty.