Giter Site home page Giter Site logo

homebridge-people's People

Contributors

benzman81 avatar pdlove avatar petelawrence avatar stephanroslen avatar wr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebridge-people's Issues

Error: listen EADDRINUSE :::51828

Hi, after installing v. 0.4.0 my Homebridge gives me this Error ( Error: listen EADDRINUSE :::51828 ) when i try to start it. When i install v. 0.3.5 again all works fine.

different type of sensor

If I want to make automation with these sensors in Homekit, I can only trigger an action if the device is spotted with ping. But I actually want to trigger action when no device is spotted. I guess the sensor in Homekit needs to be a different one to achive this. Do you have any idea how to solve this?

Not being detected

I have everything setup and Homebridge is running without error on my RPi 3. I have my phone details entered but I never show detected. Here is my config file. Other than installing the and rebooting Homebridge is there anything else I am missing to get this working?
{
"platform": "People",
"threshold": 15,
"anyoneSensor": true,
"nooneSensor": false,
"webhookPort": 51828,
"pingInterval": 10000,
"ignoreReEnterExitSeconds": 0,
"people": [{
"name": "Ed",
"target": "Eds-iPhone",
"threshold": 15,
"pingInterval": 10000,
"ignoreReEnterExitSeconds": 0
}

Find by MAC address

I've find IP address on my network frequently change. If its possible, maybe you can implement a way to look up devices by mac address then get the IP and ping it. I know you can run arp -a to get a list of IPS and mac address on a network.

siri commands

Any idea what Siri commands are available for the plugin? I can get the Eve app to show my occupancy but cannot get Siri to recognise the device.

Thanks

Cannot get status change

I have set up two persons iphones with IP-addresses that works when I ping them from another computer on the same local network.
The status newer changes in the Eve app. what can I do to debug?

The 'ANYONE' sensor is confusing if you can't tell which sensor it is

I love the intent behind the ANYONE sensor. When/if you can actually determine which one it is, it will be an awesome feature. Right now it seems like some may find it more confusing than helpful so perhaps it should be optional.

That said, I have two issues with the 'ANYONE' sensor, both of them relating to the fact that the sensors do not have names everywhere (as discussed in #15):

  1. I was surprised when I first configured the plugin with two people and three occupancy sensors showed up in the list. Came to find out one of them was the 'ANYONE' sensor, which makes a lot of sense.
    • *Possible fix: * Update the documentation for the plugin to indicate that the ANYONE sensor will be added automatically
  2. It's not possible to know for sure which sensor the "ANYONE" sensor actually is. Yes, I know from #15 that it should always be the last one in the list, but that doesn't seem like a very good answer since it's possible that different applications may choose to sort them differently for some reason.
    • *Workaround: * Update the documentation for the plugin to mention that the ANYONE sensor should be the last sensor in the list. Again, not sure this will actually always be true...

not working?

I have installed people plugin on my raspberry pi without problems and configured it directly to two IP adressess of my iPhones. Run the home bridge app with no error messages. Both iPhones do show in EVE app on my iPhone, but they report as "away" although at home and more than 15 min has passed.

Any ideas what can be wrong?
All of the other plugins work properly

Considered Away when off Wifi but inside geofence

I'm sure this is by design but I'd like to offer an alternative approach for consideration (maybe as a configuration). For those that setup both IP presence & Geofence...

Change state from Home -> Away if:
IP not present AND outside geofence

Change state from Away -> Home if:
IP becomes present OR inside geofence

Thoughts?

Currently, I'm considered Away if I switch wifi off for a few minutes (or perhaps if my phone dies).

Geo Location not taking precedence

I have this plugin working well by monitoring for certain devices on my local network. In trying to improve the speed of detection, I've also configured geo location leveraging IFTTT Maker Channel to send the http commands (have also tried Locative with same results). I can see that homebridge receives the commands promptly but it appears the occupancy status is not being correctly overriden.

For example:

  • threshold set to 15 minutes
  • Say I leave at 8:00 AM (last seen on network at 8:00 AM)
  • IF triggers the event to show I left at 8:02 AM
  • Homebridge receives the event, temporarily shows Not Present but then immediately switches back to present
  • At ~ 8:15 AM sensor is correctly updated to Not Present

At 8:02, I would expect my occupancy to update to Not Present. It looks like that happens for a split moment but then reverts back to Present. It is not until ~ 8:15 that it actually updated to Not Present. Not sure what value Geo Location is adding in this case?

How can I have Geo Location help Homebridge know my presence more quickly? Or, is this not the way it was designed?

no security for geofence webhook

I'm a little concerned about opening up a port for this without any security. Is there something I'm missing to make this more secure, or am I just worrying for nothing?

v0.3.3 everyone away

Hey there, just updated to v0.3.3. After the update all people are away. Noticeable the "ping" process is not as visible in "top" as before. Any ideas? Restart didn't help...

Use presence buttons as Condition - not working consistently

One of the big shortcomings of Apple's Home app is that you cannot program Conditions but only Triggers (Location Changes, Time of Day, Accessory Controlled or Sensor Detects Something). Luckily other administration apps like EVE allow this, however with limitations. E.g. a Time of Day Trigger cannot be subject to a Condition that it should only occur when somebody specific (or anyone) is at home.

I tried to be inventive (I have my moments) and worked out a 2-step approach:

  1. Create a Time of Day Automation that does nothing but triggering a stateless dummy switch
  2. Create a Accessory Controlled Automation that uses the above mentioned dummy switch as Trigger and then (through Eve app) add a Condition that the AnyOne button should be activated before the foreseen scenes/accessories are being executed.

So far so good. Only thing I notice is that the 2nd part is not always executed, which could normally only mean that the Condition (Anyone active) is not met.

My theory is that - when not using the Home app for some time - it looks like the presence buttons are no longer updated or even completely forgotten by Homekit. That could also explain why - when I go in the Home app after a few hours of not using it - I am getting Notifications through my iPhone about a status change for the presence buttons and Automations where these buttons are used as Trigger are executed at that moment only. This behaviour is also explained in another issue: #27 , so far without any idea as to why it is happening.

Would be interested in hearing other users experiences and/or alternative solutions. Also potential logging possibilities for debugging would be welcome.

Triggers not working

I can't seem to get a trigger to fire based on an occupancy sensor state. Where is the "seen.db.json" so I can check if my device is being pinged? Thanks.

Minor README.md update needed

In the Configuration section you may want to add something about the "//" comments needing to be removed to prevent any invalid JSON errors when staring homebridge!

Dont do anything

Hi there,
The plugin doesn't do anything.. when i am in insteon+ the app don't give a green layout or something.. so how to check if someone is in or not ??..

Problems with Cache Directory and Permission

I have problems with the following line in the config.json file: ""cacheDirectory": "./.node-persist/storage", 
I always get the following error when starting homebridge:

_[2017-01-17 20:37:56] Initializing People platform...
/usr/lib/node_modules/homebridge-people/node_modules/node-persist/node_modules/mkdirp/index.js:74
throw err0;
^

Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/homebridge-people/node_modules/node-persist/storage'
at Error (native)
at Object.fs.mkdirSync (fs.js:794:18)
at sync (/usr/lib/node_modules/homebridge-people/node_modules/node-persist/node_modules/mkdirp/index.js:55:12)
at sync (/usr/lib/node_modules/homebridge-people/node_modules/node-persist/node_modules/mkdirp/index.js:61:24)_

Then Homebridge is crashing. I can, however, start homebridge with the command "sudo homebridge" or when logged in as Root. So it seems to be a permission error but I have no idea which one. So I always deleted the above line for the Cache Directory, because you marked it as "optional". But I would prefere to use the line in the config.json. Can you please help me ?

Thanks in advance
Björn #

IP vs device name?

Strange... I have changed IP to my iPhone's name (because it was changing IPs), and now it no longer recognizes the device. I have spaces in the device name (like "iPhone 7 TT"). Is it allowed? I have also tried a name without spaces like "iP7" and it does not work. Putting new IPs (from DHCP) worked and the devices are discoverable again. But as soon as DHCP puts them on different IP it will stop again. What am I doing wrong? ;-)

Where does the log live?

Love the plugin, working really well for me for them most part. But I'd really like to have a look at the logs.

However I'm not managing to find them. I've done a search for seen.db.json and come up empty handed. I've looked in the log folder (/var/log) and done find . -name seen.db.json but nothing.

If anyone could point me in the right direction that would be rad.

Crashing since Update

Hello,

I've updated the plugin and adjusted my config to the platform, but now Homebridge keeps crashing.

Have I entered something incorrectly? I took the People config out and the plugin started fine.
config.json.zip

{
   "bridge":{
      "name":"Homebridge",
      "username":"CC:22:3D:E3:CE:30",
      "port":51826,
      "pin":"031-45-154"
   },
   "description":"Homebridge",
   "accessories":[
      {
         "accessory":"WeMo",
         "name":"HP Printer",
         "wemo_name":"WeMo Switch"
      }
   ],
   "platforms":[
      {
         "platform":"Camera-ffmpeg",
         "cameras":[
            {
               "name":"Room",
               "videoConfig":{
                  "source":"-re -f avfoundation -framerate 30 -video_size 1280x720 -i 0:0",
                  "maxStreams":2,
                  "maxWidth":1280,
                  "maxHeight":720,
                  "maxFPS":30
               }
            }
         ]
      },
      [
         {
            "platform":"People",
            "threshold":15,
            "anyoneSensor":true,
            "nooneSensor":true,
            "webhookPort":51828,
            "cacheDirectory":"./.node-persist/storage",
            "pingInterval":10000,
            "ignoreReEnterExitSeconds":0,
            "people":[
               {
                  "name":"Alvin",
                  "target":"192.168.1.86",
                  "threshold":15,
                  "pingInterval":10000,
                  "ignoreReEnterExitSeconds":0
               },
               {
                  "name":"Simon",
                  "target":"192.168.1.217",
                  "threshold":15,
                  "pingInterval":10000,
                  "ignoreReEnterExitSeconds":0
               },
               {
                  "name":"Theodore",
                  "target":"192.168.1.125",
                  "threshold":15,
                  "pingInterval":10000,
                  "ignoreReEnterExitSeconds":0
               },
               {
                  "name":"Chipmunk",
                  "target":"192.168.1.115",
                  "threshold":15,
                  "pingInterval":10000,
                  "ignoreReEnterExitSeconds":0
               }
            ]
         },
         {
            "platform":"cmdSwitch2",
            "switches":[
               {
                  "name":"Kettle",
                  "on_cmd":"/Users/churchserver/iBrew/ibrewlegacy heat 192.168.1.5",
                  "off_cmd":"/Users/churchserver/iBrew/ibrewlegacy stop 192.168.1.5",
                  "state_cmd":"/Users/churchserver/iBrew/ibrewlegacy status 192.168.1.5 | grep 'Heating water 100ºC selected'",
                  "polling":true,
                  "interval":10
               },
               {
                  "name":"TV",
                  "on_cmd":"python /Users/churchserver/python-broadlink/BlackBeanControl/BlackBeanControl.py -c PowerToshiba"
               },
               {
                  "name":"Amp",
                  "on_cmd":"python /Users/churchserver/python-broadlink/BlackBeanControl/BlackBeanControl.py -c PowerAmplifier"
               },
               {
                  "name":"Mute TV",
                  "on_cmd":"python /Users/churchserver/python-broadlink/BlackBeanControl/BlackBeanControl.py -c MuteTV"
               },
               {
                  "name":"Mute Amp",
                  "on_cmd":"python /Users/churchserver/python-broadlink/BlackBeanControl/BlackBeanControl.py -c MuteAmp"
               }
            ]
         }
      ]
   ]
}

This is the error log:

Church-Server:~ churchserver$ homebridge 
[1/7/2017, 10:38:29 AM] Loaded plugin: homebridge-camera-ffmpeg
[1/7/2017, 10:38:29 AM] Registering platform 'homebridge-camera-ffmpeg.Camera-ffmpeg'
[1/7/2017, 10:38:29 AM] ---
[1/7/2017, 10:38:29 AM] Loaded plugin: homebridge-cmdswitch2
[1/7/2017, 10:38:29 AM] Registering platform 'homebridge-cmdswitch2.cmdSwitch2'
[1/7/2017, 10:38:29 AM] ---
[1/7/2017, 10:38:29 AM] Loaded plugin: homebridge-milight
[1/7/2017, 10:38:29 AM] Registering platform 'homebridge-milight.MiLight'
[1/7/2017, 10:38:29 AM] ---
[1/7/2017, 10:38:29 AM] Loaded plugin: homebridge-people
[1/7/2017, 10:38:29 AM] Registering platform 'homebridge-people.People'
[1/7/2017, 10:38:29 AM] Registering accessory 'homebridge-people.PeopleAccessory'
[1/7/2017, 10:38:29 AM] Registering accessory 'homebridge-people.PeopleAllAccessory'
[1/7/2017, 10:38:29 AM] ---
[1/7/2017, 10:38:29 AM] Loaded plugin: homebridge-wemo
[1/7/2017, 10:38:29 AM] Registering accessory 'homebridge-wemo.WeMo'
[1/7/2017, 10:38:29 AM] ---
[1/7/2017, 10:38:29 AM] Loaded config.json with 1 accessories and 2 platforms.
[1/7/2017, 10:38:29 AM] ---
[1/7/2017, 10:38:29 AM] Loading 2 platforms...
[1/7/2017, 10:38:29 AM] Initializing Camera-ffmpeg platform...
/usr/local/lib/node_modules/homebridge/lib/api.js:104
  if (name.indexOf('.') == -1) {
          ^

TypeError: Cannot read property 'indexOf' of undefined
    at API.platform (/usr/local/lib/node_modules/homebridge/lib/api.js:104:11)
    at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:284:45)
    at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:80:36)
    at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.runMain (module.js:605:10)
    at run (bootstrap_node.js:420:7)
    at startup (bootstrap_node.js:139:9)
    at bootstrap_node.js:535:3
Church-Server:~ churchserver$

Using only Geofencing & iBeacons

Hi,
I wanted to know if it's possible to use only geofencing and iBeacons to change the status of the sensor.
since my wife is not always connected to wifi, it's quite hard to automate actions for her or for "anyOne/noOne".
If i'll use some location or beacon app on her phone I will be able to automate everything for her more accurately.
anyway, I feel like it would be more accurate if only the arrival and departure will be monitored.

Think about it...
Thanks.

geolocation - status not updating

Hi,

I'm using the people-geolocation plugin but it doesn't seem to update my presence so the No One is always being showed as triggered.

I have setup port forwarding which seems to work fine. In my browser I can enter http://mypublicipaddress:51829/?sensor=[Andy]&state=true

and i get the response: {"statusChanged":true}

the plugin is running ok

Dec 20 18:28:29 raspberrypi homebridge[521]: [12/20/2016, 6:28:29 PM] [People] Initializing GeoFence accessory...
Dec 20 18:28:29 raspberrypi homebridge[521]: [12/20/2016, 6:28:29 PM] [People] WebHook: Started server on port '51829'.

I think the issue might be that in my persist folder i do not have a file called "person_Andy"

my persist folder is in /var/homebridge/persist

has anyone got any ideas of what i'm doing wrong here, i'm stumped.

thanks in advance.

Using arping

Would it be not better to use arping instead of ping to ip/hostname because the mac-address will not change like ip/hostname

If yes i will contribute!

Multiple targets for users

Would it possible to have multiple targets attached to the same name? It would be good to have (for example) a person's phone, tablet, laptop and desktop computers all included to give a better indication of whether they're 'home'.

Also, do you know if it's possible to have the status of a person returned by Siri?

Not Detecting People

Have tried using IP and Device name and am unable to detect any users.... :-(

possibility to use to monitor network device?

Hi,

This plugin looks like it will fulfil two of my requirements. The occupancy sensor is going to be perfect,

but it would also be great to use something similar to monitor whether my Airport Express has gone down, and then reboot it... I'm not sure what sensor type would be adequate, but probably just the same type as a door/window sensor?

So for example, when my Device stops responding to ping, the sensor shows it as off, or open. When it starts responding to ping, the sensor shows it as on or closed. This would let me send a command to a power switch like WeMo or LightwaveRF to switch it off, then switch it back on again!

If plugin people is installed, Homebridge getting stuck in startup process

After installing the Plugin in latest version. Homebridge is getting stuck until the startup process.

The plugin is loaded an registred, but the startup stops after the Initializing of my Netatmo Platform and noting happens anymore... No error... the startup get simple stuck a this place.

If i uninstall the people plugin, my homebridge is starting without problems.

Has anyone a Idea what can cause the failure?

I have no error massages, because the process simple stops.
Or where can i search for error reports, for posting here.

platform is not reading properly

Hi,

as long as I have the people plugin in my config.json entered, it will only load the very first platform or accessory of the file and the rest not. That means if I have this order:

  1. people plugin
  2. synology
  3. netatmo

Only people plugin appears

  1. netatmo
  2. people plugin
  3. synology

Only netatmo works.

  1. synology
  2. netatmo
  3. people plugin

Only synology works.

Without people plugin netatmo and synology are working.

Uninstalling reinstalling everything does not help.

Anyone, No-one Sensor

Hey!

I've installed this plugin and it works really well. I created static IPs for the four iPhones that regularly come in and out the house, and they are being triggered with the occupancy sensor.

In my config I have enabled both sensors:

```{
     "accessory":"people",
     "name":"People",
     "people":[
        {
           "name":"John1",
           "target":"192.168.1.86"
        },
        {
           "name":"John2",
           "target":"192.168.1.217"
        },
        {
           "name":"John3",
           "target":"192.168.1.125"
        },
        {
           "name":"John4",
           "target":"192.168.1.115"
        }
     ],
    "threshold":15,
"anyone_sensor":true,
    "noone_sensor":true
  }```

However, I do not see a separate 'no-one sensor'. Just an 'anyone_sensor'. Am I misunderstanding how this functionality works? Or is it the act of no one being in the house the 'Anyone' sensor inactive?
img_1391

Thanks,

Sam

add note about "sudo chmod u+s /bin/ping" to the readme

Hi, thanks for the plugin.

Worked great after a lot of faffing. I am not if I am the only one, but when I installed Homebridge I followed the guide about setting it up on the Pi. There is a section regarding systemd about a seperate Homebridge user.

So my config, accessories and persist files are in /var/homebridge/config.json

I haven't ever seen anyone refer to this, and there are many Pi users who refer to their configs as being in the default /home/pi/.homebridge/ location.

Changing the permissions as suggested by @oberstmueller in #7 of the ping command using sudo chmod u+s /bin/ping fixed the issue for me.

But now knowing about the section regarding the homebridge user mentioned above. Is it something that can be changed without having to chmod the ping command?

iOS 10 Home app does not automate upon "away" state

It would be nice to have a second default "person" titled "NO ONE", which would trigger when no people are detected. I understand this may be possible through another app, like Elgato, but it doesn't make as much sense to download the app when you don't have any Elgato accessories. BTW, I really like this elegant solution for detecting presence.

Location Push Host Name

Is there a way we can use a host name in place of an IP Address?

http://youripaddress:51828/?sensor=[name]&state=true

Also, do you literally replace [name] with a name such as Erfin or does it need to be [Erfin]

Lastly, I'm still not great with GitHub, is this the best way to communicate with one another regarding questions which may be viewed as issues, or is there another more appropriate place to post messages/questions like this?

Thanks!

Setting anyoneSensor to false doesn't work

As per subject, anyoneSensor is set to "false" but is still showing up in HomeKit:

Extract from config.json:

"platform": "People",
        "threshold" : 15,
        "anyoneSensor" : false,
        "nooneSensor" : false,
        "webhookPort": 51828,
        "cacheDirectory": "./.node-persist/storage",
        "pingInterval": 10000,
        "ignoreReEnterExitSeconds": 0, 
        "people" : [
            {
                "name" : "Jim", 
                "target" : "iPhone",
                "threshold" : 15,
                "pingInterval": 10000,
                "ignoreReEnterExitSeconds": 0 
            }
        ]
    }

And from the log:

[1/15/2017, 10:11:26 AM] Initializing People platform...
[1/15/2017, 10:11:26 AM] Initializing platform accessory 'Jim'...
[1/15/2017, 10:11:26 AM] Initializing platform accessory 'Anyone'...
[1/15/2017, 10:11:26 AM] WebHook: Started server on port '51828'.

EROFS error message after running homebridge with people plug-in for a few minutes

Hello Pete,

every time I am starting homebridge with activated people plug-in, the homebridge process crashes after a few minutes giving the following error message:

/usr/local/lib/node_modules/homebridge-people/node_modules/node-persist/local-storage.js:33
if (err) throw err;
^

Error: EROFS: read-only file system, open '/home/pi/.homebridge/persist/person_10.0.1.9'
at Error (native)

Do you have any advice how to fix this issue?

Thanks a lot in advance.

Best regards,
André Koch

ios Notifications enhancement proposal

Hey Pete,

Maybe an idea for an enhancement... Since iOS 10.2, the status-change of the sensors created by your plugin can be pushed as a Notification on the iPhone. Pretty cool is you want to know when someone arrived or left home.

However, the Notification itself doesn't give a lot of info. Check out the attached image, all it says is "Occupancy detected in XXX" (in this particular example, Stewart Village is the name of my Home, Presence is the name of the Room where I assigned the switches to).

Would be awesome if the name of the sensor (Anyone, No One, Person A, Person B, ...) could be used + an indication whether it's an arrival (home) or a departure (away).

Not sure though whether you have any way of controlling that.

img_0692

Thanks, Jurgen

Accuracy

From a very limited amount of testing, I've found that a threshold of 15 minutes seems to work well for the phones that I have around, but for different phones this may or may not work.

The following command (tested on a Mac) should print a line that includes the current time every time the target device responds to a ping request.

ping <target ip> | awk '/^[0-9]+ bytes from / { "date" | getline pong; close("date"); print pong":",$0; }'

Please let me know what thresholds work for your phone/combination of apps running on it.

  • iPhone 5, no running apps, 3 email accounts (iCloud, IMAP and Exchange) - 15 minutes

How to adjust time / timezone?

My hombridge is logging with one hour "delay" from my timezone. Raspi is with the correct time and timezone, but home bridge must be using GMT. ¿Is there a way to solve this? I need this to be accurate for the "people" plugin to work and I'm completely lost.

Plugin and AppleTV Hub

Hi there,

does this plugin work when the appleTV is the hub in house?
I can't see the lines in the log file anymore.

{
"platform": "People",
"anyoneSensor": true,
"threshold": 15,
"pingInterval": 10000,
"ignoreReEnterExitSeconds": 0,
"nooneSensor": true,
"cacheDirectory": "/root/.homebridge/people-storage",
"people": [{
"name": "Peter",
"target": "192.168.178.38"
},{
"name": "Cay",
"target": "192.168.178.59"
}]
}

how to read log-file

Based on what I found back in this repository, I expected to find log-files for the people that I'm tracking in the /persist folder. There are indeed two files, person_10.0.1.110 and person_10.0.1.114, where the file-names are referring to the internal IP addresses of the two iPhones that I have configured in the config.json file. Firstly I'm surprised that the file-name doesn't contain the names I used in the config, but as such that is not a problem, based on the filename I know who is who. Looking at the time of last update (file properties), I can see they both get updated regularly, but the content doesn't tell me anything. It's just one line with a bunch of numbers. Tried to recognize a date/time format in there, but without luck.

What am I doing wrong here? Running Homebridge on OSX.

Thanks, Jurgen

How long are logs kept?

Hey, I just wanted to ask how long the logs are stored. I'm actually just thinking about space...

Possible to replace Ping with TCP or ARP scan to better iOS (iPhone) detection

I have some iOS-devices at home (mostly from my loved ones) that don't wake that often which means that they often turn to a false state even though they are in the network. Those are devices that mostly lie around when at home (because the are mainly used for calls) which means they wake pretty rarely.

It seems like iOS devices (mainly iPhones - which are most interesting in this use case) won't respond to ping if not waken regularly.

According to this thread, ping won't work if sleeping for a while but sending TCP packets will work.

Another possibility I saw was scanning the ARP table - described here

Are any of these easy to implement?

By the way I'm in no way an expert on this - just researched a lot why those devices that "lie around" the whole day, will often not respond to ping.

crash if ip is unreachable

When using an IP address which is available on the local network I had success using homebridge-people.
However if the IP address is not reachable the plugin crashes. This is the log:
Homebridge is running on port 51826.
28 Feb 12:14:27 - [JsonDB] DataBase seen.db.json loaded.

/usr/lib/node_modules/homebridge-people/node_modules/node-json-db/JsonDB.js:94
throw new DataError("Can't find dataPath: /" + dataPath.jo
^
NestedError: Can't find dataPath: /192.168.1.78. Stopped at 192.168.1.78
at DataError.Error (native)
at DataError.NestedError (/usr/lib/node_modules/homebridge-people/node_modules/node-json-db/lib/Errors.js:7:25)
at new DataError (/usr/lib/node_modules/homebridge-people/node_modules/node-json-db/lib/Errors.js:37:33)
at findData (/usr/lib/node_modules/homebridge-people/node_modules/node-json-db/JsonDB.js:94:27)
at recursiveProcessDataPath (/usr/lib/node_modules/homebridge-people/node_modules/node-json-db/JsonDB.js:120:17)
at JsonDB._getData (/usr/lib/node_modules/homebridge-people/node_modules/node-json-db/JsonDB.js:133:16)
at JsonDB.getData (/usr/lib/node_modules/homebridge-people/node_modules/node-json-db/JsonDB.js:64:21)
at PeopleAccessory.getState (/usr/lib/node_modules/homebridge-people/index.js:39:33)
at emit (events.js:110:17)
at Characteristic.getValue (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:120:10)

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.