Auch wenn ich hier den Alleinunterhalter mache, vielleicht hilft es anderen.
Man muss die als optional angegebenen Parameter upValue, dowmValue und stopValue für das Rollo angeben, sonst wird kein Kommando abgesetzt. Type ist wieder rollershutter, sonst geht es auch nicht. Ich kann dir Rollos jetzt steuern, aber die Anzeige ist UNDEF.
Das ist mein aktuell letztes Problem.
Für die Relais habe ich onVaule und offValue ergänzt, die funktionieren nun komplett.
Kann es daran liegen, das die JSON Type numerisch ist und das Binding einen String erwartet?
":%s" anhängen bringt nichts.
Ich weiß nicht, was man damit sagen will:
"All values that are not upValue, downValue, stopValue, moveValue are interpreted as position 0-100% and need to be numeric only."
Ich liefere immer 0-100 numerisch in JSON zurück.
Hier nochmal der Code zur Hilfe für andere.
Code: Alles auswählen
Canbus Module
UID: http:url:canbus
label: Canbus Module
thingTypeUID: http:url
configuration:
authMode: BASIC
ignoreSSLErrors: false
baseURL: http://192.168.0.133
delay: 0
stateMethod: GET
refresh: 30
commandMethod: GET
timeout: 3000
bufferSize: 6000
channels:
- id: MOD09_ROL00
channelTypeUID: http:rollershutter
label: Rollershutter Channel
description: null
configuration:
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Rollo[0]
commandExtension: /ok.htm?Modul9.Rollo0=%2$s
downValue: DOWN
stopValue: STOP
upValue: UP
- id: MOD09_ROL01
channelTypeUID: http:rollershutter
label: Rollershutter Channel
description: null
configuration:
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Rollo[1]
commandExtension: /ok.htm?Modul9.Rollo1=%2$s
downValue: DOWN
stopValue: STOP
upValue: UP
- id: MOD09_ROL02
channelTypeUID: http:rollershutter
label: Rollershutter Channel
description: null
configuration:
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Rollo[2]
commandExtension: /ok.htm?Modul9.Rollo2=%2$s
downValue: DOWN
stopValue: STOP
upValue: UP
- id: MOD09_DIM00
channelTypeUID: http:dimmer
label: Dimmer Channel
description: null
configuration:
onValue: ON
stateExtension: /json.cgx
offValue: OFF
stateTransformation: JSONPATH:$.Modul[9].Dimmer[0]
commandExtension: /ok.htm?Modul9.Dimmer0=%2$s
- id: MOD09_DIM01
channelTypeUID: http:dimmer
label: Dimmer Channel
description: null
configuration:
onValue: ON
stateExtension: /json.cgx
offValue: OFF
stateTransformation: JSONPATH:$.Modul[9].Dimmer[1]
commandExtension: /ok.htm?Modul9.Dimmer1=%2$s
- id: MOD09_DIM02
channelTypeUID: http:dimmer
label: Dimmer Channel
description: null
configuration:
onValue: ON
stateExtension: /json.cgx
offValue: OFF
stateTransformation: JSONPATH:$.Modul[9].Dimmer[2]
commandExtension: /ok.htm?Modul9.Dimmer2=%2$s
- id: MOD09_REL00
channelTypeUID: http:switch
label: Switch Channel
description: null
configuration:
onValue: ON
stateExtension: /json.cgx
offValue: OFF
stateTransformation: JSONPATH:$.Modul[9].Relais[0]
commandExtension: /ok.htm?Modul9.Relais0=%2$s
- id: MOD09_REL01
channelTypeUID: http:switch
label: Switch Channel
description: null
configuration:
onValue: ON
stateExtension: /json.cgx
offValue: OFF
stateTransformation: JSONPATH:$.Modul[9].Relais[1]
commandExtension: /ok.htm?Modul9.Relais1=%2$s
- id: MOD09_REL02
channelTypeUID: http:switch
label: Switch Channel
description: null
configuration:
onValue: ON
stateExtension: /json.cgx
offValue: OFF
stateTransformation: JSONPATH:$.Modul[9].Relais[2]
commandExtension: /ok.htm?Modul9.Relais2=%2$s
- id: MOD09_REL03
channelTypeUID: http:switch
label: Switch Channel
description: null
configuration:
onValue: ON
stateExtension: /json.cgx
offValue: OFF
stateTransformation: JSONPATH:$.Modul[9].Relais[3]
commandExtension: /ok.htm?Modul9.Relais3=%2$s
- id: MOD09_REL04
channelTypeUID: http:switch
label: Switch Channel
description: null
configuration:
onValue: ON
stateExtension: /json.cgx
offValue: OFF
stateTransformation: JSONPATH:$.Modul[9].Relais[4]
commandExtension: /ok.htm?Modul9.Relais4=%2$s
- id: MOD09_REL05
channelTypeUID: http:switch
label: Switch Channel
description: null
configuration:
onValue: ON
stateExtension: /json.cgx
offValue: OFF
stateTransformation: JSONPATH:$.Modul[9].Relais[5]
commandExtension: /ok.htm?Modul9.Relais5=%2$s
- id: MOD09_REL06
channelTypeUID: http:switch
label: Switch Channel
description: null
configuration:
onValue: ON
stateExtension: /json.cgx
offValue: OFF
stateTransformation: JSONPATH:$.Modul[9].Relais[6]
commandExtension: /ok.htm?Modul9.Relais6=%2$s
- id: MOD09_REL07
channelTypeUID: http:switch
label: Switch Channel
description: null
configuration:
onValue: ON
stateExtension: /json.cgx
offValue: OFF
stateTransformation: JSONPATH:$.Modul[9].Relais[7]
commandExtension: /ok.htm?Modul9.Relais7=%2$s
- id: MOD09_REL08
channelTypeUID: http:switch
label: Switch Channel
description: null
configuration:
onValue: ON
stateExtension: /json.cgx
offValue: OFF
stateTransformation: JSONPATH:$.Modul[9].Relais[8]
commandExtension: /ok.htm?Modul9.Relais8=%2$s
- id: MOD09_REL09
channelTypeUID: http:switch
label: Switch Channel
description: null
configuration:
onValue: ON
stateExtension: /json.cgx
offValue: OFF
stateTransformation: JSONPATH:$.Modul[9].Relais[9]
commandExtension: /ok.htm?Modul9.Relais9=%2$s
- id: MOD09_REL10
channelTypeUID: http:switch
label: Switch Channel
description: null
configuration:
onValue: ON
stateExtension: /json.cgx
offValue: OFF
stateTransformation: JSONPATH:$.Modul[9].Relais[10]
commandExtension: /ok.htm?Modul9.Relais10=%2$s
- id: MOD09_REL11
channelTypeUID: http:switch
label: Switch Channel
description: null
configuration:
onValue: ON
stateExtension: /json.cgx
offValue: OFF
stateTransformation: JSONPATH:$.Modul[9].Relais[11]
commandExtension: /ok.htm?Modul9.Relais11=%2$s
- id: MOD09_REL12
channelTypeUID: http:switch
label: Switch Channel
description: null
configuration:
onValue: ON
stateExtension: /json.cgx
offValue: OFF
stateTransformation: JSONPATH:$.Modul[9].Relais[12]
commandExtension: /ok.htm?Modul9.Relais12=%2$s
- id: MOD09_KEY00
channelTypeUID: http:number
label: Number Channel
description: null
configuration:
mode: READWRITE
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Taste[0]
commandExtension: /ok.htm?Modul9.Taste0=%2$s
- id: MOD09_KEY01
channelTypeUID: http:number
label: Number Channel
description: null
configuration:
mode: READWRITE
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Taste[1]
commandExtension: /ok.htm?Modul9.Taste1=%2$s
- id: MOD09_KEY02
channelTypeUID: http:number
label: Number Channel
description: null
configuration:
mode: READWRITE
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Taste[2]
commandExtension: /ok.htm?Modul9.Taste2=%2$s
- id: MOD09_KEY03
channelTypeUID: http:number
label: Number Channel
description: null
configuration:
mode: READWRITE
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Taste[3]
commandExtension: /ok.htm?Modul9.Taste3=%2$s
- id: MOD09_KEY04
channelTypeUID: http:number
label: Number Channel
description: null
configuration:
mode: READWRITE
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Taste[4]
commandExtension: /ok.htm?Modul9.Taste4=%2$s
- id: MOD09_KEY05
channelTypeUID: http:number
label: Number Channel
description: null
configuration:
mode: READWRITE
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Taste[5]
commandExtension: /ok.htm?Modul9.Taste5=%2$s
- id: MOD09_KEY06
channelTypeUID: http:number
label: Number Channel
description: null
configuration:
mode: READWRITE
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Taste[6]
commandExtension: /ok.htm?Modul9.Taste6=%2$s
- id: MOD09_KEY07
channelTypeUID: http:number
label: Number Channel
description: null
configuration:
mode: READWRITE
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Taste[7]
commandExtension: /ok.htm?Modul9.Taste7=%2$s
- id: MOD09_KEY08
channelTypeUID: http:number
label: Number Channel
description: null
configuration:
mode: READWRITE
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Taste[8]
commandExtension: /ok.htm?Modul9.Taste8=%2$s
- id: MOD09_TEM00
channelTypeUID: http:number
label: Number Channel
description: null
configuration:
mode: READONLY
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Temperature
- id: MOD09_CON00
channelTypeUID: http:string
label: String Channel
description: null
configuration:
mode: READONLY
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Contact[0]
- id: MOD09_CON01
channelTypeUID: http:string
label: String Channel
description: null
configuration:
mode: READONLY
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Contact[1]
- id: MOD09_CON02
channelTypeUID: http:string
label: String Channel
description: null
configuration:
mode: READONLY
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Contact[2]
- id: MOD09_CON03
channelTypeUID: http:string
label: String Channel
description: null
configuration:
mode: READONLY
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Contact[3]
- id: MOD09_CON04
channelTypeUID: http:string
label: String Channel
description: null
configuration:
mode: READONLY
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Contact[4]
- id: MOD09_CON05
channelTypeUID: http:string
label: String Channel
description: null
configuration:
mode: READONLY
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Contact[5]
- id: MOD09_CON06
channelTypeUID: http:string
label: String Channel
description: null
configuration:
mode: READONLY
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Contact[6]
- id: MOD09_CON07
channelTypeUID: http:string
label: String Channel
description: null
configuration:
mode: READONLY
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Contact[7]
- id: MOD09_CON08
channelTypeUID: http:string
label: String Channel
description: null
configuration:
mode: READONLY
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Contact[8]
- id: MOD09_CON09
channelTypeUID: http:string
label: String Channel
description: null
configuration:
mode: READONLY
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Contact[9]
- id: MOD09_CON10
channelTypeUID: http:string
label: String Channel
description: null
configuration:
mode: READONLY
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Contact[10]
- id: MOD09_CON11
channelTypeUID: http:string
label: String Channel
description: null
configuration:
mode: READONLY
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Contact[11]
- id: MOD09_CON12
channelTypeUID: http:string
label: String Channel
description: null
configuration:
mode: READONLY
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Contact[12]
- id: MOD09_CON13
channelTypeUID: http:string
label: String Channel
description: null
configuration:
mode: READONLY
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Contact[13]
- id: MOD09_CON14
channelTypeUID: http:string
label: String Channel
description: null
configuration:
mode: READONLY
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Contact[14]
- id: MOD09_CON15
channelTypeUID: http:string
label: String Channel
description: null
configuration:
mode: READONLY
stateExtension: /json.cgx
stateTransformation: JSONPATH:$.Modul[9].Contact[15]