/homebridge-esp-lux

Primary LanguageJavaScriptMIT LicenseMIT

homebridge-esp-lux

This plug-in is based on UDP Json.

UDP server for receiving JSON messages from remote sensors on your network, plugin for Homebridge

Installation

  1. Install Homebridge using npm install -g homebridge
  2. Install this plugin npm install -g shin4299/homebridge-esp-lux
  3. Update your configuration file - see below for an example

Configuration

  • accessory: "ESPLUX" ---- Require
  • name: descriptive name ---- Require
  • listen_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
        }
    ]

ESP Easy Controllers Setting

  • Protocol: generic UDP
  • Locate Controller: Use IP address
  • Controller IP: 192.168.1.100 (Your homebridge server IP)
  • Controller Port: 8269
  • Controller 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}

License

MIT