Neue Version von HTTPMOD mit neuen Features zum Testen

Begonnen von StefanStrobel, 05 Dezember 2015, 08:31:32

Vorheriges Thema - Nächstes Thema

Gisbert

Hallo amenomade,

Besser wäre das, wenn ich es selber könnte. Ich bin aber auf Beispiele im Wiki, Commandref und Forum angewiesen. Mit der Zeit wird mein Repertoire immer größer.

Hier habe ich nicht den blassesten Plan, wie ich das mit dem XPath machen sollte. Mit einem Regex könnte ich mir vorstellen, das zur Lösung zu bringen.

Für heute ist die Luft raus.
Morgen werde ich sehe, wie es weitergeht.
Viele​ Grüße​
Gisbert​
Aktuelles FHEM | PROXMOX | Fujitsu Futro S740 | Debian 12 | UniFi | Homematic, VCCU, HMUART | ESP8266 | ATtiny85 | Wasser-, Stromzähler | tuya local | Wlan-Kamera | SIGNALduino, Flamingo Rauchmelder FA21/22RF | RHASSPY

amenomade

Aber ich habe auf Deutsch die XPath erklärt ;) Ok, ein einziges Beispiel reicht vielleicht nicht, um das ganze zu verstehen :D

Na dann
//a[contains(., "Euro") and contains(.,"Stoxx")]//span[@class="quote"]
oder
//span[contains(., "Euro") and contains(.,"Stoxx")]/..//span[@class="quote"]
oder
//span[contains(., "Euro") and contains(.,"Stoxx")]/following-sibling::*/span[@class="quote"]
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

Gisbert

Hallo amenomade,

das erste Beispiel funktioniert bereits, warum ich es bei dem bewendet haben lasse.
Ich interpretiere die doppelten // in der Mitte so: suche im restlichen Dokument nach dem, was dannach kommt. Wahrscheinlich ist es halb geraten halb richtig.

Viele​n Dank.
Mit diesen Beispielen kann ich mir beim nächsten HTTPMOD schon selber helfen.

Viele​ Grüße​ Gisbert​
Aktuelles FHEM | PROXMOX | Fujitsu Futro S740 | Debian 12 | UniFi | Homematic, VCCU, HMUART | ESP8266 | ATtiny85 | Wasser-, Stromzähler | tuya local | Wlan-Kamera | SIGNALduino, Flamingo Rauchmelder FA21/22RF | RHASSPY

amenomade

#768
Zitat von: Gisbert am 10 Mai 2020, 12:07:48
Ich interpretiere die doppelten // in der Mitte so: suche im restlichen Dokument nach dem, was dannach kommt. Wahrscheinlich ist es halb geraten halb richtig.

Fast. Es bleibt trotzdem dem "a" node untergeordnet.
Das heisst dann, suche (immer noch innerhalb des "a" nodes) ein "span" node mit class "quote", egal die Tiefe
Mit einem einzigen Slash, müsste dieses span node direkt unter "a" stehen. Ander gesagt, mit der Konstrukt wie sie ist, müsste man dann /div/span schreiben
Die Hierarchie ist a/div/span
a/span findet nichts
a//span findet es
a/div/span findet es auch

Zitatdas erste Beispiel funktioniert bereits
Die andere auch. Das ist nur eine andere Logik der Suche.
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

Gisbert

Hallo amenomade,

ich stolpere noch gerade über einen log-Eintrag, der offensichtlich mit einem stateformat zusammenhängt und auch bei verbose 0 auftaucht:
2020.05.11 14:46:46 1: PERL WARNING: Argument "-1.00%" isn't numeric in sprintf at .//FHEM/98_HTTPMOD.pm line 1958.
Das stateformat-Attribute:
Dax: [$name:dax] (<span style='color:{(ReadingsVal('$name','dax_perc','') < 0 ? "red":"#2e5e87")}'>[$name:dax_perc]%</span>)<br>
Dow Jones: [$name:dow_jones] (<span style='color:{(ReadingsVal('$name','dow_jones_perc','') < 0 ? "red":"#2e5e87")}'>[$name:dow_jones_perc]%</span>)<br>
EuroStoxx50: [$name:euro_stoxx_50] (<span style='color:{(ReadingsVal('$name','euro_stoxx_50_perc','') < 0 ? "red":"#2e5e87")}'>[$name:euro_stoxx_50_perc]%</span>)<br>
Nasdaq 100: [$name:nasdaq_100] (<span style='color:{(ReadingsVal('$name','nasdaq_100_perc','') < 0 ? "red":"#2e5e87")}'>[$name:nasdaq_100_perc]%</span>)

Das list des Devices:
Internals:
   BUSY       0
   DEF        https://kurse.boerse.ard.de/ard/mobile/index.htn?mobilRedirect=1 600
   FUUID      5eb660c8-f33f-e986-feed-143cad5ec4289aea
   Interval   600
   LASTSEND   1589201494.00761
   MainURL    https://kurse.boerse.ard.de/ard/mobile/index.htn?mobilRedirect=1
   ModuleVersion 3.5.22 - 7.2.2020
   NAME       Indizes_ARD
   NOTIFYDEV  global
   NR         971
   NTFY_ORDER 50-DowJones2
   STATE      Dax: 10764 (<span style='color:red'>-1.28%</span>)<br>
Dow Jones: 24085 (<span style='color:red'>-0.98%</span>)<br>
EuroStoxx50: 2867 (<span style='color:red'>-1.41%</span>)<br>
Nasdaq 100: 9220 (<span style='color:#2e5e87'>1.30%</span>)
   TRIGGERTIME 1589202094
   TRIGGERTIME_FMT 2020-05-11 15:01:34
   TYPE       HTTPMOD
   TimeAlign  1589061694
   TimeAlignFmt 2020-05-10 00:01:34
   XPathEnabled 1
   addr       https://kurse.boerse.ard.de:443
   auth       0
   code       200
   compress   1
   conn       
   data       
   displayurl https://kurse.boerse.ard.de/ard/mobile/index.htn?mobilRedirect=1
   header     Cookie: USF-C-usf_mobil=2; usf_mobil=2
   host       kurse.boerse.ard.de
   httpheader HTTP/1.1 200 OK
server: Apache
last-modified: Mon, 11 May 2020 12:51:34 GMT
content-encoding: gzip
x-powered-by: USF-10/51/069/28
set-cookie: usf_mobil=2; path=/
set-cookie: USF-C-usf_mobil=2; path=/
content-type: text/html; charset=UTF-8
date: Mon, 11 May 2020 12:51:34 GMT
age: 0
via: 1.1 varnish
expires: Mon, 11 May 2020 12:51:34 GMT
pragma: no-cache
cache-control: no-cache
vary: Accept-Encoding,X-USF-Cookie,Cookie
x-usf-cache: MISS
x-usf-cachen: 53
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
connection: close
   httpversion 1.0
   hu_blocking 0
   hu_filecount 74
   hu_port    443
   hu_portSfx
   ignoreredirects 1
   loglevel   4
   path       /ard/mobile/index.htn?mobilRedirect=1
   protocol   https
   redirects  0
   timeout    5
   url        https://kurse.boerse.ard.de/ard/mobile/index.htn?mobilRedirect=1
   value      0
   CompiledRegexes:
   HTTPCookieHash:
     USF-C-usf_mobil;/:
       Name       USF-C-usf_mobil
       Options    path=/
       Path       /
       Value      2
     usf_mobil;/:
       Name       usf_mobil
       Options    path=/
       Path       /
       Value      2
   OLDREADINGS:
   QUEUE:
   READINGS:
     2020-05-11 14:51:34   dax             10764
     2020-05-11 14:51:34   dax_perc        -1.28
     2020-05-11 14:51:34   dow_jones       24085
     2020-05-11 14:51:34   dow_jones_perc  -0.98
     2020-05-11 14:51:34   euro_stoxx_50   2867
     2020-05-11 14:51:34   euro_stoxx_50_perc -1.41
     2020-05-11 14:51:34   nasdaq_100      9220
     2020-05-11 14:51:34   nasdaq_100_perc 1.30
   REQUEST:
     data       
     header     
     ignoreredirects 0
     retryCount 0
     type       update
     url        https://kurse.boerse.ard.de/ard/mobile/index.htn?mobilRedirect=1
     value      0
   defptr:
     readingBase:
       dax        reading
       dax_perc   reading
       dax_perc-1 reading
       dax_perc-2 reading
       dax_perc-3 reading
       dax_perc-4 reading
       dax_perc-5 reading
       dow_jones  reading
       dow_jones_XPath reading
       dow_jones_perc reading
       dow_jones_perc_XPath reading
       euro_stoxx_50 reading
       euro_stoxx_50-1 reading
       euro_stoxx_50-2 reading
       euro_stoxx_50_perc reading
       nasdaq_100 reading
       nasdaq_100_perc reading
       reading03  reading
     readingNum:
       dax        01
       dax_perc   05
       dax_perc-1 05
       dax_perc-2 05
       dax_perc-3 05
       dax_perc-4 05
       dax_perc-5 05
       dow_jones  02
       dow_jones_XPath 03
       dow_jones_perc 06
       dow_jones_perc_XPath 04
       euro_stoxx_50 03
       euro_stoxx_50-1 03
       euro_stoxx_50-2 03
       euro_stoxx_50_perc 07
       nasdaq_100 04
       nasdaq_100_perc 08
       reading03  03
     readingOutdated:
     readingSubNum:
       dax_perc-1 -1
       dax_perc-2 -2
       dax_perc-3 -3
       dax_perc-4 -4
       dax_perc-5 -5
       euro_stoxx_50-1 -1
       euro_stoxx_50-2 -2
     requestReadings:
       update:
         dax        reading 01
         dax_perc   reading 05
         dax_perc-1 reading 05-1
         dax_perc-2 reading 05-2
         dax_perc-3 reading 05-3
         dax_perc-4 reading 05-4
         dax_perc-5 reading 05-5
         dow_jones  reading 02
         dow_jones_XPath reading 03
         dow_jones_perc reading 06
         dow_jones_perc_XPath reading 04
         euro_stoxx_50 reading 03
         euro_stoxx_50-1 reading 03-1
         euro_stoxx_50-2 reading 03-2
         euro_stoxx_50_perc reading 07
         nasdaq_100 reading 04
         nasdaq_100_perc reading 08
         reading03  reading 03
   helper:
     bm:
       HTTPMOD_Attr:
         cnt        262
         dmx        -1000
         dtot       0
         dtotcnt    0
         mTS        09.05. 16:28:52
         max        0.250963926315308
         tot        1.60140299797058
         mAr:
           set
           DowJones2
           reading01XPath
           /html/body/div[2]/div/div/div/div/div/div[1]/div/div[1]/a[2]/span[4]
       HTTPMOD_Define:
         cnt        5
         dmx        -1000
         dtot       0
         dtotcnt    0
         mTS        10.05. 20:39:07
         max        0.00166606903076172
         tot        0.00743412971496582
         mAr:
           HASH(0x55f990df6858)
           Indizes_ARD HTTPMOD https://kurse.boerse.ard.de/ard/mobile/index.htn?mobilRedirect=1 600
       HTTPMOD_Get:
         cnt        294
         dmx        -1000
         dtot       0
         dtotcnt    0
         mTS        11.05. 12:00:25
         max        0.000257015228271484
         tot        0.0248551368713379
         mAr:
           HASH(0x55f990df6858)
           Indizes_ARD
           ?
       HTTPMOD_Notify:
         cnt        335
         dmx        -1000
         dtot       0
         dtotcnt    0
         mTS        11.05. 14:21:44
         max        2.40802764892578e-05
         tot        0.00418925285339355
         mAr:
           HASH(0x55f990df6858)
           HASH(0x55f986021600)
       HTTPMOD_Set:
         cnt        1278
         dmx        -1000
         dtot       0
         dtotcnt    0
         mTS        09.05. 16:58:05
         max        0.00814700126647949
         tot        0.893979072570801
         mAr:
           HASH(0x55f990df6858)
           Indizes_ARD
           ?
   sslargs:
Attributes:
   alias      börse.<b>ARD</b>.de
   alignTime  00:01:34
   event-min-interval .*:1800
   event-on-change-reading .*
   group      Index
   reading01Format %.0f
   reading01Name dax
   reading01OExpr $val =~ s/\.//g; $val =~ s/\,/./g; $val
   reading01XPath //a[contains(., 'Dax')]/span[@class="quote"]
   reading02Format %.0f
   reading02Name dow_jones
   reading02OExpr $val =~ s/\.//g; $val =~ s/\,/./g; $val
   reading02XPath //a[contains(., 'Jones')]/span[@class="quote"]
   reading03Format %.0f
   reading03Name euro_stoxx_50
   reading03OExpr $val =~ s/\.//g; $val =~ s/\,/./g; $val
   reading03XPath //a[contains(.,"Euro") and contains(.,"Stoxx")]//span[@class="quote"]
   reading04Format %.0f
   reading04Name nasdaq_100
   reading04OExpr $val =~ s/\.//g; $val =~ s/\,/./g; $val
   reading04XPath //a[contains(., 'Nasdaq')]/span[@class="quote"]
   reading05Format %.2f
   reading05Name dax_perc
   reading05OExpr $val =~ s/\,/./g; $val =~ s/\+//g; $val
   reading05XPath //a[contains(., 'Dax')]/span[@class="change pos" or @class="change neg"]
   reading06Format %.2f
   reading06Name dow_jones_perc
   reading06OExpr $val =~ s/\,/./g; $val =~ s/\+//g; $val
   reading06XPath //a[contains(., 'Jones')]/span[@class="change pos" or @class="change neg"]
   reading07Format %.2f
   reading07Name euro_stoxx_50_perc
   reading07OExpr $val =~ s/\,/./g; $val =~ s/\+//g; $val
   reading07XPath //a[contains(.,"Euro") and contains(.,"Stoxx")]//span[@class="change pos" or @class="change neg"]
   reading08Format %.2f
   reading08Name nasdaq_100_perc
   reading08OExpr $val =~ s/\,/./g; $val =~ s/\+//g; $val
   reading08XPath //a[contains(., 'Nasdaq')]/span[@class="change pos" or @class="change neg"]
   room       Finance
   sortby     1
   stateFormat Dax: [$name:dax] (<span style='color:{(ReadingsVal('$name','dax_perc','') < 0 ? "red":"#2e5e87")}'>[$name:dax_perc]%</span>)<br>
Dow Jones: [$name:dow_jones] (<span style='color:{(ReadingsVal('$name','dow_jones_perc','') < 0 ? "red":"#2e5e87")}'>[$name:dow_jones_perc]%</span>)<br>
EuroStoxx50: [$name:euro_stoxx_50] (<span style='color:{(ReadingsVal('$name','euro_stoxx_50_perc','') < 0 ? "red":"#2e5e87")}'>[$name:euro_stoxx_50_perc]%</span>)<br>
Nasdaq 100: [$name:nasdaq_100] (<span style='color:{(ReadingsVal('$name','nasdaq_100_perc','') < 0 ? "red":"#2e5e87")}'>[$name:nasdaq_100_perc]%</span>)
   timeout    5
   userattr   reading01Format reading01Name reading01OExpr reading01XPath reading02Format reading02Name reading02OExpr reading02XPath reading03Format reading03Name reading03OExpr reading03XPath reading04Format reading04Name reading04OExpr reading04XPath reading05Format reading05Name reading05OExpr reading05XPath reading06Format reading06Name reading06OExpr reading06XPath reading07Format reading07Name reading07OExpr reading07XPath reading08Format reading08Name reading08OExpr reading08XPath
   verbose    0


Viele Grüße Gisbert
Aktuelles FHEM | PROXMOX | Fujitsu Futro S740 | Debian 12 | UniFi | Homematic, VCCU, HMUART | ESP8266 | ATtiny85 | Wasser-, Stromzähler | tuya local | Wlan-Kamera | SIGNALduino, Flamingo Rauchmelder FA21/22RF | RHASSPY

amenomade

Ne, das kommt wahrscheinlich von reading05 bis reading08, die das % Zeichen mitbringen, und die Du versuchst, mit readingxxFormat zu formattieren.
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

Gisbert

Hallo amenomade,

ich hab jetzt 'ne Stunde gesucht, bis die Tomaten, quasi wie Schuppen von den Augen gefallen sind wegen des Prozentzeichens, das durch das Auslesen bereits ausgeliefert wird und damit nicht mehr zu einem numerischen Ausdruck führen kann.
Ich hab das Prozentzeichen entfernt, um einen numerischen Ausdruck zu bekommen, dann der Optik wegen wieder im stateFormat eins zugefügt.

Viele​ Grüße​ Gisbert​
Aktuelles FHEM | PROXMOX | Fujitsu Futro S740 | Debian 12 | UniFi | Homematic, VCCU, HMUART | ESP8266 | ATtiny85 | Wasser-, Stromzähler | tuya local | Wlan-Kamera | SIGNALduino, Flamingo Rauchmelder FA21/22RF | RHASSPY

jkriegl

Frage zu extractAllJSONFilter.
Mehrere werden mit | verbunden. In den Daten https://corona.lmao.ninja/V2/countries/Germany befindet sich z.B. "cases" und "casesPerOneMillion".
Wie kann ich das 2. erzeugte reading ("casesPerOneMillion") unterdrücken?
Rpi 3, Fhem, Cul 868, HM-CC-RT-DN, HM-Sec-Sco, HM-ES-PMSw1-Pl, ebus (Vaillant), ECMD, Telegram, HTTPMOD, Xiaomi, Shelly

jkriegl

Hab es selbst gefunden.
Man muss in extractALLJSONFilter z.B die Readings cases|active in "\b" setzen

Das ganze ist also sehr einfach:
extractALLJSON=1 und extractALLJSONFilter=\bcases\b|\bactive\b
Rpi 3, Fhem, Cul 868, HM-CC-RT-DN, HM-Sec-Sco, HM-ES-PMSw1-Pl, ebus (Vaillant), ECMD, Telegram, HTTPMOD, Xiaomi, Shelly

andies

Ich habe ein Problem, das hoffentlich nichts mit der (neu angeschafften) Fritzbox zu tun hat, denn deren DHCP nervt mich manchmal.

Ich habe eine Kamera rasp.fritz.box, die in der "Heimnetzwerk"-Seite der FB unter
Zitatrasp LAN 1 mit 1 Gbit/s 192.168.2.33 00:XX:YY:ZZ:AA:BB
ansprechbar ist. Es gibt kein Gerät, dem die IP 192.168.2.4 zugeordnet ist. Ich habe ein HTTPMOD device
Internals:
   BUSY       0
   DEF        none 0
   FUUID      5e244be6-f33f-1115-1e97-6f1194dda70a2f27
   FVERSION   98_HTTPMOD.pm:0.211410/2020-02-07
   Interval   0
   LASTSEND   1590858563.55447
   MainURL   
   ModuleVersion 3.5.22 - 7.2.2020
   NAME       Pikrellcam
   NOTIFYDEV  global
   NR         258
   NTFY_ORDER 50-Pikrellcam
   ReplacementEnabled 1
   STATE      <a href="http://rasp.fritz.box">Link</a>
   TRIGGERTIME 0
   TRIGGERTIME_FMT
   TYPE       HTTPMOD
   addr       http://rasp.fritz.box:80
   auth       0
   data       
   displayurl http://rasp.fritz.box/fifo_command.php?cmd=still
   header     
   host       rasp.fritz.box
   httpversion 1.0
   ignoreredirects 1
   loglevel   4
   path       /fifo_command.php?cmd=still
   protocol   http
   redirects  0
   timeout    2
   url        http://rasp.fritz.box/fifo_command.php?cmd=still
   value      0
   CompiledRegexes:
   QUEUE:
   READINGS:
   REQUEST:
     data       
     header     
     ignoreredirects 0
     retryCount 0
     type       set06
     url        http://%%url%%/fifo_command.php?cmd=still
     value      0
   sslargs:
Attributes:
   comment    Dieses HTTPMOD-Modul erlaubt die Steuerung von Pikrellcam über http-Befehle. Die enstprechende URL *muss* in jeden Set-Befehl eingetragen werden, im define muss "none" als URL stehen. Derzeit implementiert
1.) set <device> motion on/off
2.) set <device> archive_day YYYY-MM-DD (nur für einzeln einzugebende Tage)
3.) set <device> delete_day YYYY-MM-DD (nur für einzeln einzugebende Tage, die nicht archiviert wurden)
4.) set <device> archive_yesterday (Fotos/Videos von gestern archiviert)
5.) set <device> delete_last_month (loesche archivierte Fotos/Videos)
6.) set <device> still (loest Foto aus)
Das archivierte Medium wird im Attribut type festgelegt (stills oder videos).
   group      intern
   replacement01Mode reading
   replacement01Regex %%yesterday%%
   replacement01Value Sonne:yesterday
   replacement02Mode reading
   replacement02Regex %%year%%
   replacement02Value Sonne:year
   replacement03Mode reading
   replacement03Regex %%last_month%%
   replacement03Value Sonne:last_month
   replacement04Mode text
   replacement04Regex %%type%%
   replacement04Value videos
   replacement05Mode text
   replacement05Regex %%url%%
   replacement05Value rasp.fritz.box
   room       Kameras
   set01Name  motion
   set01TextArg 1
   set01URL   http://%%url%%/fifo_command.php?cmd=motion_enable%20$val
   set02Name  archive_day
   set02TextArg 1
   set02URL   http://%%url%%/media-archive.php?mode=media&type=%%type%%&dir=media&archive_date=$val
   set03Name  delete_day
   set03TextArg 1
   set03URL   http://%%url%%/media-archive.php?mode=media&type=%%type%%&dir=media&delete_day=$val
   set04Name  archive_yesterday
   set04NoArg 1
   set04URL   http://%%url%%/media-archive.php?mode=media&type=%%type%%&dir=media&archive_date=%%yesterday%%
   set05Name  delete_last_month
   set05NoArg 1
   set05URL   http://%%url%%/media-archive.php?mode=archive&type=%%type%%&year=%%year%%&m0=%%last_month%%&d0=1&m1=%%last_month%%&d1=31&delete_all
   set06Name  still
   set06NoArg 1
   set06URL   http://%%url%%/fifo_command.php?cmd=still
   stateFormat <a href="http://rasp.fritz.box">Link</a>
   userattr   replacement01Mode:reading,internal,text,expression,key replacement01Regex replacement01Value replacement02Mode:reading,internal,text,expression,key replacement02Regex replacement02Value replacement03Mode:reading,internal,text,expression,key replacement03Regex replacement03Value replacement04Mode:reading,internal,text,expression,key replacement04Regex replacement04Value replacement05Mode:reading,internal,text,expression,key replacement05Regex replacement05Value set01Name set01TextArg:0,1 set01URL set02Name set02TextArg:0,1 set02URL set03Name set03TextArg:0,1 set03URL set04Name set04NoArg:0,1 set04URL set05Name set05NoArg:0,1 set05URL set06Name set06NoArg:0,1 set06URL

mit dem ich die Kamera anspreche. Der Befehl "set ... still" verweist nun auf eine anscheinend alte IP (siehe unten):
2020.05.30 19:09:23 5: Pikrellcam: set called with still
2020.05.30 19:09:23 5: Pikrellcam: set found option still in attribute set06Name
2020.05.30 19:09:23 4: Pikrellcam: set will now set still
2020.05.30 19:09:23 5: Pikrellcam: AddToQueue adds type set06 to URL http://%%url%%/fifo_command.php?cmd=still, no data, no headers, retry 0, initial queue len: 0
2020.05.30 19:09:23 5: Pikrellcam: HandleSendQueue called, qlen = 1
2020.05.30 19:09:23 5: Pikrellcam: GetRegex found precompiled Regex for replacement01 as (?^:%%yesterday%%)
2020.05.30 19:09:23 5: Pikrellcam: Replace called for type set06, regex (?^:%%yesterday%%), mode reading, value Sonne:yesterday input:
2020.05.30 19:09:23 5: Pikrellcam: GetRegex found precompiled Regex for replacement02 as (?^:%%year%%)
2020.05.30 19:09:23 5: Pikrellcam: Replace called for type set06, regex (?^:%%year%%), mode reading, value Sonne:year input:
2020.05.30 19:09:23 5: Pikrellcam: GetRegex found precompiled Regex for replacement03 as (?^:%%last_month%%)
2020.05.30 19:09:23 5: Pikrellcam: Replace called for type set06, regex (?^:%%last_month%%), mode reading, value Sonne:last_month input:
2020.05.30 19:09:23 5: Pikrellcam: GetRegex found precompiled Regex for replacement04 as (?^:%%type%%)
2020.05.30 19:09:23 5: Pikrellcam: Replace called for type set06, regex (?^:%%type%%), mode text, value videos input:
2020.05.30 19:09:23 5: Pikrellcam: GetRegex found precompiled Regex for replacement05 as (?^:%%url%%)
2020.05.30 19:09:23 5: Pikrellcam: Replace called for type set06, regex (?^:%%url%%), mode text, value rasp.fritz.box input:
2020.05.30 19:09:23 5: Pikrellcam: GetRegex found precompiled Regex for replacement01 as (?^:%%yesterday%%)
2020.05.30 19:09:23 5: Pikrellcam: Replace called for type set06, regex (?^:%%yesterday%%), mode reading, value Sonne:yesterday input:
2020.05.30 19:09:23 5: Pikrellcam: GetRegex found precompiled Regex for replacement02 as (?^:%%year%%)
2020.05.30 19:09:23 5: Pikrellcam: Replace called for type set06, regex (?^:%%year%%), mode reading, value Sonne:year input:
2020.05.30 19:09:23 5: Pikrellcam: GetRegex found precompiled Regex for replacement03 as (?^:%%last_month%%)
2020.05.30 19:09:23 5: Pikrellcam: Replace called for type set06, regex (?^:%%last_month%%), mode reading, value Sonne:last_month input:
2020.05.30 19:09:23 5: Pikrellcam: GetRegex found precompiled Regex for replacement04 as (?^:%%type%%)
2020.05.30 19:09:23 5: Pikrellcam: Replace called for type set06, regex (?^:%%type%%), mode text, value videos input:
2020.05.30 19:09:23 5: Pikrellcam: GetRegex found precompiled Regex for replacement05 as (?^:%%url%%)
2020.05.30 19:09:23 5: Pikrellcam: Replace called for type set06, regex (?^:%%url%%), mode text, value rasp.fritz.box input:
2020.05.30 19:09:23 5: Pikrellcam: GetRegex found precompiled Regex for replacement01 as (?^:%%yesterday%%)
2020.05.30 19:09:23 5: Pikrellcam: Replace called for type set06, regex (?^:%%yesterday%%), mode reading, value Sonne:yesterday input: http://%%url%%/fifo_command.php?cmd=still
2020.05.30 19:09:23 5: Pikrellcam: GetRegex found precompiled Regex for replacement02 as (?^:%%year%%)
2020.05.30 19:09:23 5: Pikrellcam: Replace called for type set06, regex (?^:%%year%%), mode reading, value Sonne:year input: http://%%url%%/fifo_command.php?cmd=still
2020.05.30 19:09:23 5: Pikrellcam: GetRegex found precompiled Regex for replacement03 as (?^:%%last_month%%)
2020.05.30 19:09:23 5: Pikrellcam: Replace called for type set06, regex (?^:%%last_month%%), mode reading, value Sonne:last_month input: http://%%url%%/fifo_command.php?cmd=still
2020.05.30 19:09:23 5: Pikrellcam: GetRegex found precompiled Regex for replacement04 as (?^:%%type%%)
2020.05.30 19:09:23 5: Pikrellcam: Replace called for type set06, regex (?^:%%type%%), mode text, value videos input: http://%%url%%/fifo_command.php?cmd=still
2020.05.30 19:09:23 5: Pikrellcam: GetRegex found precompiled Regex for replacement05 as (?^:%%url%%)
2020.05.30 19:09:23 5: Pikrellcam: Replace called for type set06, regex (?^:%%url%%), mode text, value rasp.fritz.box input: http://%%url%%/fifo_command.php?cmd=still
2020.05.30 19:09:23 5: Pikrellcam: Replace: match for type set06, regex (?^:%%url%%), mode text, value rasp.fritz.box, input: http://%%url%%/fifo_command.php?cmd=still, result is http://rasp.fritz.box/fifo_command.php?cmd=still
2020.05.30 19:09:23 4: Pikrellcam: HandleSendQueue sends set06 with timeout 2 to http://rasp.fritz.box/fifo_command.php?cmd=still, No Data, No Header
2020.05.30 19:09:23 5: HttpUtils url=http://rasp.fritz.box/fifo_command.php?cmd=still
2020.05.30 19:09:23 4: IP: rasp.fritz.box -> 192.168.2.4       <====== AN DIESER STELLE
2020.05.30 19:09:25 3: Pikrellcam: Read callback: Error: connect to http://rasp.fritz.box:80 timed out
2020.05.30 19:09:25 4: Pikrellcam: Read callback: request type was set06 retry 0, no headers, no body
2020.05.30 19:09:25 5: Pikrellcam: Read callback: body empty
2020.05.30 19:09:25 4: Pikrellcam: Read found no charset header (bodyDecode was set to auto)
2020.05.30 19:09:25 5: Pikrellcam: GetCookies is looking for Cookies
2020.05.30 19:09:25 5: Pikrellcam: ExtractSid called, context set, num 06
2020.05.30 19:09:25 4: Pikrellcam: no header to look for redirects
2020.05.30 19:09:25 5: Pikrellcam: CheckAuth decided no authentication required

Weiß jemand, was da schief läuft?
FHEM 6.1 auf RaspPi4 (Raspbian:  6.6.28+; Perl: v5.36.0)
SIGNALduino (433 MHz) und HM-UART (868 MHz), Sonoff, Blitzwolf, Somfy RTS, CAME-Gartentor, Volkszähler, Keyence-Sensor, Homematic-Sensoren und -thermostat, Ferraris-Zähler für Wasseruhr, Openlink-Nachbau Viessmann

amenomade

Mach in Eingabefeld von Fhem ein
"ping rasp.fritz.box -c 2"inkl. Einführungszeichen

Was sagt dann die Log?
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

andies

PING rasp.fritz.box(rasp.fritz.box (2003:cf:571c:b500:733e:xxxx:xxxx:xxxx)) 56 data bytes
64 bytes from rasp.fritz.box (2003:cf:571c:b500:733e:xxxx:xxxx:xxxx): icmp_seq=1 ttl=64 time=64.9 ms
64 bytes from rasp.fritz.box (2003:cf:571c:b500:733e:xxxx:xxxx:xxxx): icmp_seq=2 ttl=64 time=2.10 ms

--- rasp.fritz.box ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 3ms
rtt min/avg/max/mdev = 2.100/33.522/64.945/31.423 ms
FHEM 6.1 auf RaspPi4 (Raspbian:  6.6.28+; Perl: v5.36.0)
SIGNALduino (433 MHz) und HM-UART (868 MHz), Sonoff, Blitzwolf, Somfy RTS, CAME-Gartentor, Volkszähler, Keyence-Sensor, Homematic-Sensoren und -thermostat, Ferraris-Zähler für Wasseruhr, Openlink-Nachbau Viessmann

amenomade

Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

andies

PING rasp.fritz.box (192.168.2.4) 56(84) bytes of data.
From raspfhem.fritz.box (192.168.2.18) icmp_seq=1 Destination Host Unreachable
From raspfhem.fritz.box (192.168.2.18) icmp_seq=2 Destination Host Unreachable

--- rasp.fritz.box ping statistics ---
2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 7ms
pipe 2

Aha. Aber was bedeutet das?
FHEM 6.1 auf RaspPi4 (Raspbian:  6.6.28+; Perl: v5.36.0)
SIGNALduino (433 MHz) und HM-UART (868 MHz), Sonoff, Blitzwolf, Somfy RTS, CAME-Gartentor, Volkszähler, Keyence-Sensor, Homematic-Sensoren und -thermostat, Ferraris-Zähler für Wasseruhr, Openlink-Nachbau Viessmann

amenomade

#779
Routing bzw. DNS/DHCP Problem

Was hast Du als dnsServer und ggf dnsHostsFile auf deinem global Device?

Ergibt das ping in einem Terminal das gleiche Ergebnis?

Hast Du irgendwie in der Fritzbox eine feste IP dem rasp.fritz.box zugewiesen?

Sind alle Geräte im gleichem Subnetz?

Hast Du vor kurzem die IP Adresse von rasp geändert, bzw. wurde diese IP durch das Wechseln der Fritzbox geändert? In diesem Fall könnte ein flushdns helfen

EDIT: und ein "traceroute rasp.fritz.box" könnte auch helfen.
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus