Hallo zusammen,
hierzu habe ich auch ein Problem.
Meine Rademacher-Rollo-Aktuatoren kann ich mit WebQuery und WebSend ansprechen. Wie oben beschrieben kommt bei mir auch die Rückmeldung mit den eckigen Klammern. Das hoch und runterfahren des Rollos über den PUT Befehl geht.
>D 48
buro=0
resb=""
resz=0
>S
if (secs%5==0)
{
=> WebQuery http://172.16.55.209/devices/1010000 GET
;=> WebSend [172.16.55.209] /devices/1010000
}
>F
if chg[buro]>0
then
=> WebQuery http://172.16.55.209/devices/1010000 PUT {"name":"GOTO_POS_CMD","value":%s(1.0buro)%}
endif
>E
resb="test"
resz=99
resb=WebQuery#payload#payload#device#capabilities[3]#value
print %resb%
resz=WebQuery#payload#payload#device#capabilities[3]#value
print %resz%
>W
sl(0 100 buro "0" "BÜRO" "100")
Alles anzeigen
Antwort bei WebQuery
10:07:40.529 Script: nv=4, tv=1, vns=25, vmem=144, smem=16384
10:07:40.951 Script: performs "WebQuery http://172.16.55.209/devices/1010000 GET"
10:07:41.472 RSL: RESULT = {"WebQuery":{"error_description":"OK","error_code":0,"payload":{"device":{"capabilities":[{"name":"WIND_STOP_CMD","r... 6015 truncated
10:07:41.480 test
10:07:41.482 99.00
10:07:41.489 RSL: RESULT = {"WebQuery":"Done"}
10:07:41.491 Done
10:07:41.494 0.00
Antwort bei WebSend
10:13:56.980 Script: nv=4, tv=1, vns=25, vmem=144, smem=16384
10:14:00.956 Script: performs "WebSend [172.16.55.209] /devices/1010000"
10:14:01.393 RSL: RESULT = {"WebQuery":{"error_description":"OK","error_code":0,"payload":{"device":{"capabilities":[{"name":"WIND_STOP_CMD","r... 6015 truncated
10:14:01.400 test
10:14:01.402 99.00
10:14:01.407 RSL: RESULT = {"WebSend":"Done"}
10:14:01.410 test
10:14:01.412 99.00
Hier noch der Response vom Rademacher-Aktuator
{"error_description":"OK","error_code":0,"payload":
{"device":
{"capabilities":
[
{"name":"WIND_STOP_CMD","read_only":false,"timestamp":-1},
{"name":"SET_SLAT_POS_CMD","min_value":"0","max_value":"100","step_size":"1","read_only":false,"timestamp":-1},
{"name":"INC_CMD","read_only":false,"timestamp":-1},
{"name":"PROD_CODE_DEVICE_LOC","value":"35000662","read_only":false,"timestamp":-1},
{"name":"GOTO_VENTIL_POS_CMD","read_only":false,"timestamp":-1},
{"name":"REACHABILITY_EVT","value":"true","read_only":true,"timestamp":1684472895},
{"name":"CONTACT_OPEN_CMD","read_only":false,"timestamp":-1},
{"name":"NAME_DEVICE_LOC","value":"Büro","read_only":false,"timestamp":-1},
{"name":"REVERS_ON_POS_CFG","value":"false","read_only":false,"timestamp":1684472895},
und viele weitere
],
"scenes":
[
{"id":5033,"name":"x Büro halb zu","description":"Weihnachten"},
{"id":5034,"name":"x Büro halb auf","description":"Weihnachten"},
{"id":5035,"name":"x Büro und Treppenhaus ganz zu","description":"Weihnachten"},
{"id":5037,"name":"x Büro ganz auf","description":"Weihnachten"}
]
}
}
}