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

Config.json #1

Open
toshibochan opened this issue Feb 3, 2016 · 3 comments
Open

Config.json #1

toshibochan opened this issue Feb 3, 2016 · 3 comments

Comments

@toshibochan
Copy link

How to add on config.json?

@lbouchar2
Copy link

I'm still getting up to speed, but I'm at least able to see the package with this:

"accessories": [
    {
        "accessory": "homebridge-filesensor.FileSensor",
        "name": "File Sensor",
        "path": "filesensor.txt",
        "window_seconds": "5",
        "inverse": "false",
        "sensor_type": "m"
    }

@RogerKamps
Copy link

Is it possible to define two (or more) sensors in the config.json file (i have more then one camera ;-) )

@mabrodeur
Copy link

mabrodeur commented Oct 6, 2018

NOTE: Be sure to set the inverse param as a boolean and not a string as stated in the comment before or it will not work properly!

{
      "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"
}

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