Temperatur aus Mobotix Kamera abrufen

Begonnen von Thoffi1978, 08 Dezember 2020, 10:36:06

Vorheriges Thema - Nächstes Thema

Thoffi1978

Hallo,

ich habe eine Mobotix Kamera und nutze den Helligkeitswert für meine Haussteuerung.
Dafür benutze ich folgende Einstellung:
List HelligkeitInternals:
   .LASTSEND  1607419743.14174
   .LastUpdate 1607419743.13454
   .TRIGGERTIME 1607419863.13454
   .getList   
   .setList   interval reread:noArg stop:noArg start:noArg clearCookies:noArg upgradeAttributes:noArg storeKeyValue
   .updateRequestHash 1
   BUSY       0
   DEF        http://Fhem:fhem1234@192.168.2.12/control/rcontrol?action=gettext&message=$(SEN.LXR) 120
   FUUID      5c6a8907-f33f-7e98-3692-ee4e1c19a4338a51
   Interval   120
   MainURL    http://Fhem:fhem1234@192.168.2.12/control/rcontrol?action=gettext&message=$(SEN.LXR)
   ModuleVersion 4.0.12 - 24.10.2020
   NAME       Helligkeit
   NOTIFYDEV  global
   NR         125
   NTFY_ORDER 50-Helligkeit
   STATE      2604.8
   TYPE       HTTPMOD
   value     
   .attraggr:
   .attreocr:
     state
   .attrminint:
   .readingParseList:
     01
   CompiledRegexes:
   HttpUtils:
     NAME       
     addr       http://192.168.2.12:80
     auth       1
     code       200
     compress   1
     conn       
     data       
     displayurl http://Fhem:fhem1234@192.168.2.12/control/rcontrol?action=gettext&message=$(SEN.LXR)
     header     
     host       192.168.2.12
     httpheader HTTP/1.0 200 OK
Content-type: text/plain; charset=utf-8
     httpversion 1.0
     hu_blocking 0
     hu_filecount 1
     hu_port    80
     hu_portSfx
     ignoreredirects 1
     loglevel   4
     path       /control/rcontrol?action=gettext&message=$(SEN.LXR)
     protocol   http
     pwd        fhem1234
     redirects  0
     timeout    10
     url        http://Fhem:fhem1234@192.168.2.12/control/rcontrol?action=gettext&message=$(SEN.LXR)
     user       Fhem
     sslargs:
   QUEUE:
   READINGS:
     2020-12-08 10:29:04   state           2604.8
   REQUEST:
     context    reading
     data       
     header     
     ignoreredirects 0
     num        0
     retryCount 0
     type       update
     url        http://Fhem:fhem1234@192.168.2.12/control/rcontrol?action=gettext&message=$(SEN.LXR)
   defptr:
     readingBase:
       state      reading
     readingNum:
       state      01
     readingOutdated:
     requestReadings:
       update:
         state      reading 01
Attributes:
   event-on-change-reading state
   reading01Name state
   reading01Regex \n\s*([-+]?[\d\.]+)
   room       Haus
   timeout    10
   userattr   reading01Name reading01Regex timeout


Zum Abrufen der Temperatur wollte ich
http://Fhem:fhem1234@192.168.2.12/control/rcontrol?action=gettext&message=$(SEN.TIN.CELSIUS)
benutzen.

Rufe ich den Link im Explorer auf erhalte ich auch eine Temperatur.
Leider funktioniert das aber nicht so in FHEM.
Muss ich da was anderes beachten als bei der Helligkeit?

Vielen Dank
Hoffi

Thoffi1978

Nachtrag:

ich habe nun verbose auf 5 gestellt. Der Temperaturwert wird im Log angezeigt, jedoch nicht richtig übergeben.
Könnt Ihr mir sagen was ich für die Übergabe ändern muss?

Log:
2020.12.13 12:51:22 5 : Temperatur: ReadCallback called from __ANON__
2020.12.13 12:51:22 4 : Temperatur: BodyDecode found charset header and set decoding to utf-8 (bodyDecode was set to auto)
2020.12.13 12:51:22 4 : Temperatur: BodyDecode is decoding the response body as utf-8
2020.12.13 12:51:22 5 : Temperatur: GetCookies is looking for Cookies
2020.12.13 12:51:22 5 : Temperatur: ExtractSid called, context reading, num 0
2020.12.13 12:51:22 4 : Temperatur: checking for redirects, code=200, ignore=0
2020.12.13 12:51:22 4 : Temperatur: no redirects to handle
2020.12.13 12:51:22 5 : Temperatur: Read callback sets LAST_REQUEST to update
2020.12.13 12:51:22 5 : Temperatur: CheckAuth decided no authentication required
2020.12.13 12:51:22 5 : Temperatur: Read starts parsing response to update with defined readings: 01
2020.12.13 12:51:22 5 : Temperatur: ExtractReading state with regex /(?^:\n\s*([-+]?[\d\.]+))/...
2020.12.13 12:51:22 5 : Temperatur: ExtractReading state did not match
2020.12.13 12:51:22 4 : Temperatur: Read response to update didn't match any Reading
2020.12.13 12:51:22 5 : Temperatur: HandleSendQueue called from HTTPMOD::ReadCallback, qlen = 0
2020.12.13 12:51:22 5 : Temperatur: HandleSendQueue found no usable entry in queue
2020.12.13 12:51:22 4 : Temperatur: Read callback: request type was update retry 0, header: HTTP/1.0 200 OK Content-type: text/plain; charset=utf-8, body length 5
2020.12.13 12:51:22 5 : Temperatur: Read callback: body + 3.2