GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - rugene76/esphome-whereis: Presence detection implemented on esphome that uses the home assistant android app's ibeacon

BranchesTags
Open more actions menu

Latest commit

 

History

15 Commits
15 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
configuration_snippet.yaml
configuration_snippet.yaml
 
 
esphome - whereis.yaml
esphome - whereis.yaml
 
 

Repository files navigation

esphome-whereis

Presence detection implemented using esphome and leveraging the home assistant ibeacon feature in the android app

I'll get around to more completely documenting this project. Note, the coding is brute force but it works good enough. Improvements to make the code more generic are encouraged.

For now, This code provides presence detection using the home assistant app as a ble beacon. I intend that the code be inserted into other esphome projects. The project is similar in function to the excellent espresence project but allows esphome compatibility.

To install:

  1. In the homeassistant android app go to "Companion App"

    -select "Manage Sensors"

    -scroll to and select "BLE Traansmitter"

    -select "enabled" and "enable transmitter"

    -set "Transmitter power" to high

    -note the UUID for the beacon at the bottom of the page

  2. In the home assistant configuration.yaml, paste in the configuration yaml snippet from this project. You will need to adjust the names and nodes to suit your needs.

  3. Drop the esphome-whereis.yaml code into your esphome project

    -adjust the wifi parameters for your environment

    -adjust the substitution values as needed, i.e., replace the ibeacon uuid, names, etc

  4. Validate and install the esphome project into your ESP32 device

  5. In home assistant, be sure to configure the newly found esphome device in the integration page

  6. Create a lovelace card to observe and adjust the input_number entities

You should see your ibeacon device (Where is John) in one of three possible states:

  1. not_home; this means the device is not detected at all
  2. home; this means the device is detected but the signal has not reached the capture threshold
  3. $roomname; e.g., "familyroom", this means the device has surpassed the rssi capture threshold

In home assistant, use the input_number entities to get acceptable device detection by adjusting the rssi thresholds.

The configuration.yaml snippet has a template sensor that attempts to combine all states from all nodes into a global state for the whole environment. Once several nodes are installed, you should be able to walk around your home and see the global state update as you move from node to node. At least that's what I'm going for. Seems to work well in my house with 5 nodes.

Of course the code can be improved, so suggestions are encouraged. enjoy

About

Presence detection implemented on esphome that uses the home assistant android app's ibeacon

Topics

bleesphomeespresencehome-assistantpresencepresence-detection

Resources

Readme
Activity

Stars

5 stars

Watchers

2 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.