I am trying to send a request to my Homematic via the controller type Generic HTTP.
The controller publish currently says
Code: Select all
egal.exe?ret=dom.GetObject(%27StromCounter1TotalAkt%27).State(%27%val2%27)
In the future I would like to replace the name of the Homematic system variable with
Code: Select all
%tskname%%vname2%Akt
If I send via browser the request
Code: Select all
http://192.168.178.160:8181/egal.exe?ret=dom.GetObject('StromCounter1TotalAkt').State(1234)
However, if the controller sends the request, I get an HTTP Error 400. Unfortunately, there is nothing in the log on the Homematic.
The ESPeasy Weblog says:
Code: Select all
90589101: EVENT: CurrentCounter1#Total=12432
90589112: ACT : let,1,12432/100
90589149: HTTP : C008 192.168.178.160 GET... failed HTTP code: 400
90589159: EVENT: CurrentCounter1#Time=158
90589168: ACT : let,1,12432/100
90589208: HTTP : C008 192.168.178.160 GET... failed HTTP code: 400
90589216: EVENT: http#192.168.178.160=400
90589255: HTTP : C008 192.168.178.160 GET... failed HTTP code: 400
90589264: EVENT: http#192.168.178.160=400
90589299: HTTP : C008 192.168.178.160 GET... failed HTTP code: 400
90589308: EVENT: http#192.168.178.160=400
90589348: HTTP : C008 192.168.178.160 GET... failed HTTP code: 400
90589356: EVENT: http#192.168.178.160=400
90589393: HTTP : C008 192.168.178.160 GET... failed HTTP code: 400
90589432: EVENT: http#192.168.178.160=400
90589468: HTTP : C008 192.168.178.160 GET... failed HTTP code: 400
90589478: EVENT: http#192.168.178.160=400
90589519: HTTP : C008 192.168.178.160 GET... failed HTTP code: 400
90589525: EVENT: http#192.168.178.160=400
90589530: EVENT: http#192.168.178.160=400
90589568: HTTP : C008 192.168.178.160 GET... failed HTTP code: 400
90589576: EVENT: http#192.168.178.160=400
90589616: HTTP : C008 192.168.178.160 GET... failed HTTP code: 400
90589624: EVENT: http#192.168.178.160=400
90589631: EVENT: http#192.168.178.160=400
If I understood correctly, then after an event exactly one entry should follow .....
I still don't understand the function of IDX when specifying that the controller should be called. Does this play a role here?
But to find the error, I would need the complete http request, which is sent to the Homematic.
I have already tried all possible log levels, but unfortunately I haven't found one where the request is output completely.
How could I get the request?
Thanks a lot
Sepp
by the way: is there a way to limit uploaded images in display size within the text in bbcode?