homebridge-syntex-webhooks
Advanced tools
Comparing version 1.0.4-b7 to 1.0.4
@@ -239,3 +239,3 @@ var request = require('request'); | ||
log('\x1b[31m%s\x1b[0m', "[ERROR]", "Es wurde kein passendes Gerät gefunden!"); | ||
log('\x1b[31m%s\x1b[0m', "[ERROR]", "Es wurde kein passendes Gerät gefunden! (" + urlParams.mac + ")"); | ||
} | ||
@@ -242,0 +242,0 @@ } |
{ | ||
"name": "homebridge-syntex-webhooks", | ||
"version": "1.0.4-b7", | ||
"version": "1.0.4", | ||
"description": "A webhook plugin for HTTP devices", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -13,2 +13,5 @@ # Homebridge SynTex Webhooks | ||
**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` | ||
``` | ||
@@ -20,4 +23,59 @@ "platforms": [ | ||
"cache_directory": "./SynTex/", | ||
"sensors": [], | ||
"switches": [] | ||
"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": "EC:FA:BC:59:3F:3C", | ||
"name": "Leak", | ||
"type": "leak" | ||
}, | ||
{ | ||
"mac": "EC:FA:BC:59:3F:3C", | ||
"name": "Motion", | ||
"type": "motion" | ||
}, | ||
{ | ||
"mac": "EC:FA:BC:59:3F:3C", | ||
"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": "dummy1", | ||
"name": "Dummy", | ||
"type": "switch" | ||
} | ||
] | ||
} | ||
@@ -24,0 +82,0 @@ ] |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
30552
0
103