Moin!
Ich bastle immer weiter und hab jetzt ein Problem mit einem HTTP Switch.
Bisher nutze ich das Plugin, um meine Dreambox zu schalten, das klappt 1a:
{
"accessory": "HTTP-SWITCH",
"name": "ARD",
"switchType": "stateless",
"onUrl": "http://192.168.178.25/web/zap?sRef=1:0:19:283D:3FB:1:C00000:0:0:0"
},
Jetzt würde ich gerne meine Außenkamera ausschalten, da hab ich das so eingegeben:
{
"accessory": "HTTP-SWITCH",
"name": "Licht Terrasse aus",
"switchType": "stateless",
"onUrl": "192.168.178.54/XXX/command/changestatus?status=off"
},
Der Aufruf im Firefox direkt klappt, in der Homebridge bekomm ich aber das hier:
[6/12/2020, 10:40:46] [Licht Terrasse aus] Error occurred setting state of switch: Invalid URI "192.168.178.54/XXX/command/changestatus?status=off"
[6/12/2020, 10:40:46] [Licht Terrasse aus] Error: Invalid URI "192.168.178.54/XXX/command/changestatus?status=off"
at Request.init (/usr/local/lib/node_modules/homebridge-http-switch/node_modules/request/request.js:273:31)
at new Request (/usr/local/lib/node_modules/homebridge-http-switch/node_modules/request/request.js:127:8)
at request (/usr/local/lib/node_modules/homebridge-http-switch/node_modules/request/index.js:53:10)
at httpRequest (/usr/local/lib/node_modules/homebridge-http-switch/node_modules/homebridge-http-base/dist/http.js:59:5)
at /usr/local/lib/node_modules/homebridge-http-switch/node_modules/homebridge-http-base/dist/http.js:99:13
at reflectOn (/usr/local/lib/node_modules/homebridge-http-switch/node_modules/async/dist/async.js:3514:24)
at /usr/local/lib/node_modules/homebridge-http-switch/node_modules/async/dist/async.js:59:23
at /usr/local/lib/node_modules/homebridge-http-switch/node_modules/async/dist/async.js:2948:28
at replenish (/usr/local/lib/node_modules/homebridge-http-switch/node_modules/async/dist/async.js:440:21)
at /usr/local/lib/node_modules/homebridge-http-switch/node_modules/async/dist/async.js:445:13
at eachOfLimit$1 (/usr/local/lib/node_modules/homebridge-http-switch/node_modules/async/dist/async.js:471:34)
at awaitable (/usr/local/lib/node_modules/homebridge-http-switch/node_modules/async/dist/async.js:208:32)
at eachOfSeries (/usr/local/lib/node_modules/homebridge-http-switch/node_modules/async/dist/async.js:658:16)
at awaitable (/usr/local/lib/node_modules/homebridge-http-switch/node_modules/async/dist/async.js:208:32)
at /usr/local/lib/node_modules/homebridge-http-switch/node_modules/async/dist/async.js:2947:9
at awaitable (/usr/local/lib/node_modules/homebridge-http-switch/node_modules/async/dist/async.js:208:32)
at series (/usr/local/lib/node_modules/homebridge-http-switch/node_modules/async/dist/async.js:3957:16)
at Object.multipleHttpRequests (/usr/local/lib/node_modules/homebridge-http-switch/node_modules/homebridge-http-base/dist/http.js:108:5)
at HTTP_SWITCH._makeSetRequest (/usr/local/lib/node_modules/homebridge-http-switch/index.js:440:14)
at HTTP_SWITCH.setStatus (/usr/local/lib/node_modules/homebridge-http-switch/index.js:408:22)
at On.emit (events.js:310:20)
at On.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/EventEmitter.js:59:38)
at On.Characteristic._this.setValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Characteristic.js:356:23)
at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Accessory.js:938:36
at Array.forEach (<anonymous>:null:null)
at Bridge.Accessory._this._handleSetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Accessory.js:806:18)
at HAPServer.emit (events.js:310:20)
at HAPServer.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/EventEmitter.js:59:38)
at HAPServer._this._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/HAPServer.js:718:23)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/HAPServer.js:227:39)
at IncomingMessage.emit (events.js:310:20)
at endReadableNT (_stream_readable.js:1187:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
[6/12/2020, 10:40:47] [Licht Terrasse aus] Resetting switch to OFF
Ich denke, das muss ich irgendwie umformatieren. Kann mir bitte jemand sagen, wie?
1000 Dank,
Jo