shin4299 / homebridge-udp-lightsensor

UDP server light sensor plugin for Homebridge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

homebridge-udp-lightsensor

UDP server light sensor input plugin for Homebridge

Installation

  1. Install Homebridge using npm install -g homebridge
  2. Install this plugin npm install -g homebridge-udp-lightsensor
  3. Update your configuration file - see below for an example

Configuration

  • accessory: "UdpLightSensor"
  • name: descriptive name
  • listen_port: UDP port to listen on for incoming messages

Example configuration:

    "accessories": [
        {
            "accessory": "UdpLightSensor",
            "name": "Lighting",
            "listen_port": 8267
        }
    ]

Creates a LightSensor service named Lighting.

Listens for UDP datagrams on port 8267, and reports the light level as the payload interpreted as an ASCII string representing the light level in lux.

See also

License

MIT

About

UDP server light sensor plugin for Homebridge

License:MIT License


Languages

Language:JavaScript 100.0%