[monitor] Reliable, Multi-User, Distributed Bluetooth Occupancy/Presence Detection

Found it. Reading through the release changes for .99

I’m running .96 Will update.

Ok. Upgraded MQTT and HA to the latest versions. Now I have the subscribe option. Very helpful!! This is what I’m seeing:

When I run monitor with -b it does send mqtt messages to HA about PUBL beacons it finds. Even if they’re not in the known_beacon_addresses file. Just like you’re seeing. But my Nut never shows up in mqtt and I think it has something to do with the way monitor is seeing it.

I have one other beacon that shows up. My sony TV. When it discovers and reports it looks like this:

0.2.015 05:31:33 am [CMD-PUBL]  D4:6A:6A:E1:EB:4C  Sony Corporation -76 dBm
monitor/living room pi/D4:6A:6A:E1:EB:4C
 {
    "id":"D4:6A:6A:E1:EB:4C",
    "confidence":"100",
    "name":"",
    "manufacturer":"Sony Corporation",
    "type":"GENERIC_BEACON_PUBLIC",
    "report_delay":"2",
    "rssi":"-76",
    "flags":"",
    "movement":"stationary",
    "retained":"false",
    "timestamp":"Sat Sep 28 2019 05:31:33 GMT-0500 (CDT)",
    "version":"0.2.015"
 }

But when it sees the Nut all it shows is this and it never gets sent to HA.

0.2.015 10:50:42 am [CMD-RAND] [passed filter] data: F2:1F:A3:2D:BE:3C pdu: SCAN_RSP rssi: -69 dBm flags: none man: unknown delay: 1

Is your Nut unlinked from the Nut app? That’s the only reason I can think of for why it isn’t broadcasting as public.

Install mosquitto_clients

Hi, I’ve installed Hassio on my Raspberri Pi3 and use bluetooth for presence detection.
I’m moving from Raspberry to Intel NUC but Hassio do not recognize internal bluetooth of the NUC.
I wish to use Monitor based on ESP32 for presence detection.
How do I do to works it with my Hassio on NUC?

It is not. I read about that in this thread before I bought it so I never paired it with anything.

What is this??

And from the sounds of it, there may be something going on with the Nut that I have. I may have to resort to a different beacon. I’ve read that some people are also using Tile. May have to give that a try.

I linked mine to the app initially because I wasn’t sure if there was some kind of initializing that had to take place. Then I unlinked it. Maybe try that?

Not a reply to you :slight_smile:

No go. Still the same. The nut app and nut mini work well together. Just can’t get it to work with monitor. Gonna try a different beacon.

Hi, I’m migrating my Hassio from Raspberry to intel NUC.
I installed Hassio in a Proxmox VM with Debian and Docker… but Debian is unable to works the internal NUC bluetooth. I need it becouse I used RPi3 BCMxxx bluetooth to recognize presence detection.
Is Monitor able to use ESP32 for presence detection with Hassio?
Can you help me about?

No monitor is not able to do that, you can distribute a few pi zeros about the house though.

esp32 can act on its own as presence detection, but not through monitor. https://esphome.io/components/binary_sensor/ble_presence.html. You could use a combination of monitor and esp32.

Sorry you can’t get it working. I don’t know why it’s working for me and not for you! :frowning_face:

Yep, exactly the same here, and Monitor has completely stopped working as a result of course, bummer. I tried rolling back to an older version as per github but it hasn’t helped unfortunately.

The problem is with mosquitto_pub - probably you’ve got a corrupt SD card

Right OK, it’s not to do with this? https://github.com/eclipse/mosquitto/issues/1419

Seems to be Pi Zero specific for some reason.

That issue has nothing to do with mosquitto_pub as far as I can see. Although libmosquitto could be a common theme.

What version of libmosquitto do you have?

What’s the best way to check? :slight_smile:

apt-cache policy libmosquitto1

Ok, fixed it. As per that git issue, they suggested rolling back to 1.6.4. I’d done that, but only for mosquitto itself. I also rolled back libmosquitto etc and it’s back working now. Just an issue with 1.6.7 apparently.