Homebridge SynTex Webhooks
A plugin to control and to create HTTP devices.
Installation
- Install homebridge using:
sudo npm install -g homebridge
- Install this plugin using:
sudo npm install -g homebridge-syntex-webhooks
- Update your configuration file. See snippet below.
Example Config
INFO: If the directory for the storage can't be created you have to do it by yourself and give it full write permissions!
- For the mac address you can use either a
real mac address
or another unique text
- Every device needs these configurations:
mac
, name
and type
"platforms": [
{
"platform": "SynTexWebhooks",
"port": 1710,
"cache_directory": "./SynTex/",
"sensors": [
{
"mac": "EC:FA:BC:59:3F:3C",
"name": "Temperature",
"type": "temperature"
},
{
"mac": "EC:FA:BC:59:3F:3C",
"name": "Humidity",
"type": "humidity"
},
{
"mac": "EC:FA:BC:59:3F:3C",
"name": "Light",
"type": "light"
},
{
"mac": "sensor1",
"name": "Leak",
"type": "leak"
},
{
"mac": "sensor2",
"name": "Motion",
"type": "motion"
},
{
"mac": "sensor3",
"name": "Contact",
"type": "contact"
}
],
"switches": [
{
"mac": "EC:FA:BC:59:3F:3C",
"name": "Switch",
"type": "switch",
"on_method": "GET",
"on_url": "http://192.168.178.164/switch?state=true",
"off_method": "GET",
"off_url": "http://192.168.178.164/switch?state=false"
},
{
"mac": "EC:FA:BC:59:3F:3C",
"name": "Relais",
"type": "relais",
"on_method": "GET",
"on_url": "http://192.168.178.162/switch?state=true",
"off_method": "GET",
"off_url": "http://192.168.178.162/switch?state=false"
},
{
"mac": "switch1",
"name": "Dummy",
"type": "switch"
}
]
}
]
Update HTTP Devices
- Open
http://
Bridge IP /devices?mac=
Bridge Mac &value=
New Value - Insert the
Bridge IP
and Device Mac
- For the
New Value
you can type these patterns:
- For boolean devices:
true
/ false
- For numeric devices:
10
/ 12.4
See HTTP Device Values
- Open
http://
Bridge IP /devices?mac=
**bridgeMac - Insert the
Bridge IP
and Device Mac
Currently Supported
- Temperature Sensor
- Humidity Sensor
- Light Sensor
- Leak Sensor
- Motion Sensor
- Contact Sensor
- Switch