Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. General Discussion
  3. At home / away?

At home / away?

Scheduled Pinned Locked Moved General Discussion
away
25 Posts 11 Posters 3.4k Views 11 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • sundberg84S sundberg84

    @yveaux i use tasker and wifi change so when I connect/disconnect to my home wifi I send a command. Works great but I understand the difficulty with ping.

    dbemowskD Offline
    dbemowskD Offline
    dbemowsk
    wrote on last edited by
    #8

    @sundberg84 if what @Yveaux says is correct, wouldn't the phone constantly connect and disconnect and trigger tasker?

    Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
    Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

    sundberg84S 1 Reply Last reply
    0
    • dbemowskD dbemowsk

      @sundberg84 if what @Yveaux says is correct, wouldn't the phone constantly connect and disconnect and trigger tasker?

      sundberg84S Offline
      sundberg84S Offline
      sundberg84
      Hardware Contributor
      wrote on last edited by sundberg84
      #9

      @dbemowsk it doesn't... I don't know if there is a delay in tasker so the wifi comes online before. This works great for me.

      Edit; There is both "wifi near" and "wifi connected" in tasker and this might be the difference. In using "wifi near"

      Controller: Proxmox VM - Home Assistant
      MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
      MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
      RFLink GW - Arduino Mega + RFLink Shield, 433mhz

      dbemowskD 1 Reply Last reply
      0
      • sundberg84S sundberg84

        @dbemowsk it doesn't... I don't know if there is a delay in tasker so the wifi comes online before. This works great for me.

        Edit; There is both "wifi near" and "wifi connected" in tasker and this might be the difference. In using "wifi near"

        dbemowskD Offline
        dbemowskD Offline
        dbemowsk
        wrote on last edited by
        #10

        @sundberg84 I have tasker on my phone. I will have to try this. I had some issues on one of my previous phones so I didn't use tasker as much as I thought I would. I woner if it will work better on my Samsung Galaxy S8+. It would also be nice if I could get geofencing working too.

        Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
        Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

        1 Reply Last reply
        0
        • zboblamontZ zboblamont

          @michael_k Have you considered a phone link latching via bluetooth or similar? Unless you do not have a mobile phone of course.
          Fairly sure somebody very recently posted a piece where his electric car charger would only activate if he was getting close to home, how it was done I cannot recall....

          Michael_KM Offline
          Michael_KM Offline
          Michael_K
          wrote on last edited by
          #11

          @zboblamont
          BT sounds good. But, I don't exactly want to use my phone's BT (would have to keep it on).
          Perhaps there's some kind of BT device I can put in my car (powered when running), and connect to something that can talk to my HA system.

          @sundberg84
          I don't really like the geofence method -- I rarely have location turned on.

          @tbowmo
          Actually, that's what I have now. Tasker watches for when my phone's wifi connects and disconnects from my LAN, and notifies my HA system (which has a Tasker plugin). But, as @Yveaux mentioned, it's not quite ideal.

          @dbemowsk
          I think that Tasker knows the difference between 'wifi radio on/off' and 'connected/disconnected from and near/not near LAN'.

          Using mysensors to augment my HomeSeer Hometroller Zee S2.

          1 Reply Last reply
          0
          • wallyllamaW Offline
            wallyllamaW Offline
            wallyllama
            wrote on last edited by wallyllama
            #12

            Would somesort of passive rfid tag attached to your keychain work?

            Edit - a quick google search for keyfinder came up with a variety of bluetooth/gps tags, some in bulk for under $2 USD. Probably come with an app, but that could likely be subverted into something mysensors compatible.

            Michael_KM 1 Reply Last reply
            0
            • YveauxY Yveaux

              @tbowmo recent Android (and probably ios too) disables wifi when the phone is at rest for some time. You aren't able to distinguish between phone at rest and phone away...
              I had to give up this route...

              tbowmoT Offline
              tbowmoT Offline
              tbowmo
              Admin
              wrote on last edited by
              #13

              @yveaux
              I'm pretty sure that I can see new phones (both iPhone X and Samsung galaxy s9 devices) on my access point, even if they haven't been used for a while.

              But I haven't used the presence detection the last couple of years.

              1 Reply Last reply
              0
              • wallyllamaW wallyllama

                Would somesort of passive rfid tag attached to your keychain work?

                Edit - a quick google search for keyfinder came up with a variety of bluetooth/gps tags, some in bulk for under $2 USD. Probably come with an app, but that could likely be subverted into something mysensors compatible.

                Michael_KM Offline
                Michael_KM Offline
                Michael_K
                wrote on last edited by
                #14

                @wallyllama
                Passive RFID doesn't have the required range (a max of ~1 m?)

                Using mysensors to augment my HomeSeer Hometroller Zee S2.

                1 Reply Last reply
                0
                • Michael_KM Offline
                  Michael_KM Offline
                  Michael_K
                  wrote on last edited by Michael_K
                  #15

                  Well, I have an idea that might work!
                  Attach this to an Arduino. (Note that there's also a UART version.) Then, all I need is a Bluetooth transponder beacon tag (which I'd leave in the car).
                  Conveniently, I'd still need MySensors to implement this!

                  Using mysensors to augment my HomeSeer Hometroller Zee S2.

                  1 Reply Last reply
                  0
                  • tbowmoT Offline
                    tbowmoT Offline
                    tbowmo
                    Admin
                    wrote on last edited by
                    #16

                    @Michael_K

                    That only detects if your car is there or not.. If you take your bike, or just walk to a bus stop, then it won't detect your presence :)

                    Michael_KM 1 Reply Last reply
                    0
                    • gohanG Offline
                      gohanG Offline
                      gohan
                      Mod
                      wrote on last edited by
                      #17

                      So far the cheapest solution I found is using an esp32 that scans for nearby BT devices (look at the Andreas Spiess video on his channel) but I don't know if it will be compatible with mysensors

                      YveauxY 1 Reply Last reply
                      0
                      • gohanG gohan

                        So far the cheapest solution I found is using an esp32 that scans for nearby BT devices (look at the Andreas Spiess video on his channel) but I don't know if it will be compatible with mysensors

                        YveauxY Offline
                        YveauxY Offline
                        Yveaux
                        Mod
                        wrote on last edited by
                        #18

                        @gohan said in At home / away?:

                        scans for nearby BT devices

                        But then you have to place quite a lot of receivers to cover your whole house, I assume?

                        http://yveaux.blogspot.nl

                        gohanG 1 Reply Last reply
                        0
                        • wallyllamaW Offline
                          wallyllamaW Offline
                          wallyllama
                          wrote on last edited by
                          #19

                          I'm going to go a bit conceptual here, riffing on some ideas that I believe I got from @dbemowsk. A multi-pronged approach may be useful here, maybe bt for the car and bicycle, amount of time since any PIR device triggered, time of day, etc. Then using the "smarts" of a smarthome a reasonable estimate of home/away can be gained.

                          I dont think an A.I. like the googazon has is required, but something smarter than a single node might be apropriate.

                          1 Reply Last reply
                          1
                          • YveauxY Yveaux

                            @gohan said in At home / away?:

                            scans for nearby BT devices

                            But then you have to place quite a lot of receivers to cover your whole house, I assume?

                            gohanG Offline
                            gohanG Offline
                            gohan
                            Mod
                            wrote on last edited by
                            #20

                            @yveaux correct

                            1 Reply Last reply
                            0
                            • skywatchS Offline
                              skywatchS Offline
                              skywatch
                              wrote on last edited by
                              #21

                              You could interface the security alarm system to your controller - you only set the full alarm state when out of the house, no?

                              Alternatively you could add an extra bolt on the door which you can only operate from inside and have that press a microswitch or break a light beam. You always have to undo that to leave so it will know when you are out.

                              Another solution might be to have a a simple 2 button panel by the door with 'in' and 'out' on it - you simply press it as you leave or enter the building - that would be easy with mysensors and ofc you could replace the buttons with a rfid tag reader if you like. Maybe you ocould also have a place where you keep your keys that can sense if they are there or not - advantage with this is you always put your keys in that place and never loose them (in theory at least) ;)

                              1 Reply Last reply
                              0
                              • tbowmoT tbowmo

                                @Michael_K

                                That only detects if your car is there or not.. If you take your bike, or just walk to a bus stop, then it won't detect your presence :)

                                Michael_KM Offline
                                Michael_KM Offline
                                Michael_K
                                wrote on last edited by
                                #22

                                @tbowmo said in At home / away?:

                                @Michael_K

                                That only detects if your car is there or not.. If you take your bike, or just walk to a bus stop, then it won't detect your presence :)

                                That's not a problem for me (I rarely ride my bike, and there's nowhere close by to walk to). Also, I rarely go anywhere in someone else's car.
                                But, for those instances, I figure that a simple solution would be a special event that I run from the HA app.

                                Using mysensors to augment my HomeSeer Hometroller Zee S2.

                                1 Reply Last reply
                                0
                                • J Offline
                                  J Offline
                                  jimmy loyens
                                  wrote on last edited by
                                  #23

                                  How about having several of these ble nodes around the house scanning for bluetooth of your cellphone and sending the rssi over mysensors to the controller. This way you can do a crude indoor positioning (witch node is closest, so phone is in that room). And if you leave the home (with cellphone) the controller can detect no node sees the phone anymore, so no presence is detected.

                                  1 Reply Last reply
                                  0
                                  • gohanG Offline
                                    gohanG Offline
                                    gohan
                                    Mod
                                    wrote on last edited by
                                    #24

                                    there are some projects using esp32 to monitor presence of BLE devices.

                                    1 Reply Last reply
                                    0
                                    • nagelcN Offline
                                      nagelcN Offline
                                      nagelc
                                      wrote on last edited by
                                      #25

                                      I have been using this BLE method (python script) with Domoticz and a couple of raspberry pi zero W.

                                      https://www.domoticz.com/wiki/Presence_detection_(Bluetooth_4.0_Low_energy_Beacon)

                                      One pi is near my driveway, and one on the other side of the house. I have an old Tile tag in one car and a Nut in the other. Both work fine for detecting when my cars leave and return. It also detects my Fitbit, an old one of the original type. I have that with me most of the time, so it acts like a tag for my presence.
                                      I haven't done much with it so far except to turn on the porch light when the cars pull into the driveway at night.

                                      1 Reply Last reply
                                      0
                                      Reply
                                      • Reply as topic
                                      Log in to reply
                                      • Oldest to Newest
                                      • Newest to Oldest
                                      • Most Votes


                                      22

                                      Online

                                      11.7k

                                      Users

                                      11.2k

                                      Topics

                                      113.1k

                                      Posts


                                      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                      • Login

                                      • Don't have an account? Register

                                      • Login or register to search.
                                      • First post
                                        Last post
                                      0
                                      • MySensors
                                      • OpenHardware.io
                                      • Categories
                                      • Recent
                                      • Tags
                                      • Popular