This plug-in is based on UDP Json.
UDP server for receiving JSON messages from remote sensors on your network, plugin for Homebridge
- Install Homebridge using
npm install -g homebridge
- Install this plugin
npm install -g shin4299/homebridge-esp-lux
- Update your configuration file - see below for an example
accessory
: "ESPLUX" ---- Requirename
: descriptive name ---- Requirelisten_port
: UDP port to listen on for incoming messages ---- No-Require(default 8269)
Example configuration:
"accessories": [
{
"accessory": "ESPLUX",
"name": "LightSensor"
}
]
or
"accessories": [
{
"accessory": "ESPLUX",
"name": "LightSensor",
"listen_port": 8269
}
]
Protocol
: generic UDPLocate Controller
: Use IP addressController IP
: 192.168.1.100 (Your homebridge server IP)Controller Port
: 8269Controller Subscribe
:Controller Publish
: {"light_lux":%val1%}Enabled
: check
UDP packets are expected to be sent from a remote sensor in JSON, for example:
{"light_lux": 412.20}
MIT