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

How reliable are the Raspberry pi zero w. I am currently trying to use 7 ESP32s but they are crashy and pretty much too inconsistent to be used. Would 7 Raspberry Pi zero w (One per room) be stable?

My pi zero is running very stable. No problems at all.

@andrewjfreyer can you please add this to the github page?
Option to publish: monitor/scan/restart

I didn’t know about it but need it in my setup. So putting it in the guide is a good idea.

Just to let everyone know you can also run this on a Vero4k. I have one upstairs so didn’t need to add a new pi there :).

1 Like

That’s a very cool idea - I have a few old Android boxes kicking around that I converted over to Linux boxes, never occurred to me to use it for such (I was doing other things) and have sat there abandoned for some time. Nice way to re-purpose!

I just got mqtt running and the pi is connected to it, however none of my sensors are showing up…
I’ve rebooted home assistant and cleared the cache, but nothing is working…
this is in my sensors.yaml file

  - platform: mqtt
    state_topic: 'monitor/rasberrypi/E4:E4:AB:80:14:92'
    value_template: '{{ value_json.confidence }}'
    unit_of_measurement: '%'
    name: 'Media Room'

  - platform: min_max
    name: "Home Occupancy Confidence of E4:E4:AB:80:14:92"
    type: max
    round_digits: 0
    entity_ids:
      - sensor.first_floor

  - platform: mqtt
    state_topic: 'monitor/raspberrypi/status'
    name: 'Media Room Bluetooth Status'

Use mosquitto_sub to test what is actually being received by your mqtt server.

Did you define sensor.first_floor somewhere?
Do you see the sensor.media_room in your entities list?
If not can you try to name it media_room. So: name: ‘Media_Room’

And as nickrout says, see whats being received. Easiest way I use is:
mosquitto_sub -t "#" -u username -P password –v

how do you do that?

If i use this, how does it know which mac address to use?

- alias: Occupancy 
  hide_entity: true
  trigger:
    - platform: numeric_state
      entity_id: sensor.home_occupancy_confidence
      above: 10
  action:
    - service: homeassistant.turn_on
      data:
        entity_id: input_boolean.occupancy

Nope, i do not see this

Nothing is being sent over :frowning:

Then you possibly don’t have mqtt properly set up in your monitor configuration.

as part of step 7?

I think mqtt in home assistant. Check the mqtt log on in home assistant on the mqtt add-on log.

Can I just ask - I’m about to splurge about £70/$90 on some new WiFI sensor nodes which I’m hoping will be a lot more resilient to ignoring the bluetooth interference generated by the Pi Zero W running Monitor. Just looking for some reassurance from folks who currently DO run a few WiFi nodes themselves, like Wemos D1 Mini, Particle Photon, ESP8266, NodeMCU etc etc etc alongside Monitor? Thanks
(Currently using Spark/Particle Cores which cannot cope with being run alongside Monitor)

Anyone have any good hints on a BE Tracker or iBeacon that could be used for pets? Ideally waterproof with changeable battery - am in the UK.

Currently considering this one: https://www.alibaba.com/product-detail/2-6mm-Ultra-Thin-Beacon-Eddystone_60277697830.html?spm=a2700.details.maylikever.10.32117c4dyPRQRx

1 Like

make sure you don’t have to click it for it to send an update. I have one that only powers itself up when clicked.

Yeah that’s what I’m trying to avoid. It’s quite hard to know from the descriptions. I think this one allows you to configure broadcast up to 1 sec intervals.

Those devices use 2.4ghz, so the interference will still cause problems. If you want to use Monitor configuring it to only run on triggers is the only way to solve the problem.