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-co2
- Update your configuration file - see below for an example
accessory
: "ESPCO2" ---- Requirename
: descriptive name ---- Requirelisten_port
: UDP port to listen on for incoming messages ---- No-Require(default 8268)temperatureOn
: 'true' or 'false' ---- No-Require(default true)carbonDioxideSet
: Carbon dioxide value for notification ---- No-Require(default 1200ppm)
Example configuration:
"accessories": [
{
"accessory": "ESPCO2",
"name": "Bedroom"
}
]
or
"accessories": [
{
"accessory": "ESPCO2",
"name": "Bedroom",
"temperatureOn": false,
"carbonDioxideSet": 1000,
"listen_port": 8268
}
]
Protocol
: generic UDPLocate Controller
: Use IP addressController IP
: 192.168.1.100 (Your homebridge server IP)Controller Port
: 8268Controller Subscribe
:Controller Publish
: {"co2_ppm":%val1%, "temperature_c":%val2%}Enabled
: check
MIT