Bluetooth ESP32 Board

With the help of Grok, I was able to convert the yaml for a esp32 board with a PIR and MMwave sensor attached that relied on Wifi to BT Home V2. It only took about 4 iterations which is definitely a win!

The Bluetooth Integration found the device after I triggered it as a Bluetooth Home v2 Motion/Occupancy Sensor but the only sensor created was for motion. However, in the raw data, there is all of the valuable information. Is there any way to parse all of that? I thought Node Red might be able to help but it pulls Battery, Illuminance, Motion & RSSI from a Device Node. Battery and Illuminance are null.

{
   "address":"XX:XX:XX:XX:XX:XX",
   "sensors":[
      {
         "unit":"m",
         "device":"distance",
         "value":4.7
      },
      {
         "unit":"dBm",
         "device":"signal_strength",
         "value":-64
      }
   ],
   "model":"BTHome sensor",
   "binary_values":[
      {
         "device":"motion",
         "value":false
      },
      {
         "device":"occupancy_1",
         "value":false
      },
      {
         "device":"occupancy_2",
         "value":true
      }
   ],
   "advertised_name":"Unknown",
   "events":[
      
   ],
   "manufacturer":null
}
1 Like

Nevermind, my friend Grok was able to help me again to write a groovy driver. This time it only took 2 iterations. He tried to use Occupancy the 1st time instead of Presence.

image

P.S. This is cool new feature added by the Hubitat Team. Kudos! The next step is room detection. :grin:

HA has one that I experimented with but was not quite accurate enough yet.
It's called Bermuda & is a HACS integration if you want to check it out.

3 Likes

I’m a little confused. The ESP32 is acting as a bridge for a commercially produced millimetre wave and IR combo sensor? If that’s correct, which sensor are you using for this?

1 Like

No i have a PIR Sensor and MMwave sensor wired to the GPIO pins of an ESP32 board.

image

image

2 Likes

Ah, thanks for the clarification.

1 Like