homebridge-udp-lightsensor
v1.0.1
Published
UDP server light sensor plugin for Homebridge
Downloads
6
Maintainers
Readme
homebridge-udp-lightsensor
UDP server light sensor input plugin for Homebridge
Installation
- Install Homebridge using
npm install -g homebridge
- Install this plugin
npm install -g homebridge-udp-lightsensor
- Update your configuration file - see below for an example
Configuration
accessory
: "UdpLightSensor"name
: descriptive namelisten_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
- cooper for sending UDP packets on ADC input change from an ESP8266
- homebridge-analog-lightsensor
- homebridge-udp-contactsensor
- homebridge-gpio-cmd etc. for GPIO outputs
- homebridge-pwm-fan
License
MIT