Been trying to get this addon to work and really struggling, was hoping for some help. For reference all I am trying to do is get room assistant running as an addon on the same pi I have HA on and able to detect and report presence for my phone and my wife’s apple watch. I eventually would like to do actual room presence but I’m not buying pi zeros to set up a cluster until I can get it working on this one device.
So far I have not had any success tracking the apple watch at all. For my android phone it seemed like nothing was working at all but after I figured out a way to turn on verbose logging via the Portainer add-on I was able to make some small progress. My log is almost entirely filled with messages like this:
5/2/2020, 4:12:10 PM - debug - BluetoothClassicService: Querying for RSSI of <Phone BT MAC> using hcitool
5/2/2020, 4:12:11 PM - debug - BluetoothClassicService: Command failed: hcitool -i hci0 cc "<Phone BT MAC>" && hcitool -i hci0 rssi "<Phone BT MAC>"
Can't create connection: Operation timed out
Read RSSI failed: I/O error
But once in a while I see something like this:
5/2/2020, 4:08:34 PM - debug - BluetoothClassicService: Querying for RSSI of <Phone BT MAC> using hcitool
5/2/2020, 4:08:34 PM - debug - BluetoothClassicService: Received RSSI of 0 for <Phone BT MAC> from 6e66619d-room-assistant
5/2/2020, 4:08:34 PM - debug - EntitiesService: Adding new entity bluetooth-classic-<Phone BT MAC>
5/2/2020, 4:08:34 PM - debug - HomeAssistantService: Registering entity room-assistant-bluetooth-classic-<Phone BT MAC> under homeassistant/sensor/room-assistant/bluetooth-classic-<Phone BT MAC>/config
5/2/2020, 4:08:34 PM - debug - HomeAssistantService: Sending new state 6e66619d-room-assistant for room-assistant-bluetooth-classic-<Phone BT MAC>
5/2/2020, 4:08:34 PM - debug - HomeAssistantService: Sending new attributes {"distance":0,"lastUpdatedAt":"2020-05-02T20:08:34.391Z"} for room-assistant-bluetooth-classic-<Phone BT MAC>
Also to clarify, when I say once in a while I mean like I’ve seen this message a couple of times total in a few hours of trying this. And only when I’ve had the bluetooth pair devices screen open on my phone, if my phone is just sitting there it always says I/O timeout. And even if I leave it on the pair devices screen I only get this success message once, then its back to I/O timeouts.
And while its nice to see something that looks positive in the log, this is all I get. There is no entity created in Home Assistant and all during this I’ve been listening to #
on my MQTT broker, I don’t see any message actually come through from room-assistant. This would suggest there’s an issue talking to my MQTT broker but I’m using the exact same configuration that works with Zigbee2MQTT. And right at the beginning of my room-assistant log after start-up I see this:
5/2/2020, 4:05:18 PM - info - HomeAssistantService: Successfully connected to MQTT broker at mqtt://<HA IP>:1883
I also don’t see any messages about issues sending MQTT messages despite having verbose logging turned on.
I’m pretty much at a loss at this point. Nothing seems to be working and I’m out of potential troubleshooting steps. Would love some advice from anyone who has gotten this working.