GithubHelp home page GithubHelp logo

MAC Address about homebridge-wifipresence HOT 8 OPEN

llun avatar llun commented on June 15, 2024
MAC Address

from homebridge-wifipresence.

Comments (8)

llun avatar llun commented on June 15, 2024

Hi,

yes all MAC are in lowercase e.g.

"clients": ["aa:bb:cc:dd:ee:ff", "11:22:33:44:55:66"],

and it will use this list intersect with in the presence file. So if any of MAC is exist, the HomeKit will say it's occupied.

You can change this line, https://github.com/llun/homebridge-wifipresence/blob/master/index.js#L38 to make it check, only all MAC are exists, to show device is occupied.

from homebridge-wifipresence.

OnilMr avatar OnilMr commented on June 15, 2024

Ok thanks. I need it to show occupied if my iphone OR my wife's iphone are at home so I don't need to change that line.

But do I need to create the presence.wifi file ?
Because I installed the plugin and then homebridge gave me an error because there was no file.

from homebridge-wifipresence.

llun avatar llun commented on June 15, 2024

No but you need to run presence.sh to produce that file.

from homebridge-wifipresence.

kevinshane avatar kevinshane commented on June 15, 2024

Hi @llun sorry for bothering you, but if I understand correctly, the presence.sh should be running in router side not the rpi side(homebridge installed) right? So how to make this homekit to"read" the presence.wifi?or should I running homebridge and the router on the same machine?(currently I am running openwrt router)

from homebridge-wifipresence.

llun avatar llun commented on June 15, 2024

@kevinshane hi, I run HomeKit in the router itself. Alternative option is using IP address and lock down the phone address, and using ping for finding which device are presence in the network but it quite not convenient when new device is add to the network.

For openwrt, you might want to try https://github.com/llun/hkwifioccupancy/blob/master/netlink_presence.go so instead of using file, it can trigger when people join on network. I will try porting this back to HomeBridge later.

from homebridge-wifipresence.

kevinshane avatar kevinshane commented on June 15, 2024

Thanks man, really helpful infomation! I will look into that

from homebridge-wifipresence.

saury avatar saury commented on June 15, 2024

@kevinshane hi, I've create some script works properly by rpi side. You may update your doc or add a link to my repo raspberry-pi-wifi-presence-with-mac-address and it would be helpful for those who can not run your presence.sh shell script by router side.

from homebridge-wifipresence.

GucciSlidesZA avatar GucciSlidesZA commented on June 15, 2024

Hi @llun

Could you please let me know how to run the presence.sh script on a DD WRT router so that it can create the presence.wifi file? I have the plug in added to my config file but the device is not responding in Homekit.

Thanks you so much and sorry if it's a stupid question - I just REALLY want to get this working for an Android device. Thank you so much :)

from homebridge-wifipresence.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.