Giter Site home page Giter Site logo

Comments (9)

krazyflipj avatar krazyflipj commented on August 15, 2024

Anyone have any solution to this?

from homebridge-people.

gaojie429 avatar gaojie429 commented on August 15, 2024

@Salsalove
@krazyflipj
I find some solution of this.
Please show me the config.json, and let me know the detail of your problem. Then may be I can find the solution.

from homebridge-people.

krazyflipj avatar krazyflipj commented on August 15, 2024

@gaojie429 I pretty much used the sample config file in the read me section. Sensors work but it doesn't look like the plugin is pinging every 10 seconds (default setting)

from homebridge-people.

gaojie429 avatar gaojie429 commented on August 15, 2024

I think we can't confirm throhgh homebridge that this plugin send ping.
If the sensors works (turn on or off as expected), ping is also works.
Which do you set the target on ?
IP or device Name?

from homebridge-people.

krazyflipj avatar krazyflipj commented on August 15, 2024

Device name. Wouldn’t log file show when it pings? It shows it when it first loads but that’s it

from homebridge-people.

gaojie429 avatar gaojie429 commented on August 15, 2024

Yes, it doesn't show any ping information.
(in my environment)
But it send notification when the people-sensors turn on or off, including the last ping info.
Please try following:

  1. change "threshold" section to 1 in your config file.
  2. turn off wifi of your target device more than 1 minute.
  3. confirm that people-sensor turn off on Home app.
  4. then, check the log. you may see the notification from this plugin like this:
    [People] Changed occupancy state for XXXXX.local to true. Last successful ping 2019-02-17T23:14:19+09:00 , last webhook none .

from homebridge-people.

krazyflipj avatar krazyflipj commented on August 15, 2024

@gaojie429 ok so the following showed:

Changed occupancy state for _username_ to false. Last successful ping 2019-02-17T06:48:07-08:00

So does that mean it is working? So the plugin just checks every 15 minutes (default) in this case, it was changed to one minute? If so, how is this better than the geofencing that HomeKit uses? With threshold set at 15, wife left house 5 minutes ago and it still detects her as being home.

from homebridge-people.

gaojie429 avatar gaojie429 commented on August 15, 2024

Yes it works well !!
According to the description of this plugin...
when a Homekit enabled app looks up the state of a person, the last seen time for that persons device is compared to the current time minus threshold minutes, and if it is greater assumes that the person is active.
So, if you set threshold at 15, this plugin think that target device is at home even if the device is disconnected 10 minutes ago.

When you set threshold at 1, this plugin detect your leaving home immediately.
However, I don't recommend to set it at 1, because iPhone deliberately disconnect from the network once the screen is turned off to save power. Fortunately, it return to online in a few seconds, so you can set it to less than 15. Most recommended threshold is 5~7.

from homebridge-people.

brodyhoskins avatar brodyhoskins commented on August 15, 2024

Super late response, but my guess is that likely the device name might fail on macOS if it's a Windows NETBEUI name. I'd try using the Bonjour/MDNS name ending in .local as suggested.

If the issue is pinging a macOS computer for presence, make sure "Enable stealth mode" isn't enabled in Systems Preferences > Security & Privacy > Firewall > Firewall Options...

from homebridge-people.

Related Issues (20)

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.