[gelöst] Problem mit fhem und dem JSON-Zugriff von Sepia

Begonnen von gestein, 05 Juni 2020, 18:06:28

Vorheriges Thema - Nächstes Thema

gestein

Hallo,

ich habe da ein ganz spezielles Problem mit fhem und dem JSON-Zugriff von Sepia.
https://forum.fhem.de/index.php/topic,102000.msg1061057.html#msg1061057
Leider habe ich keine Ahnung von dem Thema und finde dazu auch nichts.

Wenn ich den Aufruf von Sepia am Laptop in den Browser eingebe, bekomme ich eine richtige Ausgabe.
Der Aufruf lautet: http://192.168.0.117:8083/fhem?cmd=jsonlist2%20global&XHR=1&fwcsrf=csrf_<token>
Die log-Einträge beim Aufruf sind:
2020.06.05 12:37:34.824 4: Connection accepted from WEB_192.168.0.102_48310
2020.06.05 12:37:34.830 5: GET /?XHR=1 HTTP/1.1
User-Agent: Java/11.0.7
Host: 192.168.0.117:8083
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
2020.06.05 12:37:34.832 4: WEB_192.168.0.102_48310 GET /?XHR=1; BUFLEN:0
2020.06.05 12:37:34.833 4: WEB: redirecting /?XHR=1 to /fhem
2020.06.05 12:37:34.864 4: Connection closed for WEB_192.168.0.102_48310: EOF
2020.06.05 12:37:34.900 4: Connection accepted from WEB_192.168.0.102_48312
2020.06.05 12:37:34.905 5: GET /fhem HTTP/1.1
User-Agent: Java/11.0.7
Host: 192.168.0.117:8083
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
2020.06.05 12:37:34.906 4: WEB_192.168.0.102_48312 GET /fhem; BUFLEN:0
2020.06.05 12:37:34.932 4: WEB: /fhem / RL:18122 / text/html; charset=UTF-8 /  / Cache-Control: no-cache, no-store, must-revalidate

2020.06.05 12:37:34.987 4: Connection accepted from WEB_192.168.0.102_48314
2020.06.05 12:37:34.990 5: GET /?cmd=jsonlist2+global&XHR=1&fwcsrf=csrf_<Token> HTTP/1.1
User-Agent: Mozilla/5.0
Host: 192.168.0.117:8083
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
2020.06.05 12:37:34.991 4: WEB_192.168.0.102_48314 GET /?cmd=jsonlist2+global&XHR=1&fwcsrf=csrf_<Token>; BUFLEN:0
2020.06.05 12:37:34.991 4: WEB: redirecting /?cmd=jsonlist2+global&XHR=1&fwcsrf=csrf_<Token> to /fhem
2020.06.05 12:37:34.999 4: Connection closed for WEB_192.168.0.102_48314: EOF
2020.06.05 12:37:35.006 4: Connection accepted from WEB_192.168.0.102_48316
2020.06.05 12:37:35.009 5: GET /fhem HTTP/1.1
User-Agent: Mozilla/5.0
Host: 192.168.0.117:8083
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
2020.06.05 12:37:35.010 4: WEB_192.168.0.102_48316 GET /fhem; BUFLEN:0
2020.06.05 12:37:35.024 4: WEB: /fhem / RL:18122 / text/html; charset=UTF-8 /  / Cache-Control: no-cache, no-store, must-revalidate

2020.06.05 12:37:44.796 4: Connection closed for WEB_192.168.0.102_48298: EOF
2020.06.05 12:37:44.800 4: Connection closed for WEB_192.168.0.102_48312: EOF
2020.06.05 12:37:44.803 4: Connection closed for WEB_192.168.0.102_48316: EOF


So wie es scheint, bekommt Sepia aber kein JSON zurück, sondern die normale Webpage.

Was muss ich im Device noch einstellen, damit das funktioniert?

Vielen Dank für jede Hilfe.
Danke im voraus
Gerhard

gestein

Hallo,

Sepia hat den richtigen Tipp gegeben.
Man muss nach dem ändern von Daten in der Weboberfläche von Sepia nicht nur das Hakerl bestätigen, sondern auch neu booten.

Vielleicht hilft es jemand anders auch.

Lg, Gerhard