Autor Thema: Modul für Panasonic Comfort Cloud API?  (Gelesen 6415 mal)

Offline marboj

  • Full Member
  • ***
  • Beiträge: 129
Antw:Modul für Panasonic Comfort Cloud API?
« Antwort #60 am: 08 März 2021, 09:01:47 »
Nach nunmehr 2 Wochen und einigen Tests habe ich eine Frage zum Modul:

Sehe ich das richtig, dass in dem Moment, wenn eine Klimaanlage eingeschaltet wird, dessen Status über den AT-Befehl überwacht wird, da der AT-Befehl entsprechend modifiziert wird? Das läuft doch dann auseinander, wenn ich 2 Klimaanlagen gleichzeitig laufen habe, oder? Es wird doch dann immer nur die zuletzt eingeschaltete überwacht.

Gruß
Marco
meine FHEM-Konfiguration: Raspberry Pi4, BT-Dongle, CUL868, CeeBee II

Offline teufelchen

  • Full Member
  • ***
  • Beiträge: 165
Antw:Modul für Panasonic Comfort Cloud API?
« Antwort #61 am: 09 Juni 2021, 17:21:46 »
Hallo,

ich versuche gerade vergeblich meine Klimaanlagen in FHEM zu bringen.

Definiert habe ich es wie folgt:
defmod wz_klima HTTPMOD https://accsmart.panasonic.com/device/group 180
attr wz_klima disable 0
attr wz_klima enableCookies 1
attr wz_klima errLogLevelRegex 1
attr wz_klima event-on-change-reading actual_.*
attr wz_klima get01Name Devicegroup
attr wz_klima get01URL https://accsmart.panasonic.com/device/group
attr wz_klima get02ExtractAllJSON 0
attr wz_klima get02Name Status
attr wz_klima get02URL https://accsmart.panasonic.com/deviceStatus/[MODELL]+[DEVICE-ID]
attr wz_klima getHeader1 X-APP-TYPE: 1
attr wz_klima getHeader2 X-APP-VERSION: 1.10.0
attr wz_klima getHeader3 Accept: application/json
attr wz_klima getHeader4 Content-Type: application/json
attr wz_klima getHeader5 User-Agent: G-RAC
attr wz_klima getHeader6 X-User-Authorization: $sid
attr wz_klima group Klimaanlage
attr wz_klima httpVersion 1.1
attr wz_klima reAuthJSON message
attr wz_klima reAuthRegex Token expires
attr wz_klima reading01JSON parameters_operate
attr wz_klima reading01Name actual_operate
attr wz_klima reading02JSON parameters_temperatureSet
attr wz_klima reading02Name actual_desired-temp
attr wz_klima reading03JSON parameters_actualNanoe
attr wz_klima reading03Name actual_nanoe
attr wz_klima reading04JSON parameters_ecoMode
attr wz_klima reading04Name actual_ecomode
attr wz_klima reading05JSON parameters_operationMode
attr wz_klima reading05Name actual_operationmode
attr wz_klima replacement01Mode reading
attr wz_klima replacement01Regex ##PARAMS##
attr wz_klima requestHeader01 X-APP-TYPE: 1
attr wz_klima requestHeader02 X-APP-VERSION: 1.10.0
attr wz_klima requestHeader03 Accept: application/json
attr wz_klima requestHeader04 Content-Type: application/json
attr wz_klima requestHeader05 User-Agent: G-RAC
attr wz_klima requestHeader06 X-User-Authorization: $sid
attr wz_klima room Klimaanlage
attr wz_klima set01Data {"deviceGuid": "[MODELL]+[DEVICE-ID]","parameters": {"operate": 1}}
attr wz_klima set01Name PowerOn
attr wz_klima set01URL https://accsmart.panasonic.com/deviceStatus/control
attr wz_klima set02Data {"deviceGuid": "[MODELL]+[DEVICE-ID]","parameters": {"operate": 0}}
attr wz_klima set02Name PowerOff
attr wz_klima set02URL https://accsmart.panasonic.com/deviceStatus/control
attr wz_klima set03Data {"deviceGuid": "[MODELL]+[DEVICE-ID]","parameters": {##PARAMS##}}
attr wz_klima set03Name Control
attr wz_klima set03Replacement01Value wz_d_klima:params
attr wz_klima set03URL https://accsmart.panasonic.com/deviceStatus/control
attr wz_klima setHeader1 X-APP-TYPE: 1
attr wz_klima setHeader2 X-APP-VERSION: 1.10.0
attr wz_klima setHeader3 Accept: application/json
attr wz_klima setHeader4 Content-Type: application/json
attr wz_klima setHeader5 User-Agent: G-RAC
attr wz_klima setHeader6 X-User-Authorization: $sid
attr wz_klima sid01Data {"language": "0","loginId": "[Benutzer]","password": "[Passwort]"}
attr wz_klima sid01Header1 X-APP-TYPE: 1
attr wz_klima sid01Header2 X-APP-VERSION: 1.10.0
attr wz_klima sid01Header3 Accept: application/json
attr wz_klima sid01Header4 Content-Type: application/json
attr wz_klima sid01Header5 User-Agent: G-RAC
attr wz_klima sid01IdJSON uToken
attr wz_klima sid01URL https://accsmart.panasonic.com/auth/login
attr wz_klima stateFormat {InternalVal("wz_d_klima", "STATE", "")}
attr wz_klima verbose 5

ein get wz-klima Devicegroup bringt keine readings

Im Log ist folgendes:
2021.06.09 17:16:13 5: wz_klima: get called with Devicegroup
2021.06.09 17:16:13 5: wz_klima: get found option Devicegroup in attribute get01Name
2021.06.09 17:16:13 4: wz_klima: get will now request Devicegroup, no optional value
2021.06.09 17:16:13 5: wz_klima: AddToQueue adds type get01 to URL https://accsmart.panasonic.com/device/group, no data, header X-APP-TYPE: 1
X-APP-VERSION: 1.10.0
Accept: application/json
Content-Type: application/json
User-Agent: G-RAC
X-User-Authorization: $sid, retry 0, initial queue len: 0
2021.06.09 17:16:13 5: wz_klima: HandleSendQueue called from AddToSendQueue, qlen = 1
2021.06.09 17:16:13 5: wz_klima: Replace called for type get01, regex (?^:##PARAMS##), mode reading, empty value input: X-APP-TYPE: 1
X-APP-VERSION: 1.10.0
Accept: application/json
Content-Type: application/json
User-Agent: G-RAC
X-User-Authorization: $sid
2021.06.09 17:16:13 5: wz_klima: Replace called for type get01, regex (?^:##PARAMS##), mode reading, empty value input: https://accsmart.panasonic.com/device/group
2021.06.09 17:16:13 4: wz_klima: HandleSendQueue sends get01 with timeout 2 to https://accsmart.panasonic.com/device/group, No Data,
header: X-APP-TYPE: 1
X-APP-VERSION: 1.10.0
Accept: application/json
Content-Type: application/json
User-Agent: G-RAC
X-User-Authorization: $sid
2021.06.09 17:16:14 5: wz_klima: ReadCallback called from __ANON__
2021.06.09 17:16:14 4: wz_klima: Read callback: request type was get01 retry 0,
header: HTTP/1.1 401
Date: Wed, 09 Jun 2021 15:16:14 GMT
Content-Type: application/json;charset=UTF-8
Content-Length: 39
Connection: close
Server: nginx
Cache-Control: no-cache, must-revalidate, body length 39
2021.06.09 17:16:14 5: wz_klima: Read callback: body
{"message":"Token expires","code":4100}
2021.06.09 17:16:14 4: wz_klima: BodyDecode is not decoding the response body (charset UTF-8, bodyDecode defaults to none)
2021.06.09 17:16:14 4: wz_klima: extracted JSON values to internal
2021.06.09 17:16:14 5: wz_klima: GetCookies is looking for Cookies
2021.06.09 17:16:14 5: wz_klima: ExtractSid called, context get, num 01
2021.06.09 17:16:14 4: wz_klima: checking for redirects, code=401, ignore=0
2021.06.09 17:16:14 4: wz_klima: no redirects to handle
2021.06.09 17:16:14 5: wz_klima: Read callback sets LAST_REQUEST to get01
2021.06.09 17:16:14 5: wz_klima: Checking Auth with JSON message
2021.06.09 17:16:14 5: wz_klima: CheckAuth is replacing buffer to check with match: Token expires
2021.06.09 17:16:14 5: wz_klima: CheckAuth is checking buffer with ReAuthRegex (?^:Token expires)
2021.06.09 17:16:14 4: wz_klima: CheckAuth decided new authentication required
2021.06.09 17:16:14 5: wz_klima: AddToQueue prepends type get01 to URL https://accsmart.panasonic.com/device/group, no data, header X-APP-TYPE: 1
X-APP-VERSION: 1.10.0
Accept: application/json
Content-Type: application/json
User-Agent: G-RAC
X-User-Authorization: $sid, retry 1, initial queue len: 0
2021.06.09 17:16:14 4: wz_klima: CheckAuth prepended request get01 again before auth, retryCount 0 ...
2021.06.09 17:16:14 4: wz_klima: DoAuth called with Steps: 01
2021.06.09 17:16:14 5: wz_klima: AddToQueue prepends type auth01 to URL https://accsmart.panasonic.com/auth/login, data {"language": "0","loginId": "[Benutzer]","password": "[Passwort]"}, header X-APP-TYPE: 1
X-APP-VERSION: 1.10.0
Accept: application/json
Content-Type: application/json
User-Agent: G-RAC, retry 0, initial queue len: 1
2021.06.09 17:16:14 5: wz_klima: HandleSendQueue called from DoAuth, qlen = 2
2021.06.09 17:16:14 5: wz_klima: Replace called for type auth01, regex (?^:##PARAMS##), mode reading, empty value input: X-APP-TYPE: 1
X-APP-VERSION: 1.10.0
Accept: application/json
Content-Type: application/json
User-Agent: G-RAC
2021.06.09 17:16:14 5: wz_klima: Replace called for type auth01, regex (?^:##PARAMS##), mode reading, empty value input: {"language": "0","loginId": "[Benutzer]","password": "[Passwort]"}
2021.06.09 17:16:14 5: wz_klima: Replace called for type auth01, regex (?^:##PARAMS##), mode reading, empty value input: https://accsmart.panasonic.com/auth/login
2021.06.09 17:16:14 4: wz_klima: HandleSendQueue sends auth01 with timeout 2 to https://accsmart.panasonic.com/auth/login,
data: {"language": "0","loginId": "[Benutzer]","password": "[Passwort]"},
header: X-APP-TYPE: 1
X-APP-VERSION: 1.10.0
Accept: application/json
Content-Type: application/json
User-Agent: G-RAC
2021.06.09 17:16:14 5: wz_klima: StartQueueTimer called from HandleSendQueue sets internal timer to process queue in 1.000 seconds
2021.06.09 17:16:15 5: wz_klima: HandleSendQueue called from Fhem internal timer, qlen = 1
2021.06.09 17:16:15 5: wz_klima: StartQueueTimer called from ReadyForSending sets internal timer to process queue in 1.000 seconds, still waiting for reply to last request
2021.06.09 17:16:16 5: wz_klima: ReadCallback called from __ANON__
2021.06.09 17:16:16 4: wz_klima: Read callback: request type was auth01 retry 0,
header: HTTP/1.1 500
Date: Wed, 09 Jun 2021 15:16:16 GMT
Content-Type: application/json;charset=UTF-8
Content-Length: 47
Connection: close
Server: nginx
Cache-Control: no-cache, must-revalidate, body length 47
2021.06.09 17:16:16 5: wz_klima: Read callback: body
{"message":"Internal Server error","code":5000}
2021.06.09 17:16:16 4: wz_klima: BodyDecode is not decoding the response body (charset UTF-8, bodyDecode defaults to none)
2021.06.09 17:16:16 4: wz_klima: extracted JSON values to internal
2021.06.09 17:16:16 5: wz_klima: GetCookies is looking for Cookies
2021.06.09 17:16:16 5: wz_klima: ExtractSid called, context sid, num 01
2021.06.09 17:16:16 5: wz_klima: Checking SID with JSON uToken
2021.06.09 17:16:16 4: wz_klima: checking for redirects, code=500, ignore=0
2021.06.09 17:16:16 4: wz_klima: no redirects to handle
2021.06.09 17:16:16 5: wz_klima: Read callback sets LAST_REQUEST to auth01
2021.06.09 17:16:16 5: wz_klima: HandleSendQueue called from Fhem internal timer, qlen = 1
2021.06.09 17:16:16 5: wz_klima: Replace called for type get01, regex (?^:##PARAMS##), mode reading, empty value input: X-APP-TYPE: 1
X-APP-VERSION: 1.10.0
Accept: application/json
Content-Type: application/json
User-Agent: G-RAC
X-User-Authorization: $sid
2021.06.09 17:16:16 5: wz_klima: Replace called for type get01, regex (?^:##PARAMS##), mode reading, empty value input: https://accsmart.panasonic.com/device/group
2021.06.09 17:16:16 4: wz_klima: HandleSendQueue sends get01 with timeout 2 to https://accsmart.panasonic.com/device/group, No Data,
header: X-APP-TYPE: 1
X-APP-VERSION: 1.10.0
Accept: application/json
Content-Type: application/json
User-Agent: G-RAC
X-User-Authorization: $sid
2021.06.09 17:16:18 5: wz_klima: ReadCallback called from __ANON__
2021.06.09 17:16:18 4: wz_klima: Read callback: request type was get01 retry 1,
header: HTTP/1.1 401
Date: Wed, 09 Jun 2021 15:16:17 GMT
Content-Type: application/json;charset=UTF-8
Content-Length: 39
Connection: close
Server: nginx
Cache-Control: no-cache, must-revalidate, body length 39
2021.06.09 17:16:18 5: wz_klima: Read callback: body
{"message":"Token expires","code":4100}
2021.06.09 17:16:18 4: wz_klima: BodyDecode is not decoding the response body (charset UTF-8, bodyDecode defaults to none)
2021.06.09 17:16:18 4: wz_klima: extracted JSON values to internal
2021.06.09 17:16:18 5: wz_klima: GetCookies is looking for Cookies
2021.06.09 17:16:18 5: wz_klima: ExtractSid called, context get, num 01
2021.06.09 17:16:18 4: wz_klima: checking for redirects, code=401, ignore=0
2021.06.09 17:16:18 4: wz_klima: no redirects to handle
2021.06.09 17:16:18 5: wz_klima: Read callback sets LAST_REQUEST to get01
2021.06.09 17:16:18 5: wz_klima: Checking Auth with JSON message
2021.06.09 17:16:18 5: wz_klima: CheckAuth is replacing buffer to check with match: Token expires
2021.06.09 17:16:18 5: wz_klima: CheckAuth is checking buffer with ReAuthRegex (?^:Token expires)
2021.06.09 17:16:18 4: wz_klima: CheckAuth decided new authentication required
2021.06.09 17:16:18 4: wz_klima: Authentication still required but no retries left - did last authentication fail?
2021.06.09 17:16:18 5: wz_klima: ExtractReading for context get, num 01 - no individual parse definition
2021.06.09 17:16:18 5: wz_klima: Read starts parsing response to get01 with defined readings: 01,02,03,04,05
2021.06.09 17:16:18 5: wz_klima: ExtractReading actual_operate with json parameters_operate ...
2021.06.09 17:16:18 5: wz_klima: ExtractReading actual_operate with json parameters_operate did not match a key directly - trying regex match to create a list
2021.06.09 17:16:18 5: wz_klima: ExtractReading actual_operate with json /^parameters_operate/ got keylist
2021.06.09 17:16:18 5: wz_klima: ExtractReading actual_operate did not match
2021.06.09 17:16:18 5: wz_klima: ExtractReading actual_desired-temp with json parameters_temperatureSet ...
2021.06.09 17:16:18 5: wz_klima: ExtractReading actual_desired-temp with json parameters_temperatureSet did not match a key directly - trying regex match to create a list
2021.06.09 17:16:18 5: wz_klima: ExtractReading actual_desired-temp with json /^parameters_temperatureSet/ got keylist
2021.06.09 17:16:18 5: wz_klima: ExtractReading actual_desired-temp did not match
2021.06.09 17:16:18 5: wz_klima: ExtractReading actual_nanoe with json parameters_actualNanoe ...
2021.06.09 17:16:18 5: wz_klima: ExtractReading actual_nanoe with json parameters_actualNanoe did not match a key directly - trying regex match to create a list
2021.06.09 17:16:18 5: wz_klima: ExtractReading actual_nanoe with json /^parameters_actualNanoe/ got keylist
2021.06.09 17:16:18 5: wz_klima: ExtractReading actual_nanoe did not match
2021.06.09 17:16:18 5: wz_klima: ExtractReading actual_ecomode with json parameters_ecoMode ...
2021.06.09 17:16:18 5: wz_klima: ExtractReading actual_ecomode with json parameters_ecoMode did not match a key directly - trying regex match to create a list
2021.06.09 17:16:18 5: wz_klima: ExtractReading actual_ecomode with json /^parameters_ecoMode/ got keylist
2021.06.09 17:16:18 5: wz_klima: ExtractReading actual_ecomode did not match
2021.06.09 17:16:18 5: wz_klima: ExtractReading actual_operationmode with json parameters_operationMode ...
2021.06.09 17:16:18 5: wz_klima: ExtractReading actual_operationmode with json parameters_operationMode did not match a key directly - trying regex match to create a list
2021.06.09 17:16:18 5: wz_klima: ExtractReading actual_operationmode with json /^parameters_operationMode/ got keylist
2021.06.09 17:16:18 5: wz_klima: ExtractReading actual_operationmode did not match
2021.06.09 17:16:18 4: wz_klima: Read response to get01 didn't match any Reading
2021.06.09 17:16:18 5: wz_klima: HandleSendQueue called from ReadCallback, qlen = 0
2021.06.09 17:16:18 5: wz_klima: HandleSendQueue found no usable entry in queue

und dann noch das List:
Internals:
   BUSY       0
   CFGFN     
   DEF        https://accsmart.panasonic.com/device/group 180
   FUUID      60c0d850-f33f-08c6-1dd0-a671c6db1908a5ec
   Interval   180
   LastAuthTry 2021-06-09 17:18:39
   MainURL    https://accsmart.panasonic.com/device/group
   ModuleVersion 4.1.08 - 1.4.2021
   NAME       wz_klima
   NOTIFYDEV  global
   NR         2044
   NTFY_ORDER 50-wz_klima
   STATE      Ausgeschaltet
   TYPE       HTTPMOD
   value     
   CompiledRegexes:
   HttpUtils:
     NAME       
     addr       https://accsmart.panasonic.com:443
     auth       0
     buf       
     code       400
     compress   1
     conn       
     data       
     displayurl https://accsmart.panasonic.com/deviceStatus/[MODELL]+[DEVICE-ID]
     header     X-APP-TYPE: 1
X-APP-VERSION: 1.10.0
Accept: application/json
Content-Type: application/json
User-Agent: G-RAC
X-User-Authorization: $sid
     host       accsmart.panasonic.com
     httpheader HTTP/1.1 400
Date: Wed, 09 Jun 2021 15:19:29 GMT
Content-Type: text/html;charset=utf-8
Content-Length: 435
Connection: close
Server: nginx
Content-Language: en
     httpversion 1.1
     hu_blocking 0
     hu_filecount 1
     hu_port    443
     hu_portSfx
     ignoreredirects 1
     loglevel   4
     path       /deviceStatus/[MODELL]+[DEVICE-ID]
     protocol   https
     redirects  0
     timeout    2
     url        https://accsmart.panasonic.com/deviceStatus/[MODELL]+[DEVICE-ID]
     sslargs:
   QUEUE:
   READINGS:
   REQUEST:
     context    get
     data       
     header     X-APP-TYPE: 1
X-APP-VERSION: 1.10.0
Accept: application/json
Content-Type: application/json
User-Agent: G-RAC
X-User-Authorization: $sid
     ignoreredirects 0
     num        02
     retryCount 0
     type       get02
     url        https://accsmart.panasonic.com/deviceStatus/[MODELL]+[DEVICE-ID]
     value     
Attributes:
   disable    0
   enableCookies 1
   errLogLevelRegex 1
   event-on-change-reading actual_.*
   get01Name  Devicegroup
   get01URL   https://accsmart.panasonic.com/device/group
   get02ExtractAllJSON 0
   get02Name  Status
   get02URL   https://accsmart.panasonic.com/deviceStatus/[MODELL]+[DEVICE-ID]
   getHeader1 X-APP-TYPE: 1
   getHeader2 X-APP-VERSION: 1.10.0
   getHeader3 Accept: application/json
   getHeader4 Content-Type: application/json
   getHeader5 User-Agent: G-RAC
   getHeader6 X-User-Authorization: $sid
   group      Klimaanlage
   httpVersion 1.1
   reAuthJSON message
   reAuthRegex Token expires
   reading01JSON parameters_operate
   reading01Name actual_operate
   reading02JSON parameters_temperatureSet
   reading02Name actual_desired-temp
   reading03JSON parameters_actualNanoe
   reading03Name actual_nanoe
   reading04JSON parameters_ecoMode
   reading04Name actual_ecomode
   reading05JSON parameters_operationMode
   reading05Name actual_operationmode
   replacement01Mode reading
   replacement01Regex ##PARAMS##
   requestHeader01 X-APP-TYPE: 1
   requestHeader02 X-APP-VERSION: 1.10.0
   requestHeader03 Accept: application/json
   requestHeader04 Content-Type: application/json
   requestHeader05 User-Agent: G-RAC
   requestHeader06 X-User-Authorization: $sid
   room       Klimaanlage
   set01Data  {"deviceGuid": "[MODELL]+[DEVICE-ID]","parameters": {"operate": 1}}
   set01Name  PowerOn
   set01URL   https://accsmart.panasonic.com/deviceStatus/control
   set02Data  {"deviceGuid": "[MODELL]+[DEVICE-ID]","parameters": {"operate": 0}}
   set02Name  PowerOff
   set02URL   https://accsmart.panasonic.com/deviceStatus/control
   set03Data  {"deviceGuid": "[MODELL]+[DEVICE-ID]","parameters": {##PARAMS##}}
   set03Name  Control
   set03Replacement01Value wz_d_klima:params
   set03URL   https://accsmart.panasonic.com/deviceStatus/control
   setHeader1 X-APP-TYPE: 1
   setHeader2 X-APP-VERSION: 1.10.0
   setHeader3 Accept: application/json
   setHeader4 Content-Type: application/json
   setHeader5 User-Agent: G-RAC
   setHeader6 X-User-Authorization: $sid
   sid01Data  {"language": "0","loginId": "[Benutzer]","password": "[Passwort]"}
   sid01Header1 X-APP-TYPE: 1
   sid01Header2 X-APP-VERSION: 1.10.0
   sid01Header3 Accept: application/json
   sid01Header4 Content-Type: application/json
   sid01Header5 User-Agent: G-RAC
   sid01IdJSON uToken
   sid01URL   https://accsmart.panasonic.com/auth/login
   stateFormat {InternalVal("wz_d_klima", "STATE", "")}
   verbose    5


Muss ich hier schon irgendwelche IDs eingeben oder wo starte ich die Fehlersuche?
Raspberry Pi 3
CUL433: V 1.26.05 a-culfw Build: 311 (2018-12-09_19-12-53) CUL433 (F-Band: 433MHz)
freq:433.920MHz bWidth:325KHz rAmpl:42dB sens:4dB
Debmatic mit RPI-RF-MOD

Offline marboj

  • Full Member
  • ***
  • Beiträge: 129
Antw:Modul für Panasonic Comfort Cloud API?
« Antwort #62 am: 09 Juni 2021, 22:02:13 »
...
attr wz_klima get02URL https://accsmart.panasonic.com/deviceStatus/[MODELL]+[DEVICE-ID]
...
attr wz_klima set01Data {"deviceGuid": "[MODELL]+[DEVICE-ID]","parameters": {"operate": 1}}
attr wz_klima set01Name PowerOn
attr wz_klima set01URL https://accsmart.panasonic.com/deviceStatus/control
attr wz_klima set02Data {"deviceGuid": "[MODELL]+[DEVICE-ID]","parameters": {"operate": 0}}
attr wz_klima set02Name PowerOff
attr wz_klima set02URL https://accsmart.panasonic.com/deviceStatus/control
attr wz_klima set03Data {"deviceGuid": "[MODELL]+[DEVICE-ID]","parameters": {##PARAMS##}}


Hi,

ich habe bei MODELL und DEVICE-ID die Werte des Geräts hinterlegt...

und hier müssen deine Zugangsdaten von Panasonic rein:

attr wz_klima sid01Data {"language": "0","loginId": "[Benutzer]","password": "[Passwort]"}
Gruß
Marco
« Letzte Änderung: 09 Juni 2021, 22:05:26 von marboj »
meine FHEM-Konfiguration: Raspberry Pi4, BT-Dongle, CUL868, CeeBee II

Offline EinEinfach

  • Full Member
  • ***
  • Beiträge: 330
Antw:Modul für Panasonic Comfort Cloud API?
« Antwort #63 am: 10 Juni 2021, 11:02:18 »
Ich zitiere mich noch mal

Zitat
Versuche deine Defintion, bevor es läuft, so lean wie möglich zu halten. Also parse erstmal keine bestimmten Readings. Ich sehe im Log dass er nicht parsen kann, aber warum (JSON fehlt, Authentifizierung fehlerhaft, das sieht man leider nicht.)

Mache wie ich bereits unten geschrieben die Definition mit

https://accsmart.panasonic.com/device/group 180

Vorteil hier, die URL ist immer richtig, hier musst du keine speziellen Anpassungen (Device ID etc.) machen
und setze bitte den Attribut

attr DeinHTTPMODDevice extractAllJSON 1

und dann schauen wir mal was alles als Readings ankommt.
fhem auf Intel NUC6CAYH mit Proxmox im LXC (Debian 10), KNX mit knxd über MDT SCN-IP000.02, Buderus GB192-15i über KM100, Solaredge WR SE9K über Modbus-TCP

Offline teufelchen

  • Full Member
  • ***
  • Beiträge: 165
Antw:Modul für Panasonic Comfort Cloud API?
« Antwort #64 am: 10 Juni 2021, 11:26:28 »
Hallo,

danke für die schnelle Rückmeldung.

Ein Fehler von mir war, dass ich zwar meine Zugangsdaten eingegeben habe, jedoch nicht die eckigen Klammern entfernt habe.

Mit Verbose 5 konnte ich dann im Logfile meine Klimaanlagen schon mal sehen.

Bei set01Data, set02Data und set03Data habe ich nun das eingetragen was ich oben im Logfile bei deviceGuid steht, bei mir nur die ID ohne Modell
attr wz_klima set01Data {"deviceGuid": "C123456789","parameters": {"operate": 1}}
Damit Power on und Power off aus den Menü klappt, habe ich noch folgendes ergänzt:
attr wz_klima set01TextArg 1
attr wz_klima set02TextArg 1

Vielen Dank für die tolle Vorarbeit.

Da ich drei Anlagen habe, kommt als nächstes wie ich diese, möglichst ohne alles 3mal zu kopieren, definieren muss.
Raspberry Pi 3
CUL433: V 1.26.05 a-culfw Build: 311 (2018-12-09_19-12-53) CUL433 (F-Band: 433MHz)
freq:433.920MHz bWidth:325KHz rAmpl:42dB sens:4dB
Debmatic mit RPI-RF-MOD