FHEM Forum

FHEM => Sonstiges => Thema gestartet von: horstwwl am 02 Januar 2026, 11:08:14

Titel: Fhem WEB hängt mit auftreten von http://ip/data.jsn: HTTP response code 200
Beitrag von: horstwwl am 02 Januar 2026, 11:08:14
Hallo,
seit einigen Tagen hängt sich das FHEM WEB interface auf und auch sonstige LAN Kommunikation funktioniert nur eingeschränkt. Nach einigen Log Untersuchungen bin ich auf folgende Meldungen gestoßen
2026.01.01 16:21:29 4: http://192.168.178.66/data.jsn: HTTP response code 200

ab dem ersten auftreten dieser Meldung kommt diese auch von anderen Kanälen, die Definition des Gerätes ist
defmod AC_ELWA_2 HTTPMOD http://192.168.178.66/data.jsn 5

Das Gerät ist das AC-ELWA2 von myPV.

Ausgabe von "list AC_ELWA_2":
Internals:
   BUSY       0
   DEF        http://192.168.178.66/data.jsn 5
   FUUID      68c177f3-f33f-0bb3-07bf-dc127e2938b41c45
   Interval   5
   MainURL    http://192.168.178.66/data.jsn
   ModuleVersion 4.2.0 - 11.8.2023
   NAME       AC_ELWA_2
   NOTIFYDEV  global
   NR         271
   NTFY_ORDER 50-AC_ELWA_2
   STATE      48.9 °C<br/>320 W<br/>0.25 kWh
   TYPE       HTTPMOD
   eventCount 1423
   value     
   HttpUtils:
     NAME       
     addr       http://192.168.178.66:80
     auth       0
     buf       
     code       200
     compress   1
     conn       
     data       
     displayurl http://192.168.178.66/data.jsn
     header     
     host       192.168.178.66
     httpheader HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 2515
Access-Control-Allow-Origin: *
     httpversion 1.0
     hu_blocking 0
     hu_filecount 1
     hu_port    80
     hu_portSfx
     ignoreredirects 1
     loglevel   4
     path       /data.jsn
     protocol   http
     redirects  0
     timeout    2
     url        http://192.168.178.66/data.jsn
     sslargs:
   QUEUE:
   READINGS:
     2026-01-02 11:04:27   Chip_Temperatur 48.2
     2026-01-02 11:04:27   Energie_kWh     331.091838326913
     2026-01-02 11:04:27   Energie_kWh.Tag 0.250450421584315
     2025-12-25 09:54:01   Energy_kWh      286
     2026-01-02 11:04:27   Firmware        e0001401
     2026-01-02 11:04:27   Geraet          AC ELWA 2
     2026-01-02 11:04:27   Ist_Temperatur  48.9
     2026-01-01 16:16:51   Leistung        Heizstab max. 3500
     2026-01-02 11:04:27   Leistung Heizstab max. 3500
     2026-01-02 11:04:27   Leistung PV     320
     2026-01-02 11:04:27   Leistung_Heizstab 320
     2026-01-02 11:04:27   Leistung_Netz   0
     2026-01-02 11:04:27   Leistung_Nominal 3500
     2026-01-02 11:04:27   Leistung_PV-Over 2302
     2026-01-02 11:04:27   Status_Control  Conn. to Fronius. P Grid=2302
   REQUEST:
     context    reading
     data       
     header     
     ignoreredirects 0
     num        unknown
     retryCount 0
     type       update
     url        http://192.168.178.66/data.jsn
   defptr:
     readingBase:
       Chip_Temperatur reading
       Firmware   reading
       Geraet     reading
       Ist_Temperatur reading
       Leistung Heizstab max. reading
       Leistung PV reading
       Leistung_Heizstab reading
       Leistung_Netz reading
       Leistung_Nominal reading
       Leistung_PV-Over reading
       Status_Control reading
     readingNum:
       Chip_Temperatur 07
       Firmware   02
       Geraet     01
       Ist_Temperatur 04
       Leistung Heizstab max. 05
       Leistung PV 08
       Leistung_Heizstab 03
       Leistung_Netz 11
       Leistung_Nominal 09
       Leistung_PV-Over 12
       Status_Control 10
     readingOutdated:
     requestReadings:
       update:
         Chip_Temperatur reading 07
         Firmware   reading 02
         Geraet     reading 01
         Ist_Temperatur reading 04
         Leistung Heizstab max. reading 05
         Leistung PV reading 08
         Leistung_Heizstab reading 03
         Leistung_Netz reading 11
         Leistung_Nominal reading 09
         Leistung_PV-Over reading 12
         Status_Control reading 10
Attributes:
   devStateIcon {
  my $onl = ReadingsVal("AC_ELWA_2_On", "state", "") ne "present" ? "rot" : "gruen";
  my $temp = ReadingsVal($name, "Ist_Temperatur", "") . " °C\n";
  my $power = ReadingsVal($name, "Leistung_Heizstab", 0) . " W";
  my $icon = "10px-kreis-$onl";
  "$icon $temp, $power";
}

   event-min-interval Ist_Temperatur:480,Leistung_.*:480,Status:480,Energie_kWh:480
   event-on-change-reading Energie_kWh:0.01,Leistung_..*:5,.*Temperatur.*:5
   fp_Elektroplan 636,846,0,AC_ELWA_2,
   fp_Heizung 422,922,0,AC_ELWA_2,
   group      Heizung
   icon       sani_boiler_temp
   reading01JSON device
   reading01Name Geraet
   reading02JSON fwversion
   reading02Name Firmware
   reading03JSON power_elwa2
   reading03Name Leistung_Heizstab
   reading04Expr $val / 10
   reading04JSON temp1
   reading04Name Ist_Temperatur
   reading05JSON power_max
   reading05Name Leistung Heizstab max.
   reading07Expr $val  / 10
   reading07JSON temp_ps
   reading07Name Chip_Temperatur
   reading08JSON power_solar
   reading08Name Leistung PV
   reading09JSON power_nominal
   reading09Name Leistung_Nominal
   reading10JSON ctrlstate
   reading10Name Status_Control
   reading11JSON power_grid
   reading11Name Leistung_Netz
   reading12JSON surplus
   reading12Name Leistung_PV-Over
 
Hat jemand eine Idee für die Ursache ?
Titel: Aw: Fhem WEB hängt mit auftreten von http://ip/data.jsn: HTTP response code 200
Beitrag von: betateilchen am 02 Januar 2026, 11:20:25
Zitat von: horstwwl am 02 Januar 2026, 11:08:14bin ich auf folgende Meldungen gestoßen
2026.01.01 16:21:29 4: http://192.168.178.66/data.jsn (http://192.168.178.66/data.jsn): HTTP response code 200

Und was stört Dich an dieser Meldung, die den Erfolg der http-Anfrage bestätigt?

https://de.wikipedia.org/wiki/HTTP-Statuscode

Außerdem ist das hier das falsche Unterforum für Fragen zu FHEMWEB.
Titel: Aw: Fhem WEB hängt mit auftreten von http://ip/data.jsn: HTTP response code 200
Beitrag von: horstwwl am 02 Januar 2026, 11:21:45
Die Log-Ausgabe des Gerätes mit verbose=5
2026.01.02 11:16:56 4: AC_ELWA_2: GetUpdate called (update)
2026.01.02 11:16:56 4: AC_ELWA_2: UpdateTimer called from GetUpdate with cmd next sets timer to call update function in 5.0 sec at 11:17:01.849, interval 5
2026.01.02 11:16:56 5: AC_ELWA_2: AddToQueue adds type update to URL http://192.168.178.66/data.jsn, no data, no headers, retry 0, initial queue len: 0
2026.01.02 11:16:56 5: AC_ELWA_2: HandleSendQueue called from AddToSendQueue, qlen = 1
2026.01.02 11:16:56 5: AC_ELWA_2: no separator for multiple values (Context update, unknown)
2026.01.02 11:16:56 4: AC_ELWA_2: HandleSendQueue sends update with timeout 2 to http://192.168.178.66/data.jsn, No Data, No Header
2026.01.02 11:16:56 5: AC_ELWA_2: ReadCallback called from __ANON__
2026.01.02 11:16:56 4: AC_ELWA_2: Read callback: request type was update retry 0, header: HTTP/1.1 200 OK Content-Type: application/json Content-Length: 2512 Access-Control-Allow-Origin: *, body length 2512
2026.01.02 11:16:56 5: AC_ELWA_2: Read callback: body { "device":"AC ELWA 2", "fwversion":"e0001401", "psversion":"ep108", "coversion":"ec104", "fsetup":0, "p1_s":240, "p1_v":"0001401", "p2_s":255, "p2_v":"null", "p_co_s":255, "p_co_v":"null", "p_ps_s":255, "p_ps_v":"null", "power_system":null, "screen_mode_flag":0, "power_elwa2":0, "power_solar":0, "power_grid":0, "power1_solar":0, "power1_grid":0, "power2_solar":0, "power2_grid":0, "power3_solar":0, "power3_grid":0, "rel1_out":0, "rel_selv":0, "power_nominal":3500, "power_max":3500, "temp1":421, "temp2":0, "boostactive":0, "legboostnext":"null", "date":"02.01.26", "loctime":"11:19:30", "unixtime":1767352770, "uptime":2, "ctrlstate":"Conn. to Fronius. P Grid=-1185", "blockactive":0, "meter1_id":null, "meter1_ip":"null", "meter2_id":null, "meter2_ip":"null", "meter3_id":null, "meter3_ip":"null", "meter4_id":null, "meter4_ip":"null", "meter5_id":null, "meter5_ip":"null", "meter6_id":null, "meter6_ip":"null", "meter_ss":null, "meter_ssid":"null", "surplus":-1185, "m0sum":-1185, "m0l1":null, "m0l2":null, "m0l3":null, "m0bat":0, "m1sum":null, "m1l1":null, "m1l2":null, "m1l3":null, "m1devstate":0, "m2sum":null, "m2l1":null, "m2l2":null, "m2l3":null, "m2soc":null, "m2state":null, "m2devstate":null, "m3sum":null, "m3l1":null, "m3l2":null, "m3l3":null, "m3soc":null, "m3devstate":null, "m4sum":null, "m4l1":null, "m4l2":null, "m4l3":null, "m4devstate":null, "batblockstate":null, "ecarstate":"null", "ecarboostctr":null, "mss2":"null", "mss3":"null", "mss4":"null", "mss5":"null", "mss6":"null", "mss7":"null", "mss8":"null", "mss9":"null", "mss10":"null", "mss11":"null", "volt_mains":230, "volt_aux":4, "freq":50017, "temp_ps":471, "fan_speed":0, "ps_state":0, "ctrl_errors":0, "warnings":0, "fwversionlatest":"null", "coversionlatest":"null", "psversionlatest":"null", "upd_state":0, "ps_upd_state":0, "co_upd_state":0, "cur_eth_mode":0, "wifi_signal":0, "wifi_list":[{"ssid":"","signal":0},{"ssid":"","signal":0},{"ssid":"","signal":0},{"ssid":"","signal":0},{"ssid":"","signal":0},{"ssid":"","signal":0},{"ssid":"","signal":0},{"ssid":"","signal":0},{"ssid":"","signal":0},{"ssid":"","signal":0},{"ssid":"","signal":0},{"ssid":"","signal":0},{"ssid":"","signal":0},{"ssid":"","signal":0},{"ssid":"","signal":0},{"ssid":"","signal":0}], "cur_ip":"192.168.178.66", "cur_sn":"255.255.255.0", "cur_gw":"192.168.178.1", "cur_dns":"192.168.178.1", "cloudstate":0, "debug_ip":"0.0.0.0" }
2026.01.02 11:16:56 4: AC_ELWA_2: BodyDecode is not decoding the response body (charset not found, bodyDecode defaults to none)
2026.01.02 11:16:56 4: AC_ELWA_2: extracted JSON values to internal
2026.01.02 11:16:56 5: AC_ELWA_2: GetCookies is looking for Cookies
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractSid called, context reading, num unknown
2026.01.02 11:16:56 4: AC_ELWA_2: checking for redirects, code=200, ignore=0
2026.01.02 11:16:56 4: AC_ELWA_2: no redirects to handle
2026.01.02 11:16:56 5: AC_ELWA_2: Read callback sets LAST_REQUEST to update
2026.01.02 11:16:56 5: AC_ELWA_2: CheckAuth decided no authentication required
2026.01.02 11:16:56 5: AC_ELWA_2: Read starts parsing response to update with defined readings: 01,02,03,04,05,07,08,09,10,11,12
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading Geraet with json device ...
2026.01.02 11:16:56 5: AC_ELWA_2: FormatReading is encoding the reading value as utf-8 because no encoding was specified and the response body charset was unknown or decoded
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading for reading01-1 sets Geraet to AC ELWA 2
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading value as hex is 414320454c57412032
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading Firmware with json fwversion ...
2026.01.02 11:16:56 5: AC_ELWA_2: FormatReading is encoding the reading value as utf-8 because no encoding was specified and the response body charset was unknown or decoded
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading for reading02-1 sets Firmware to e0001401
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading value as hex is 6530303031343031
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading Leistung_Heizstab with json power_elwa2 ...
2026.01.02 11:16:56 5: AC_ELWA_2: FormatReading is encoding the reading value as utf-8 because no encoding was specified and the response body charset was unknown or decoded
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading for reading03-1 sets Leistung_Heizstab to 0
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading value as hex is undef
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading Ist_Temperatur with json temp1 ...
2026.01.02 11:16:56 5: AC_ELWA_2: FormatReading is encoding the reading value as utf-8 because no encoding was specified and the response body charset was unknown or decoded
2026.01.02 11:16:56 5: AC_ELWA_2: perl expression eval evaluated package main; my $timeDiff = $oRef->{'$timeDiff'};$val / 10 to 42.1
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading for reading04-1 sets Ist_Temperatur to 42.1
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading value as hex is 34322e31
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading Leistung Heizstab max. with json power_max ...
2026.01.02 11:16:56 5: AC_ELWA_2: FormatReading is encoding the reading value as utf-8 because no encoding was specified and the response body charset was unknown or decoded
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading for reading05-1 sets Leistung Heizstab max. to 3500
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading value as hex is 33353030
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading Chip_Temperatur with json temp_ps ...
2026.01.02 11:16:56 5: AC_ELWA_2: FormatReading is encoding the reading value as utf-8 because no encoding was specified and the response body charset was unknown or decoded
2026.01.02 11:16:56 5: AC_ELWA_2: perl expression eval evaluated package main; my $timeDiff = $oRef->{'$timeDiff'};$val / 10 to 47.1
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading for reading07-1 sets Chip_Temperatur to 47.1
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading value as hex is 34372e31
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading Leistung PV with json power_solar ...
2026.01.02 11:16:56 5: AC_ELWA_2: FormatReading is encoding the reading value as utf-8 because no encoding was specified and the response body charset was unknown or decoded
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading for reading08-1 sets Leistung PV to 0
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading value as hex is undef
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading Leistung_Nominal with json power_nominal ...
2026.01.02 11:16:56 5: AC_ELWA_2: FormatReading is encoding the reading value as utf-8 because no encoding was specified and the response body charset was unknown or decoded
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading for reading09-1 sets Leistung_Nominal to 3500
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading value as hex is 33353030
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading Status_Control with json ctrlstate ...
2026.01.02 11:16:56 5: AC_ELWA_2: FormatReading is encoding the reading value as utf-8 because no encoding was specified and the response body charset was unknown or decoded
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading for reading10-1 sets Status_Control to Conn. to Fronius. P Grid=-1185
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading value as hex is 436f6e6e2e20746f2046726f6e6975732e205020477269643d2d31313835
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading Leistung_Netz with json power_grid ...
2026.01.02 11:16:56 5: AC_ELWA_2: FormatReading is encoding the reading value as utf-8 because no encoding was specified and the response body charset was unknown or decoded
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading for reading11-1 sets Leistung_Netz to 0
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading value as hex is undef
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading Leistung_PV-Over with json surplus ...
2026.01.02 11:16:56 5: AC_ELWA_2: FormatReading is encoding the reading value as utf-8 because no encoding was specified and the response body charset was unknown or decoded
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading for reading12-1 sets Leistung_PV-Over to -1185
2026.01.02 11:16:56 5: AC_ELWA_2: ExtractReading value as hex is 2d31313835
2026.01.02 11:16:56 4: AC_ELWA_2: Read response matched 11, unmatch 0 Reading(s)
2026.01.02 11:16:56 5: AC_ELWA_2: Read response to update matched Geraet Firmware Leistung_Heizstab Ist_Temperatur Leistung Heizstab max. Chip_Temperatur Leistung PV Leistung_Nominal Status_Control Leistung_Netz Leistung_PV-Over
Titel: Aw: Fhem WEB hängt mit auftreten von http://ip/data.jsn: HTTP response code 200
Beitrag von: horstwwl am 02 Januar 2026, 11:25:13
Mich stört daran, das ab diesen Zeitpunkt der Zugriff auf Fhem WEB nicht mehr klappt und erst ein Neustart von fhem bzw. des RPI die Sache bereinigt, und dies jeden Tag :-(

Titel: Aw: Fhem WEB hängt mit auftreten von http://ip/data.jsn: HTTP response code 200
Beitrag von: betateilchen am 02 Januar 2026, 11:27:26
Dass der Zugriff auf das Frontend nicht mehr klappt, liegt aber nicht an der Erfolgsmeldung des http-requests.

Die Antwort des http-requests wird laut Log verarbeitet und es werden 11 readings aktualisiert.
Das von Dir beschriebene Problem tritt offenbar erst danach auf.