Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Motion sensor fallback to default #4

Open
mattnewham opened this issue Sep 1, 2016 · 5 comments
Open

Motion sensor fallback to default #4

mattnewham opened this issue Sep 1, 2016 · 5 comments

Comments

@mattnewham
Copy link

I have set the 5 second timeout in the config, however once a file is placed in the path the sensor stays active forever, even if the file is subsequently deleted.

This effectively makes the plugin useless but I can't see what is wrong with it!

@yaudouin
Copy link

I have the same problem under windows 7. Did you find a solution ?

@purplespider
Copy link

This is annoying. Other than this issue, the module seems to work great. Been trying to fix it myself, but not having much luck.

@mattnewham
Copy link
Author

I never did solve the problem. I've now moved on to use Home Assistant as my main hub and I just use homebridge as a plugin there. I suggest to check it out as it is way more powerful.

@purplespider
Copy link

@mattnewham Thanks, Home Assistant does look ace, especially if it works well with Homebridge for HomeKit support. Can I ask what "component" you used to achieve the functionality of this module?

@mabrodeur
Copy link

I know this is an old thread but for those joining in 2018, it just works fine but you need to set your config correctly! The inverse parameter should be a boolean and not a string or the condition will not work.

{
      "accessory": "homebridge-filesensor.FileSensor",
      "name": "Motion sensor",
      "path": "path/to/folder",
      "window_seconds": 10,
      "inverse": false,  <== HERE, this needs to be a boolean and DO NOT wrap it like this "false"
      "sensor_type": "m"
}

If we set the inverse param as "false", what happens is that when the plugin detects a file change, it sets the motion to false immediately (instead of true) and then, after the window_seconds it sets it to true and this is where you see the state change in Homekit. Which is the reversed behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants