ESPresense v3: Room-Level Presence Detection with ESP32 for Home Assistant Made Simple

Поделиться
HTML-код
  • Опубликовано: 3 июл 2024
  • Join us as we demystify ESPresense and guide you through the step-by-step setup. No need for complex tech jargon, we're here to simplify and make room-level presence detection accessible for all. 🎯🔧
    We'll explore how you can seamlessly track presence in different rooms, providing valuable data for your home automation setup. 🏢💡
    FixtSE Web: fixtse.com/blog/espresense-de...
    ESPresense Documentation: espresense.com/configuration/...
    ESP32 Development Board
    Amazon Affiliate Links:
    30PIN microUSB 3 pack: amzn.to/48shBbo
    Aliexpress:
    30PIN microUSB: s.click.aliexpress.com/e/_DBh...
    38PIN microUSB: s.click.aliexpress.com/e/_DkP...
    Mosquitto Broker Add-on install video: ruclips.net/user/clipUgkxvGWM...
    00:00 Intro
    01:08 Prerequisites
    01:11 Install Mosquitto Broker Add-on
    01:17 ESPresense Installation
    02:14 ESPresense Configuration
    03:02 How to calibrate it
    04:21 How to track your Android Phone
    05:05 How to track your MiBand
    05:18 How to track your iPhone
    06:11 How to create a sensor
    07:38 How to use it with a device tracker
    10:13 Accuracy Detection Tests
    If you like my work, please consider supporting me on Ko-fi! ☕🎉: ko-fi.com/fixtse
    You can find me on:
    Web: fixtse.com/
    Instagram: / fixtse
    Hope this was useful and if you have any questions, write me a comment below
    Thank you for watching (~ ̄▽ ̄)~
    #HomeAssistant #HomeAssistantRoomDetection #espresense #automation #Tutorial
  • НаукаНаука

Комментарии • 68

  • @sygad1
    @sygad1 Месяц назад

    wow, that was comprehensive and clearly laid out, thank you SO much

  • @SavijCoder
    @SavijCoder 2 месяца назад

    I have watched several videos on this subject and ONLY this one worked. Most of the others are outdated or just didn't work, or only talked about tracking the apple watch which I don't have. Thanks man, really appreciate you!

  • @ricardopinaarevalo4232
    @ricardopinaarevalo4232 5 месяцев назад

    Excelente, el mejor tutorial que he visto de ESPresense ❤❤

  • @markshaz8691
    @markshaz8691 6 месяцев назад

    Great video, keep them coming

  • @brevboksen
    @brevboksen 19 дней назад

    Nice guide Got esp presense up and running💪👍👍

  • @Zbhullar
    @Zbhullar Месяц назад

    Thank you so much for explaining this clearly!

    • @fixtse.
      @fixtse.  Месяц назад

      Glad it was helpful!

  • @chrisstyle3567
    @chrisstyle3567 21 день назад

    very very good video

  • @franciscoadrianzen2908
    @franciscoadrianzen2908 9 месяцев назад +1

    Easy he said... 😮

  • @darrellturner7618
    @darrellturner7618 8 месяцев назад +2

    The calibration should be 2 measurements. One at 1m and you update the devices rssi@1m via the ESPresense Companion add on (this is specific to the device). The adsorption is used to calibrate a further distance (like 5m with some walls in between) move it up and down until it matches (just like in the video)

  • @cbrady398
    @cbrady398 5 месяцев назад

    Great video! Can you tell me if you have any tutorials showing how I could track the beacons visually like your rockrobo_map at 0:45 ? I would like to use a floorplan of my house to see where my beacons are located visually....... Thanks :)

  • @kinghuzi
    @kinghuzi Месяц назад

    Can you do a guide on espresense companion Hass app and room mapping setups

  • @MiketenWolde
    @MiketenWolde 2 месяца назад

    Thank you for all the good content! There is now an HA integration, which makes it possible to do bluetooth proxy device tracking in combination with ESPhome. It is called ‘Bermude BLE’. Would you be so kind to make a tutorial about it?

    • @fixtse.
      @fixtse.  2 месяца назад

      Hi, thank you, I'll give it a look, it seems very interesting

  • @airsoftjisus4730
    @airsoftjisus4730 4 месяца назад

    the steps on the minute 2:35 when you add ip address and home assistant credentials and the restart is doesn't working for me, please help!

  • @DecouvrirLaTechnologie
    @DecouvrirLaTechnologie 4 месяца назад

    Hi, Just wanted to let you know, The button you pointed out at 2 minutes is the reset button, not the flash button.

    • @fixtse.
      @fixtse.  4 месяца назад +1

      You are right!! thank you for pointing that out.

  • @psznt
    @psznt 4 месяца назад

    hi - thanks for the tutorial. could you help me out? I cannot seem to make the device tracker... What name and id should I put in from the sensor?

    • @fixtse.
      @fixtse.  4 месяца назад +1

      It should work with any name :/, you can try using the same device as your phone, just keep in mind that way, the last one updated (gps or espresense), would set the value of the device tracker.

    • @psznt
      @psznt 4 месяца назад

      @@fixtse. cool. Thx 😎

  • @fabioamado6725
    @fabioamado6725 8 месяцев назад +1

    Hello,
    Thank you for your video.
    I will sureley follow it, it seems very step-by-step oriented.
    I have an application where I want to trigger an automation via presence, and ESPresesense seems to do the job.
    However, the I also need electrical interface (shoot an electrical pulse) so I would want to use the IO pins of the ESP32.
    I know this is possible with ESPHome, I have already done that.
    But it doesn't make sense to have two ESP boards, side by side: one for presence, other for IO.
    Is this possible?
    can you please make a video or point me to somewhere that explains how to affect IO via ESPresense?
    I am already use to do it, in YAML code, in ESPHome, is the process the same?
    Thank you!

    • @fabioamado6725
      @fabioamado6725 8 месяцев назад

      Thank you for your like, but can you please answer the question, if with ESPresense I can affect IOs?

  • @charles0103
    @charles0103 5 месяцев назад

    MQTT Explorer did not detect BLE iBeacons help ,android phone, but espresense have BLE iBeacons

  • @TiagoBaptista-wi1mc
    @TiagoBaptista-wi1mc 2 месяца назад

    Hello great tutorial and got it working but I am a stuck how can I add a PIR AM312 sensor to esprense and turn on when some one comes in even if there is no tracker but stay on it there is a tracker. Any Ideas how to do this!

    • @fixtse.
      @fixtse.  2 месяца назад

      Hi, sorry, what you are mentioning is not part of the tutorial. If you need help for an specific use case, you can always book a private meeting with me using the button on my website so I can help you sort it out.

  • @latesanpedro
    @latesanpedro 8 месяцев назад

    Exelente video , alguna automatización interesante que no sea solamente saber dónde está el dispositivo? Tienes alguna para recomendarnos , seguí todos tus pasos y ya eata funcionando

    • @fixtse.
      @fixtse.  8 месяцев назад

      Me alegra que te haya servido 🎉🎉, si, estoy trabajando en una parte 2 de este video (probablemente me tome un par de semanas más).Quiero aplicar la idea del "marketing local" usando la información de espresense, ya sea para recibir notificaciones con acciones relevantes dependiendo del lugar donde te encuentres en tu smart home o para poder hacer que la música te siga dependiendo de la habitación en la que te encuentres.

  • @GospelProgressionsUniversity
    @GospelProgressionsUniversity 7 месяцев назад

    *Play back at 0.75* your'e welcome.

  • @danielcruz864
    @danielcruz864 29 дней назад

    My question is I can use espresence with sensor temperature and humidity sensors?

    • @fixtse.
      @fixtse.  26 дней назад

      It does have support for aditional sensors: espresense.com/sensors but the list is quite small.

  • @Nick_1976
    @Nick_1976 5 месяцев назад

    Hi mate. Everything working but I'm getting an error. My state is showing as - home## Erase the next two lines if you don't want to use the not_home state any help is appreciated. Thanks.

    • @Nick_1976
      @Nick_1976 5 месяцев назад

      Got everything working lol

  • @noloboy
    @noloboy 7 месяцев назад

    Great Video! I have a question about part 7:55 talking about Simulate Device Tracker. I already see device_tracker** on my developer tools even though I don't have the known_devices.yaml file -- which I believe this was done by Nabu Casa. Should I skip the known_devices.yaml file and continue on the next step? If yes, will the automation at minute 9:04 mess up with my other geolocation automations which is based on map zones?
    Thanks again!

    • @fixtse.
      @fixtse.  7 месяцев назад +3

      Thank you!, Yes that can happen if you have a device tracker integration already configured (like the app companion), 1. It depends (read 2) and 2. Yes you are correct, if you use an existing device tracker can interfere with the automation (or more like mix the values, for example, if it a GPS tracker, espresense can mark the device as away, but then the GPS tracker itself can get an updated GPS coordinate and change the device tracker back to home, but if you are not home, ESPresense won't be trigger, so your zones config should work as expected). That's why I used the known_devices.yaml trick to have an independent device tracker. You might want to check my Presence Detection Sensor Video ruclips.net/video/1ToMW4CYUOA/видео.html (I used a couple of blueprints and a sensor template to mix my different device trackers into one)

    • @noloboy
      @noloboy 7 месяцев назад

      @@fixtse. Amazing! Just subbed with your channel. I will look into it.
      On a side note, for my use case, I actually only wanted only 1 espresense that would be in my entrance -- which I want to test to automate unlocking of my front door (zwave) when I get home while meeting all security requirements.
      For example, 1) when my car arrives (has a tile bluetooth in it) + 2) my phone tracker becomes home 3) my thin wallet bluetooth tracker detected by Entrance ESP + 4) my NEST doorbell (integrated in HA) when person is detected on my porch 5) and probably more that I do not know yet as of today
      Sadly, I bought like a dozen of ESP32 boards used as detection for my two cats but they HATE the collar with the Tile .. so I decided to scrap the project and just use the Tile for my cars lol .. so I got a bunch of ESP32 boards here doing nothing haha

    • @fixtse.
      @fixtse.  7 месяцев назад +1

      ​@@noloboy ​ jajaja don't give up on them, I use a miband 2 and 3 for my cats, and they are starting to come around to the idea of having them on all the time, I started by giving them their favorite food after I put the collars on them and then leave it on for 1 hour, 2 hours, 3 hours, etc until they get used to it. Now I got to the point where I can put the collar on them when I go to sleep but have to take it off at the morning or they will start scratching it like crazy, so, baby steps 🙌🙌

    • @noloboy
      @noloboy 7 месяцев назад

      @@fixtse. Haha .. that is great advice! Ill give it a shot but for sure my 1 cat .. doesn't like it :( .. been trying for more than 2 months now .. she just hates it! Lol

  • @michaelmenzie2806
    @michaelmenzie2806 10 дней назад

    in your video you mention "known_devices.yaml" from what i understand that is being phased out. so what will be the replacement for the device tracker?

    • @fixtse.
      @fixtse.  4 дня назад

      Check out tomorrows video, there is an ESPHome based alternative that comes with all the sensors built in.

    • @michaelmenzie2806
      @michaelmenzie2806 4 дня назад

      @@fixtse. Do you mean the Bermuda video you just dropped?

    • @fixtse.
      @fixtse.  4 дня назад

      @@michaelmenzie2806 yes

  • @johndan4986
    @johndan4986 9 месяцев назад

    Great videos. can u add an automation using espresence to make music follow u wherever u enter. forexample if u have been listening in the bedroom and u remove the room, it will stop en play in your current location.

    • @fixtse.
      @fixtse.  9 месяцев назад

      Sure I can, but I would like to make some tests, so it would have to wait for a new video, an automation like that could potentially be really annoying if you get a lot of false positives.

    • @johndan4986
      @johndan4986 9 месяцев назад

      @@fixtse. am looking forward to it.

  • @santiagocarlin9130
    @santiagocarlin9130 10 дней назад

    Hey do I need a smart hub? Or with a google home assistant is more than enough?

    • @fixtse.
      @fixtse.  День назад

      To use espresense? You do need more than a smart hub to run Home Assistant.

  • @dastiieto7651
    @dastiieto7651 Месяц назад

    Thank You for this great Video!! It's going really fast forward. I create the sensors like your instructions and this works well... But i hang in the part you create a device_tracker in the known_devices.yaml... I Only have to track iPhones & Apple Watches, but this devices changes the mac address every "5 seconds"... How to track these Devices?

    • @fixtse.
      @fixtse.  Месяц назад

      fixtse.com/blog/espresense-detection#how-to-track-your-iphone, For the apple watch the process is diferent espresense.com/beacons/apple#apple-watch-using-bluetooth-terminal-app

    • @dastiieto7651
      @dastiieto7651 Месяц назад

      @@fixtse. Oh Yeah... I Did all this and it works fantastic... I created the Sensors in configuration.yaml and it works fine... All the Devices switching funny from one room to another... 🎉 But these are just sensors... not "device_tacker" i can add to a person to figure out is this person at home or not... I can´t add a sensor like "sensor.my-iphone" as a "tracked Device" for a person... You understand what im talking about?

    • @dastiieto7651
      @dastiieto7651 Месяц назад

      I Fixed it.... Just a couple of hours thinking about it... Now i understand your concept... 👍
      But it would be cool if there is an option to put all devices into one Automation.. (Or is a template in config.yaml also possible?)

  • @Mr-Coke
    @Mr-Coke 4 месяца назад

    Unfortunately it didnt work :(
    when i leave the standard preferences then my watch is 12m and my mobile phone 8m away. But the real distance is 15cm. Then i use the Absorption function and put it on 10. then it is at 1.7m. But if i walk away. equal if it be 2 or 4 or 7m. ESPresense is showing still the 1.7m. I changed the BLE preferences like youre video in the companion app, but doesn´t matter. at the clock a galaxy watch 6 i cant make any preferences.
    Start Counting devices is at 5m, Stop Counting devices is on 12m. maximum distance to report is 20m
    Any IDEA?

    • @Mr-Coke
      @Mr-Coke 4 месяца назад

      The BLE preferences from the watch can set by code. So i adustet the advertise_mode and the transmit_power. Now it is tracking very well :)

  • @felixpeer6677
    @felixpeer6677 4 месяца назад

    Hey, do you have any idea how to track a Fossil Hybrid HR Watch? I guess ESpresense is only seeing the bluetooth device when the watch is not connected to my phone and looks for a new bluetooth connection 🤔🤔

    • @fixtse.
      @fixtse.  4 месяца назад +1

      Exactly that, that's why I use a miband, since it has a build option in the firmware that allows it to announce its "presence" even when connected to the phone. This is really a security feature (the fact that it automatically stops advertising its presence once connected to a device, so it's invisible for possible attackers), but I still think that you should let the user have the option to turn it back on.
      The only option I think it's to choose either use it connected to your phone as intended or use it for espresense detection (is not a fair choice, I know, but it's a software limitation, maybe somewhere out there on the internet, someone have manage to create a special firmware for this, that allows to change that, you'll never know unless you do a google search 🤞)

    • @felixpeer6677
      @felixpeer6677 4 месяца назад

      @@fixtse. Ahh i see, thats sad 🥲
      I tried it with the Bluetooth option from home Assistent Companion App, but the distance is never right and the delay of my phone being detected or not is 2-4 minutes 🥲

  • @anonymouspianoman5156
    @anonymouspianoman5156 2 месяца назад +1

    Good content. But the background music is too much.

    • @fixtse.
      @fixtse.  2 месяца назад +3

      Hi, thank you for the feedback, I'm working to fix that on my next videos.

  • @madpb
    @madpb 7 месяцев назад

    This is very cool. I can see all my Apple AirTags as well as my Iphone and NOT my Android phone
    I could not get iBeam to see my Pixel7Pro. .................Shoot... you lost me at 7:08?
    how did you get that sensor added to the configuration.yaml file.??

    • @fixtse.
      @fixtse.  7 месяцев назад

      jeje just go back to 6:50, you can copy the code from my website here (fixtse.com/blog/espresense-detection#how-to-create-a-sensor ). Sorry for the fast pace, I'm working on my sense of speed to get it right 😅in my future videos, so they are easier to follow.

    • @a1dox
      @a1dox 5 месяцев назад

      My Galaxy S21 rolls its BLE mac address every so often so I see a growing list of "Samsung" devices. Enrolling it like the iPhone exchanges an IRK which allows Espresense to identify the phone even when its address changes.

    • @fixtse.
      @fixtse.  5 месяцев назад

      @@a1dox great, so the new method could make Android Phones work without setting up a beacon in the home assistant app 🎉🙌

    • @a1dox
      @a1dox 5 месяцев назад

      @@fixtse. I still had to enable the BLE Transmitter sensor in the HA app and create the mqtt_room sensor in configuration.yaml, but without the enrolment I didn't have a persistent ID to track. With enrolment the ID is the name I enrolled with, and it's independent of mac changes 👍

  • @hammerlized
    @hammerlized 8 месяцев назад

    Hi,
    thanks for your video. Just a tip, try speaking a bit slower. I know spanish language is a fast spelling one. But sometimes it is hard to follow your steps like this, at least for me :)

    • @fixtse.
      @fixtse.  8 месяцев назад +1

      I printed them myself, I linked the STL files on my website, if you don't have a 3dprinter, surely you can find a 3dprinter shop near you to get them 🙌🙌

  • @GamingPill
    @GamingPill 7 месяцев назад

    This is the slowest responsive room presence. If you really wanna good and fast responsive, try mmwave in combination with pir sensor

    • @fixtse.
      @fixtse.  7 месяцев назад +5

      Why no both? I use this for person specific automations that wouldn't be possible with just a mmwave sensor.

    • @GospelProgressionsUniversity
      @GospelProgressionsUniversity 7 месяцев назад +1

      You could just leverage the srengths of each; The speed of the PIR sensor, the identification property of the ESpresence and the sensitivity of the mm wave.