***gelöst***HTTPMOD wie richtige Abfrage eintragen - RIKA Pelletofen - Firenet

Begonnen von Helmi55, 04 September 2017, 17:18:00

Vorheriges Thema - Nächstes Thema

Helmi55

Servus
ich habe einen Wartungsvertrag.
Da wird der Ofen zerlegt und gereinigt. Inkl. Ofenrohr denn das macht der Rauchfangkehrer nicht.
Der werkelt da ca. 1 - 1 /2 Stunden

Gruß
Helmut
System1 fhem 6.1 auf RPi 4B mit 4GB, HMUSBConfig, DS9490R-1Wire, Busware USB 868, Pool-Solarsteuerung mit FHEM. System2 fhem 6.1 auf RPi 4B mit 4GB (Bullseye) mit Busware USB 868 und 433 und HMUARTLGW für Haussteuerung

https://www.flickr.com/photos/canonhelmi/

Badflex

So habe ich es jetzt geregelt, klappt gut bis jetzt.
Die intervall Zeit muss man wohl ein bisschen runter setzen, sonst ist der Deckel zu bevor das Reading kommt.
Danke an Otto

attr ofen userReadings Merker:sensors_statusWarning:.2 {ReadingsNum($name,'sensors_parameterFeedRateTotal',0)+15}, nachricht:sensors_parameterFeedRateTotal:.* {fhem("set TelegramBot message 'Ofen' 'Pellettank fast leer!'") if (ReadingsNum($name,'sensors_parameterFeedRateTotal',0) >= ReadingsNum($name,'Merker',0))}
Raspberry Pi, CUL868(SlowRF), FB 7490, SmartVisu, fast nur HomeMatic wenig FS20, Netatmo

olgo

Hallo zusammen,

ich habe zwar keinen Ofen aber eine Wärmepumpe, diese habe ich via Intesis Modul etwas Sichtbar gemacht.
Nun möchte ich via FHEM einige Daten auslesen - verwenden.

Leider bekomme ich die HTTPMOD Abfrage nicht hin, ich deute aus dem gesamten Postings das ich beim Login scheitere.

https://accloud.intesis.com/login

Auch Burp hat mir (als Leihe) nicht wirklich geholfen

Anbei mein Device:
defmod intesis HTTPMOD https://accloud.intesis.com/panel/vista?id=127927473258
attr intesis userattr sid02Data
attr intesis enableCookies 1
attr intesis extractAllJSON 1
attr intesis reAuthRegex id="login"
attr intesis sid01Data signin_username=xxx.yyy@ddd.de&signin_password=xyz
attr intesis sid01URL https://accloud.intesis.com/login
attr intesis verbose 5


und ich hoffe den richtigen Teil aus dem Log:
2022.12.16 12:46:14 5: intesis: set called with reread
2022.12.16 12:46:14 4: intesis: GetUpdate called (reread)
2022.12.16 12:46:14 5: intesis: AddToQueue adds type update to URL https://accloud.intesis.com/panel/vista?id=127927473258, no data, no headers, retry 0, initial queue len: 0
2022.12.16 12:46:14 5: intesis: HandleSendQueue called from AddToSendQueue, qlen = 1
2022.12.16 12:46:14 5: intesis: HandleSendQueue is using Cookie symfonyFrontend with path / and Value 4v378o5mhg7mnvflejnt560056 (key symfonyFrontend;/, destination path is /panel/vista?id=127927473258)
2022.12.16 12:46:14 5: intesis: DoCookies is adding Cookie header: symfonyFrontend=4v378o5mhg7mnvflejnt560056
2022.12.16 12:46:14 4: intesis: HandleSendQueue sends update with timeout 2 to https://accloud.intesis.com/panel/vista?id=127927473258, No Data,
2022.12.16 12:46:14 5: intesis: ReadCallback called from __ANON__
2022.12.16 12:46:14 4: intesis: Read callback: request type was update retry 0,
2022.12.16 12:46:14 5: intesis: Read callback: body
<link rel="stylesheet" type="text/css" media="screen" href="/css/intesis-theme/jquery-ui-1.9.2.custom.css" />
     if ('https://accloud.intesis.com/login' != top.location) {
       window.parent.location.href = 'https://accloud.intesis.com/login';
      <li><a target="_blank" href="https://www.intesis.com/privacy-policy">Privacy policy</a></li>
      <li><a target="_blank" href="https://www.intesis.com/cookies">Cookies policy</a></li>
              <li><a target="_blank" href="https://www.intesis.com/support/ac-cloud-control-faq">FAQ</a></li>
            <li class="last"><a target="_blank" href="https://www.intesis.com/support/contact">Help</a></li>
      <li><a target="_blank" href="https://www.intesis.com/docs/terms_and_conditions-accloud">Terms and Conditions</a></li>
2022.12.16 12:46:14 4: intesis: BodyDecode is not decoding the response body (charset utf-8, bodyDecode defaults to none)
2022.12.16 12:46:14 4: intesis: error while parsing JSON data: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "<!DOCTYPE html PUBLI...") at lib/FHEM/HTTPMOD/Utils.pm line 691.
2022.12.16 12:46:14 5: intesis: GetCookies is looking for Cookies
2022.12.16 12:46:14 5: intesis: ExtractSid called, context reading, num unknown
2022.12.16 12:46:14 4: intesis: checking for redirects, code=200, ignore=0
2022.12.16 12:46:14 4: intesis: no redirects to handle
2022.12.16 12:46:14 5: intesis: Read callback sets LAST_REQUEST to update
2022.12.16 12:46:14 5: intesis: CheckAuth is checking buffer with ReAuthRegex (?^:id="login")
2022.12.16 12:46:14 4: intesis: CheckAuth decided new authentication required
2022.12.16 12:46:14 5: intesis: AddToQueue prepends type update to URL https://accloud.intesis.com/panel/vista?id=127927473258, no data, no headers, retry 1, initial queue len: 0
2022.12.16 12:46:14 4: intesis: CheckAuth prepended request update again before auth, retryCount 0 ...
2022.12.16 12:46:14 4: intesis: DoAuth called with Steps: 01
2022.12.16 12:46:14 5: intesis: AddToQueue prepends type auth01 to URL https://accloud.intesis.com/login, data signin_username=xxx.yyy@ddd.de&signin_password=xyz, no headers, retry 0, initial queue len: 1
2022.12.16 12:46:14 5: intesis: HandleSendQueue called from DoAuth, qlen = 2
2022.12.16 12:46:14 5: intesis: HandleSendQueue is using Cookie symfonyFrontend with path / and Value 4v378o5mhg7mnvflejnt560056 (key symfonyFrontend;/, destination path is /login)
2022.12.16 12:46:14 5: intesis: DoCookies is adding Cookie header: symfonyFrontend=4v378o5mhg7mnvflejnt560056
2022.12.16 12:46:14 4: intesis: HandleSendQueue sends auth01 with timeout 2 to https://accloud.intesis.com/login,
2022.12.16 12:46:14 5: intesis: StartQueueTimer called from HandleSendQueue sets internal timer to process queue in 1.000 seconds
2022.12.16 12:46:14 5: intesis: ReadCallback called from __ANON__
2022.12.16 12:46:14 4: intesis: Read callback: request type was auth01 retry 0,
2022.12.16 12:46:14 5: intesis: Read callback: body
<link rel="stylesheet" type="text/css" media="screen" href="/css/intesis-theme/jquery-ui-1.9.2.custom.css" />
     if ('https://accloud.intesis.com/login' != top.location) {
       window.parent.location.href = 'https://accloud.intesis.com/login';
      <li><a target="_blank" href="https://www.intesis.com/privacy-policy">Privacy policy</a></li>
      <li><a target="_blank" href="https://www.intesis.com/cookies">Cookies policy</a></li>
              <li><a target="_blank" href="https://www.intesis.com/support/ac-cloud-control-faq">FAQ</a></li>
            <li class="last"><a target="_blank" href="https://www.intesis.com/support/contact">Help</a></li>
      <li><a target="_blank" href="https://www.intesis.com/docs/terms_and_conditions-accloud">Terms and Conditions</a></li>
2022.12.16 12:46:14 4: intesis: BodyDecode is not decoding the response body (charset utf-8, bodyDecode defaults to none)
2022.12.16 12:46:14 4: intesis: error while parsing JSON data: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "<!DOCTYPE html PUBLI...") at lib/FHEM/HTTPMOD/Utils.pm line 691.
2022.12.16 12:46:14 5: intesis: GetCookies is looking for Cookies
2022.12.16 12:46:14 5: intesis: ExtractSid called, context sid, num 01
2022.12.16 12:46:14 4: intesis: checking for redirects, code=200, ignore=0
2022.12.16 12:46:14 4: intesis: no redirects to handle
2022.12.16 12:46:14 5: intesis: Read callback sets LAST_REQUEST to auth01
2022.12.16 12:46:15 5: intesis: HandleSendQueue called from Fhem internal timer, qlen = 1
2022.12.16 12:46:15 5: intesis: HandleSendQueue is using Cookie symfonyFrontend with path / and Value 4v378o5mhg7mnvflejnt560056 (key symfonyFrontend;/, destination path is /panel/vista?id=127927473258)
2022.12.16 12:46:15 5: intesis: DoCookies is adding Cookie header: symfonyFrontend=4v378o5mhg7mnvflejnt560056
2022.12.16 12:46:15 4: intesis: HandleSendQueue sends update with timeout 2 to https://accloud.intesis.com/panel/vista?id=127927473258, No Data,
2022.12.16 12:46:15 5: intesis: ReadCallback called from __ANON__
2022.12.16 12:46:15 4: intesis: Read callback: request type was update retry 1,
2022.12.16 12:46:15 5: intesis: Read callback: body
<link rel="stylesheet" type="text/css" media="screen" href="/css/intesis-theme/jquery-ui-1.9.2.custom.css" />
     if ('https://accloud.intesis.com/login' != top.location) {
       window.parent.location.href = 'https://accloud.intesis.com/login';
      <li><a target="_blank" href="https://www.intesis.com/privacy-policy">Privacy policy</a></li>
      <li><a target="_blank" href="https://www.intesis.com/cookies">Cookies policy</a></li>
              <li><a target="_blank" href="https://www.intesis.com/support/ac-cloud-control-faq">FAQ</a></li>
            <li class="last"><a target="_blank" href="https://www.intesis.com/support/contact">Help</a></li>
      <li><a target="_blank" href="https://www.intesis.com/docs/terms_and_conditions-accloud">Terms and Conditions</a></li>
2022.12.16 12:46:15 4: intesis: BodyDecode is not decoding the response body (charset utf-8, bodyDecode defaults to none)
2022.12.16 12:46:15 4: intesis: error while parsing JSON data: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "<!DOCTYPE html PUBLI...") at lib/FHEM/HTTPMOD/Utils.pm line 691.
2022.12.16 12:46:15 5: intesis: GetCookies is looking for Cookies
2022.12.16 12:46:15 5: intesis: ExtractSid called, context reading, num unknown
2022.12.16 12:46:15 4: intesis: checking for redirects, code=200, ignore=0
2022.12.16 12:46:15 4: intesis: no redirects to handle
2022.12.16 12:46:15 5: intesis: Read callback sets LAST_REQUEST to update
2022.12.16 12:46:15 5: intesis: CheckAuth is checking buffer with ReAuthRegex (?^:id="login")
2022.12.16 12:46:15 4: intesis: CheckAuth decided new authentication required
2022.12.16 12:46:15 4: intesis: Authentication still required but no retries left - did last authentication fail?
2022.12.16 12:46:15 3: intesis: no parsed JSON structure available
2022.12.16 12:46:15 5: intesis: Read starts parsing response to update with defined readings:
2022.12.16 12:46:15 4: intesis: Read response to update didn't match any Reading
2022.12.16 12:46:15 5: intesis: HandleSendQueue called from ReadCallback, qlen = 0
2022.12.16 12:46:15 5: intesis: HandleSendQueue found no usable entry in queue


Hätte hier jemand einen Rat für mich?

Vielen Dank

Helmi55

Servus
ich kann dir leider nicht weiterhelfen, aber mach einen eigenen thread auf, da es hier um RIKA Pelletofen ging.......

Viel Glück und Gruß
Helmut
System1 fhem 6.1 auf RPi 4B mit 4GB, HMUSBConfig, DS9490R-1Wire, Busware USB 868, Pool-Solarsteuerung mit FHEM. System2 fhem 6.1 auf RPi 4B mit 4GB (Bullseye) mit Busware USB 868 und 433 und HMUARTLGW für Haussteuerung

https://www.flickr.com/photos/canonhelmi/