ESPHome BLE tracking with Nodered

Hi all,

Just sharing this here in case someone find it useful.

After having used Room Assistant for about 6 months, I found that the nodes would eventually become unresponsive and would need a restart.

Therefor I decided to try to move to ESP32’s and ESPhome, and then create my own rules in Nodered, and this seems to work very well, and very reliably. 1 month without a single issue so far. And cheaper! :slight_smile:

I’m using the RSSI state from each ESPHome device, which is constantly looking for me and my wifes Mi Band 4’s.

I can’t claim that I’m a Nodered expert, so somethings can probably (hopefully) be made smarter, but this works for my use, which currently is:

  • Setting the Night alarm when both of us are in bed for 10min after 22.00
  • Turning it off when both are not in the bedroom for 10min after 5.00
  • Turning on music in the morning when we both are in the dining room in the morning
  • Make Apple music follow me in the home, but only if I’m alone in the house
  • General presence together with GPS and Wifi.

Nodered flow (for 3 rooms+1 person): https://pastiebin.com/5fb4ce67e4704
ESPHome config for 1 node: https://pastiebin.com/5fb5835b75887

1 Like