I flashed an ESP32 with ESPresense and monitoring the MQTT broker I can see that any new device has a sub-topic.
Can someone tell if the following is possible?
monitor de MQTT topic for new BLE devices detected
monitor if someone carrying a BLE device is walking near the sensor
I would like to ESPresense as an alarm sensor (since almost everyone carries a phone in these days). I’d like to know if someone arrived in the monitored zone (new BLE device) or if someone is moving around the sensor (let’s say ina 15m radius).
I’d like to use the ESPresense firmware and maybe monitor the MQTT behaviour, if not possible, what could be the best way to accomplish these goals?
It really doesn’t matter to me if it’s new or an existing device. What I need is to monitor a fence area and any activity needs to be detected. Since I live in a rural area, it’s not usual to have any movement at night and any detection of a sensor can turn on the lights on monitored areas. I’m trying to monitor the speed attribute of the captured json payload but it’s not really accurate.
To my knowledge, there’s no way to do this using the MQTT In node as it requires that you subscribe to a MQTT Topic to start getting the messages in node-red. However, you might set up a TCP In node with port 1883, monitor the incoming messages, and parse out any information you need using a function node. Make sure to disable any MQTT broker you might have running on the machine.