• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Presence of Androids - Home Automation - Linux PC accessing ARP table entries

General pfSense Questions
8
28
3.5k
Loading More Posts
  • 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.
  • D
    Davo @NogBadTheBad
    last edited by Nov 5, 2018, 9:27 PM

    @nogbadthebad said in Presence of Androids - Home Automation - Linux PC accessing ARP table entries:

    Are you using Homebridge ( I doubt it as your talking Android phones )

    Not using Homebridge. Think I need to read up about SNMP which seems probably has the capability to read the ARP table which would still be the best solution as the network traffic monitoring devices is already done there. Perhaps later pfSense versions do SNMP better? Interacting with Bluetooth devices is also respectable, except the phones need to have it on (I presume) which is less likely and reliable than a phone connecting to the LAN.

    1 Reply Last reply Reply Quote 0
    • D
      Davo @stephenw10
      last edited by Nov 5, 2018, 9:32 PM

      @stephenw10 said in Presence of Androids - Home Automation - Linux PC accessing ARP table entries:

      How many android devices are you talking about?

      Likely scenario is 3 androids and an intermittent iphone as well. The basic objective is
      If {listed phone in house in last 5 minutes} then {turn on LAN Relay with timeout of say 15 minutes}
      That allows Heater to run when someone home, and turn off relatively quickly when no one is home, and if no one is home for a day the heater won't run at all. New LAN relay commands overwrite existing commands, so update the timeout period.

      1 Reply Last reply Reply Quote 0
      • S
        stephenw10 Netgate Administrator
        last edited by Nov 5, 2018, 10:46 PM

        It seems like you should be able to do this fairly easily with IFTTT or a similar style app on each device.

        Steve

        D 1 Reply Last reply Nov 5, 2018, 10:57 PM Reply Quote 0
        • D
          Davo @stephenw10
          last edited by Nov 5, 2018, 10:57 PM

          @stephenw10 said in Presence of Androids - Home Automation - Linux PC accessing ARP table entries:

          you should be able to do this fairly easily with IFTTT or a similar style app on each device.

          Ouch. I think that involves registration with an external server to work, so if the Internet is down, our heater may not work. Not a good idea IMHO. I am looking to keep it local within the house.

          1 Reply Last reply Reply Quote 0
          • S
            stephenw10 Netgate Administrator
            last edited by Nov 5, 2018, 11:26 PM

            I don't blame you. Something something something "the cloud"! ๐Ÿ˜‰

            That's unfortunately how most of these things seem to work. I guess they do it for maximum compatibility, ease of setup etc.

            It does seem like there should be an app that can do it locally though.

            Steve

            D 2 Replies Last reply Nov 5, 2018, 11:57 PM Reply Quote 0
            • D
              Davo @stephenw10
              last edited by Nov 5, 2018, 11:57 PM

              @stephenw10 said in Presence of Androids - Home Automation - Linux PC accessing ARP table entries:

              I guess they do it for maximum compatibility, ease of setup etc.

              I think etc means the data is collected and is valuable to someone. I am not especially opposed to that (as much as some) but we need to keep our eyes open and realise the pros and cons of new offerings. If the data means I get a useful benefit with no downsides I am open to it. The need for an Internet connection has minimal benefit to me in terms of running a central heating system and the benefit of giving someone else the data of my heater's use (and other things) in trade for automation is not a convincing purchase for me.

              1 Reply Last reply Reply Quote 0
              • D
                Davo @stephenw10
                last edited by Nov 5, 2018, 11:59 PM

                @stephenw10 said in Presence of Androids - Home Automation - Linux PC accessing ARP table entries:

                It does seem like there should be an app that can do it locally though.
                Perhaps, the economic ducks need to line up for that. If a bit of code and low cost hardware can do the job for me I'd be happy with that, for awhile at least...! KISS

                D 1 Reply Last reply Nov 6, 2018, 1:02 AM Reply Quote 0
                • D
                  Davo @Davo
                  last edited by Nov 6, 2018, 1:02 AM

                  @davo This dang kit is so damned kewl!
                  Even if I am running such an old image.....
                  snmpwalk [ip address of phone] -c public -v2c \iso.3.6.1.2.1.4.22.1.2.2.[ip address of phone]
                  when snmp is enabled....
                  gives
                  iso.3.6.1.2.1.4.22.1.2.2.[ip address of phone] = Hex-STRING: [Mac address of phone]
                  Thanks for the tips gurus.

                  1 Reply Last reply Reply Quote 0
                  • N
                    NogBadTheBad
                    last edited by Nov 6, 2018, 7:53 AM

                    You probably just need to do an snmpget rather than a walk if you're just looking at an individual phone.

                    Andy

                    1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

                    D 1 Reply Last reply Nov 6, 2018, 11:21 AM Reply Quote 0
                    • D
                      Davo @NogBadTheBad
                      last edited by Nov 6, 2018, 11:21 AM

                      @nogbadthebad said in Presence of Androids - Home Automation - Linux PC accessing ARP table entries:

                      You probably just need to do an snmpget

                      Yes that works too.
                      However the walk was helpful to examine the data to get the reference numbers. Not sure there is a material difference otherwise running snmpget or snmpwalk for a single result?

                      1 Reply Last reply Reply Quote 0
                      • T
                        terrysand
                        last edited by Jan 10, 2021, 11:53 PM

                        I had the same question in the creation . And I want to ask-does linux allow you to do this?

                        N 1 Reply Last reply Jan 11, 2021, 8:14 AM Reply Quote 0
                        • S
                          stephenw10 Netgate Administrator
                          last edited by Jan 11, 2021, 12:38 AM

                          Allow you to do what exactly?

                          Steve

                          1 Reply Last reply Reply Quote 0
                          • N
                            NogBadTheBad @terrysand
                            last edited by Jan 11, 2021, 8:14 AM

                            @terrysand said in Presence of Androids - Home Automation - Linux PC accessing ARP table entries:

                            I had the same question in the creation . And I want to ask-does linux allow you to do this?

                            snmpwalk & snmpget, if thatโ€™s the question the answer is yes, youโ€™ll need to install the package.

                            Andy

                            1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

                            1 Reply Last reply Reply Quote 0
                            • SnigMonisS
                              SnigMonis
                              last edited by May 6, 2021, 9:45 AM

                              This is cool, thank you for sharing

                              1 Reply Last reply Reply Quote 0
                              • bingo600B
                                bingo600
                                last edited by bingo600 May 6, 2021, 1:56 PM May 6, 2021, 1:06 PM

                                Thinking out loud ....

                                Would be cool to be able to "Fire an RMON" trap if that mac address is seen on the ??? - Switch or AP ...
                                Prob greatest chance on Switch .....

                                Hmmm ...
                                Investigating what a HP 18xx switch can ...

                                Damm HP 18xx ... Too simple , no RMON

                                /Bingo

                                If you find my answer useful - Please give the post a ๐Ÿ‘ - "thumbs up"

                                pfSense+ 23.05.1 (ZFS)

                                QOTOM-Q355G4 Quad Lan.
                                CPU  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                                LAN  : 4 x Intel 211, Disk  : 240G SAMSUNG MZ7L3240HCHQ SSD

                                1 Reply Last reply Reply Quote 0
                                • S
                                  stephenw10 Netgate Administrator
                                  last edited by May 6, 2021, 1:50 PM

                                  At least two posts here are almost certainly spam. Be on the look out! ๐Ÿ˜‰

                                  johnpozJ 1 Reply Last reply May 6, 2021, 2:17 PM Reply Quote 0
                                  • johnpozJ
                                    johnpoz LAYER 8 Global Moderator @stephenw10
                                    last edited by May 6, 2021, 2:17 PM

                                    Yeah @bingo600 and @NogBadTheBad are very sus ;) hehehe

                                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                                    If you get confused: Listen to the Music Play
                                    Please don't Chat/PM me for help, unless mod related
                                    SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                                    1 Reply Last reply Reply Quote 2
                                    • S
                                      stephenw10 Netgate Administrator
                                      last edited by May 6, 2021, 2:25 PM

                                      Ha!

                                      1 Reply Last reply Reply Quote 0
                                      • First post
                                        Last post
                                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.