1.2.2 • Published 4 years ago

homebridge-http-motion-sensor v1.2.2

Weekly downloads
7
License
GPL-3.0
Repository
github
Last release
4 years ago

homebridge-http-motion-sensor

This plugin offers you a motion sensor that can be triggerd via an HTTP request. This can be used in conjunction with an ESP8266 for instance or an Arduino with an ethernet shield. I will add an example Arduino script in the future.

Installation

Run the following command

npm install -g homebridge-http-motion-sensor

Chances are you are going to need sudo with that.

Config.json

This is an example configuration

"accessories" : [

    {
        "accessory": "http-motion-sensor",
        "name": "Hallway Motion Sensor",
        "port": 18089,
        "serial" : "E642011E3ECB",
        "bind_ip" : "0.0.0.0",
        "repeater" : [
                {
                    "host" : "192.168.2.11",
                    "port" : "22322",
                    "path" : "/turnonscreentilltimeout",
                    "auth" : "username:password"
                }
            ]
    }
]
KeyDescription
accessoryRequired. Has to be "http-motion-sensor"
nameRequired. The name of this accessory. This will appear in your homekit app
portRequired. The port that you want this plugin to listen on. Choose a number above 1024.
serialOptional. Assigns a serial number. Not really required but I would advise in making up some arbitrary string.
repeaterOptional. Whenever the http server setup by this plugin is hit, it will also make a request to each entry in this array. I am using it to turn on a screen in my hallway. See this for further information.
bind_ipOptional. If you know what this is, you'll know what to do with it.
1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.5

4 years ago

1.1.1

4 years ago

1.0.2

4 years ago

1.1.0

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.0.1

5 years ago

1.0.0

7 years ago