question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Raspberry pi zero w with dongle stops reporting / all stop reporting

See original GitHub issue

I am trying for a couple of weeks now to get room presence working. I bought 4 raspberry pi zero w with extra Bluetooth dongles. Presence has been more than sketchy. The following things constantly happen.

Home Assistant reports either my BLE iphone as away or unavailable My Apple Watch through Bluetooth Classic the same.

In my Room assistant companion app they are reported correctly. So why is this information not passed on to Home Assistant. It seems after a reboot that they work for a couple of minutes (maybe 10) and then both entities are reporting wrong again (not in the app, but in Home Assistant).

I am kindof at a loss what to do. I have replaced one zero with a raspberry pi 3 b+, and am thinking of replacing all the zero’s with 3 or 4 pi’s. But I am not sure even pi 3 accurately reports the status.

This is my config file:

cluster:
  port: 6415
  peerAddresses:
    - 192.168.10.75:6415
    - 192.168.10.77:6415
    - 192.168.10.79:6415
    - 192.168.10.80:6415
    - 192.168.10.81:6415
  autoDiscovery: true
  weight: 30
global:
  instanceName: bedroom
  integrations:
    - homeAssistant
    - bluetoothLowEnergy
    - bluetoothClassic
homeAssistant:
  mqttUrl: 'mqtt://mqttaddress:1883'
  mqttOptions:
    username: loginname
    password: password
bluetoothLowEnergy:
  hciDeviceId: 0
  allowlist:
    - 1E808694-68E0-433E-A010-BC850C8481F0
    - 4A89AB27-F043-4A8F-B357-5FA63302DC36
  maxDistance: 5
  tagOverrides:
    1E808694-68E0-433E-A010-BC850C8481F0:
      name: Iphone Jeroen BLE
    4A89AB27-F043-4A8F-B357-5FA63302DC36:
      name: Iphone Isaac BLE
bluetoothClassic:
  hciDeviceId: 1
  minRssi: -5
  addresses:
    - '64:d2:c4:7a:72:c2'
  entityOverrides:
    '64:d2:c4:7a:72:c2':
      name: Apple Watch Jeroen BT

On 2 of the raspberry pi zero’s I constantly get this error when running room-assistant in verbal mode:

BluetoothService: Command failed: hcitool -i hci1 cc "64:d2:c4:7a:72:c2" && hcitool -i hci1 rssi "64:d2:c4:7a:72:c2"
Can't create connection: Input/output error
Get connection info failed: No such file or directory

Connection to MQTT broker is fine. New instances are reported to Home Assistant, just their status not.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:19 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
JeroenTuinstracommented, Oct 21, 2021

@Chaphasilor What made it work for me was to add an extra BT dongle to the raspberry pi. The extra dongle is recognized and configured automatically to hci0. It hasn’t stopped working for 2 weeks now. Before, just using the internal BT, made it crash very often, with the extra dongle, no more. For BT Low Energy that didn’t work for me. Tried to assign low energy to the dongle and classic to internal, but it didn’t help.

0reactions
JeroenTuinstracommented, Nov 12, 2021

@PeteBa I guess we can discuss the definition of “background”, but really the task switcher on the iphone switches between open apps, not background apps. For example the mail app doesn’t have to be open in order to receive and notify you of new emails. Almost no app needs to remain open (or in the task switcher) in order to update. This app would be great if it could properly work in the background and not rely on you keeping it in the task switcher. But indeed when you keep the app in the task switcher it updates continuously, so that works. If the app is ever rewritten to work really in the background, then I will give BLE with the iphone another shot. Till then, Classic is I guess the way.

Thanks by the way @PeteBa, you’re the only one responding to issues. Haven’t seen or heard anything from @mKeRix on this forum or in discussions. Even though great work has been done, thanks @mKeRix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Headless RPI Zero W Intermittent Freeze / Lock Up how to ...
Code: Select all pihole -up. is reporting everything up-to-day. The devs @ pi-hole are adamant that the issues is not / can not...
Read more >
Problems running room-assistant on Raspberry Pi Zero #351
I'm having the same experience - it worked for an hour or two, then stopped reporting. Everything looked normal, and only a restart...
Read more >
Getting Started with the Raspberry Pi Zero Wireless
The Pi Zero W has built in WiFi, so you will not need any external WiFi dongles. To enable WiFi on your Pi,...
Read more >
Which Raspberry Pi Should I Buy? - Tom's Hardware
We recommend the best Raspberry Pi model for every use case. ... However, the Zero W does not come with GPIO pins attached,...
Read more >
Reporting issues - RaspAP Documentation
RaspAP is not a boxed product with a free troubleshooting hotline. If your issue is of a general nature and not directly related...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found