Neues Modul: vitoconnect

Begonnen von andreas13, 24 November 2018, 17:42:33

Vorheriges Thema - Nächstes Thema

andreas13

Hallo,
ich werde im nächsten Release den Loglevel für die Meldung auf 4 setzen.
Viele Grüße
Andreas


Zitat von: bruen985 am 03 April 2021, 15:16:41
Hallo Andreas,

vielen Dank für die Korrektur!! Ich habe das Update gleich heute morgen durchgeführt.

Sieht auch gut aus, jedoch habe ich nun doch etliche Logeinträge der folgenden Natur innerhalb weniger Stunden:


2021.04.03 10:41:49 1: Heizung - Array Workaround for Property: heating.power.consumption yearValueReadAt
2021.04.03 10:41:49 1: Heizung - Array Workaround for Property: heating.power.consumption weekValueReadAt
2021.04.03 10:41:49 1: Heizung - Array Workaround for Property: heating.power.consumption dayValueReadAt
2021.04.03 10:41:49 1: Heizung - Array Workaround for Property: heating.power.consumption monthValueReadAt
2021.04.03 10:41:49 1: Heizung - Array Workaround for Property: heating.power.consumption unit
2021.04.03 11:11:50 1: Heizung - Array Workaround for Property: heating.power.consumption yearValueReadAt
2021.04.03 11:11:50 1: Heizung - Array Workaround for Property: heating.power.consumption weekValueReadAt
2021.04.03 11:11:50 1: Heizung - Array Workaround for Property: heating.power.consumption dayValueReadAt
2021.04.03 11:11:50 1: Heizung - Array Workaround for Property: heating.power.consumption unit
2021.04.03 11:11:50 1: Heizung - Array Workaround for Property: heating.power.consumption monthValueReadAt
2021.04.03 11:41:52 1: Heizung - Array Workaround for Property: heating.power.consumption dayValueReadAt
2021.04.03 11:41:52 1: Heizung - Array Workaround for Property: heating.power.consumption monthValueReadAt
2021.04.03 11:41:52 1: Heizung - Array Workaround for Property: heating.power.consumption unit
2021.04.03 11:41:52 1: Heizung - Array Workaround for Property: heating.power.consumption weekValueReadAt
2021.04.03 11:41:52 1: Heizung - Array Workaround for Property: heating.power.consumption yearValueReadAt
2021.04.03 12:11:53 1: Heizung - Array Workaround for Property: heating.power.consumption yearValueReadAt
2021.04.03 12:11:53 1: Heizung - Array Workaround for Property: heating.power.consumption weekValueReadAt
2021.04.03 12:11:53 1: Heizung - Array Workaround for Property: heating.power.consumption dayValueReadAt
2021.04.03 12:11:53 1: Heizung - Array Workaround for Property: heating.power.consumption monthValueReadAt
2021.04.03 12:11:53 1: Heizung - Array Workaround for Property: heating.power.consumption unit
2021.04.03 12:42:05 1: Heizung - Array Workaround for Property: heating.power.consumption dayValueReadAt
2021.04.03 12:42:05 1: Heizung - Array Workaround for Property: heating.power.consumption unit
2021.04.03 12:42:05 1: Heizung - Array Workaround for Property: heating.power.consumption monthValueReadAt
2021.04.03 12:42:05 1: Heizung - Array Workaround for Property: heating.power.consumption yearValueReadAt
2021.04.03 12:42:05 1: Heizung - Array Workaround for Property: heating.power.consumption weekValueReadAt
2021.04.03 13:12:06 1: Heizung - Array Workaround for Property: heating.power.consumption monthValueReadAt
2021.04.03 13:12:06 1: Heizung - Array Workaround for Property: heating.power.consumption unit
2021.04.03 13:12:06 1: Heizung - Array Workaround for Property: heating.power.consumption dayValueReadAt
2021.04.03 13:12:06 1: Heizung - Array Workaround for Property: heating.power.consumption weekValueReadAt
2021.04.03 13:12:06 1: Heizung - Array Workaround for Property: heating.power.consumption yearValueReadAt
2021.04.03 13:42:07 1: Heizung - Array Workaround for Property: heating.power.consumption dayValueReadAt
2021.04.03 13:42:07 1: Heizung - Array Workaround for Property: heating.power.consumption unit
2021.04.03 13:42:07 1: Heizung - Array Workaround for Property: heating.power.consumption monthValueReadAt
2021.04.03 13:42:07 1: Heizung - Array Workaround for Property: heating.power.consumption weekValueReadAt
2021.04.03 13:42:07 1: Heizung - Array Workaround for Property: heating.power.consumption yearValueReadAt
2021.04.03 14:12:08 1: Heizung - Array Workaround for Property: heating.power.consumption weekValueReadAt
2021.04.03 14:12:08 1: Heizung - Array Workaround for Property: heating.power.consumption yearValueReadAt
2021.04.03 14:12:08 1: Heizung - Array Workaround for Property: heating.power.consumption dayValueReadAt
2021.04.03 14:12:08 1: Heizung - Array Workaround for Property: heating.power.consumption unit
2021.04.03 14:12:08 1: Heizung - Array Workaround for Property: heating.power.consumption monthValueReadAt
2021.04.03 14:42:10 1: Heizung - Array Workaround for Property: heating.power.consumption dayValueReadAt
2021.04.03 14:42:10 1: Heizung - Array Workaround for Property: heating.power.consumption monthValueReadAt
2021.04.03 14:42:10 1: Heizung - Array Workaround for Property: heating.power.consumption unit
2021.04.03 14:42:10 1: Heizung - Array Workaround for Property: heating.power.consumption weekValueReadAt
2021.04.03 14:42:10 1: Heizung - Array Workaround for Property: heating.power.consumption yearValueReadAt


Kann man das irgenwie etwas eindämmen?

Gruß
Oliver
Maintainer des Vitoconnect Moduls
In Betrieb: FritzBox 7590, Homematic
piko Wechelrichter (HTTPMOD). Sonos ....
noch: IT

bruen985

Hallo Andreas,

Klasse! danke Dir!

Gruß
Oliver
- FHEM v6 | Rasberry PI 4
- ESP3 Enocean USB-Stick
- V 3.3.2.1-rc9 SIGNALduino cc1101, v3.4.4
- MQTT2_FHEM_Server

FlorianSenne

Hallo,

bei mir führt das Modul nach ein paar Sekunden zum Absturz von FHEM.....ich schaffe es gerade einen Raum zuzuordnen und schon schmiert es ab und weg ist das Vitoconnect-Device wieder :(

Ist das Problem bekannt?
Danke und VG
Florian

Udomatic

Zitat von: FlorianSenne am 08 April 2021, 20:11:59
Hallo,

bei mir führt das Modul nach ein paar Sekunden zum Absturz von FHEM.....ich schaffe es gerade einen Raum zuzuordnen und schon schmiert es ab und weg ist das Vitoconnect-Device wieder :(

Ist das Problem bekannt?
Danke und VG
Florian

Bei mir läuft es. Lies mal die Beiträge vorher aus der letzten Woche. Wann hast du dein Modul zuletzt geupdatet?
2x Raspberry 3B+, 1x Raspberry 4, Signalduino 433 (Somfy), CUL_HM (HM-MOD-RPI-PCB), MQTT, Hue, ConBee 2, Sonos, AVM DECT, Netatmo, eufy, Nuki,

FlorianSenne

Zitat von: Udomatic am 08 April 2021, 20:38:50
Bei mir läuft es. Lies mal die Beiträge vorher aus der letzten Woche. Wann hast du dein Modul zuletzt geupdatet?

Hallo,

danke für den Hinweis. Hab den Fehler gefunden. Wieso auch immer hat ein Modul das Update allg. aufgehalten, weshalb die Module ab ca 50XXX.pm nicht mehr aktualisiert wurden. Natürlich auch das Vitoconnect....nun konnte ich den Fehler beheben....geht wunderbar.

Danke und Sorry für die Umstände.

VG
Florian

Thomas0401

#575
Guten Morgen,

ich habe auch ein Problem mit Vitoconnect. Seit heute bekommen ich folgende Meldung im Logfile

2021.05.02 09:34:16 1: PERL WARNING: Use of uninitialized value $access_token in string ne at ./FHEM/98_vitoconnect.pm line 1494.
2021.05.02 09:34:16 1: vitoconnect - Access Token: nicht definiert


update all durchgeführt und das Modul neu angelegt aber leider bleibt es bei dieser Meldung.

Kann mir da jemand helfen?

VG Thomas

andreas13

Hallo Thomas,
lies bitte mal Artikel https://forum.fhem.de/index.php/topic,93664.msg1065705.html#msg1065705 und schick einen aussagekräftigen Logauszug, sonst kann Dir vermutlich keiner hier helfen.

Viele Grüße
Andreas

Zitat von: Thomas0401 am 02 Mai 2021, 10:05:14
Guten Morgen,

ich habe auch ein Problem mit Vitoconnect. Seit heute bekommen ich folgende Meldung im Logfile

2021.05.02 09:34:16 1: PERL WARNING: Use of uninitialized value $access_token in string ne at ./FHEM/98_vitoconnect.pm line 1494.
2021.05.02 09:34:16 1: vitoconnect - Access Token: nicht definiert


update all durchgeführt und das Modul neu angelegt aber leider bleibt es bei dieser Meldung.

Kann mir da jemand helfen?

VG Thomas
Maintainer des Vitoconnect Moduls
In Betrieb: FritzBox 7590, Homematic
piko Wechelrichter (HTTPMOD). Sonos ....
noch: IT

Thomas0401

Hallo Andreas,

Artikel gelesen und mal ein List gemacht

Internals:
   .FhemMetaInternals 1
   .access_token
   .code      4
   .gw       
   .installation
   DEF        xxxxx@xxxxxx xxxxxx 300
   FUUID      608e6911-f33f-20b7-56a6-8ff13cbbf8e9e633
   FVERSION   98_vitoconnect.pm:0.241550/2021-04-05
   NAME       Vitodens300
   NR         156
   STATE      ???
   TYPE       vitoconnect
   counter    0
   intervall  300
   login      ok
   user       xxxxx@xxxxxx
   .attreocr:
     .*
Attributes:
   DbLogExclude .*
   event-on-change-reading .*
   room       KG->Technikraum
   verbose    4


Modul mit update 98_vitoconnect.pm durchgeführt und dann kommt das

fhem
UPD FHEM/98_vitoconnect.pm

New entries in the CHANGED file:
- bugfix:  10_WS980: v1.3.0 - fix invalid values like 0xffff


Das habe ich dann nach dem Update des Moduls aus dem Logfile
2021.05.03 14:19:53 1: PERL WARNING: Use of uninitialized value $value in string eq at fhem.pl line 4905.
2021.05.03 14:19:54 4: Vitodens300 - getCodeCallback went ok
2021.05.03 14:19:54 4: Vitodens300 - code: 4
2021.05.03 14:19:54 2: AttrTemplates: got 227 entries
2021.05.03 14:19:55 4: Vitodens300 - getAccessTokenCallback went ok
2021.05.03 14:19:55 1: PERL WARNING: Use of uninitialized value $access_token in string ne at ./FHEM/98_vitoconnect.pm line 1494.
2021.05.03 14:19:55 1: Vitodens300 - Access Token: nicht definiert



Kannst Du mir auf die Sprünge helfen wie ich einen aussagekräftigen Logfile bekomme?

VG Thomas

andreas13

Hallo Thomas,
hast Du nach dem Update FHEM mal neu gestartet? Dann schick nochmal ein Auszug aus dem Logfile beginnend mit den Eintrag "2021.05.05 09:39:28 4: vitoconnect - GetUpdate called ...".
Was ich schon sagen kann ist, dass "code: 4" nicht gut aussieht. Das müsste so aussehen:
2021.05.05 09:39:29 4: vitoconnect - code: fjVB7_Av_nKFMX-sMorUI33zAuItcmZJwd1pBMhfFG4
Also muss vorher schon was schief gehen. Vermutlich beim Einloggen. Dazu sollte es aber vorher schon eine Fehlermeldung geben. Wenn da keine Fehlermeldung ist, dann stell verbose auf "5" und mach nochmal eine Logauszug.
Viele Grüße
Andreas


Zitat von: Thomas0401 am 03 Mai 2021, 14:32:56
Hallo Andreas,

Artikel gelesen und mal ein List gemacht

Internals:
   .FhemMetaInternals 1
   .access_token
   .code      4
   .gw       
   .installation
   DEF        xxxxx@xxxxxx xxxxxx 300
   FUUID      608e6911-f33f-20b7-56a6-8ff13cbbf8e9e633
   FVERSION   98_vitoconnect.pm:0.241550/2021-04-05
   NAME       Vitodens300
   NR         156
   STATE      ???
   TYPE       vitoconnect
   counter    0
   intervall  300
   login      ok
   user       xxxxx@xxxxxx
   .attreocr:
     .*
Attributes:
   DbLogExclude .*
   event-on-change-reading .*
   room       KG->Technikraum
   verbose    4


Modul mit update 98_vitoconnect.pm durchgeführt und dann kommt das

fhem
UPD FHEM/98_vitoconnect.pm

New entries in the CHANGED file:
- bugfix:  10_WS980: v1.3.0 - fix invalid values like 0xffff


Das habe ich dann nach dem Update des Moduls aus dem Logfile
2021.05.03 14:19:53 1: PERL WARNING: Use of uninitialized value $value in string eq at fhem.pl line 4905.
2021.05.03 14:19:54 4: Vitodens300 - getCodeCallback went ok
2021.05.03 14:19:54 4: Vitodens300 - code: 4
2021.05.03 14:19:54 2: AttrTemplates: got 227 entries
2021.05.03 14:19:55 4: Vitodens300 - getAccessTokenCallback went ok
2021.05.03 14:19:55 1: PERL WARNING: Use of uninitialized value $access_token in string ne at ./FHEM/98_vitoconnect.pm line 1494.
2021.05.03 14:19:55 1: Vitodens300 - Access Token: nicht definiert



Kannst Du mir auf die Sprünge helfen wie ich einen aussagekräftigen Logfile bekomme?

VG Thomas
Maintainer des Vitoconnect Moduls
In Betrieb: FritzBox 7590, Homematic
piko Wechelrichter (HTTPMOD). Sonos ....
noch: IT

Thomas0401

#579
Hallo Andreas,

ich habe gerade nochmal das Update gemacht und FHEM neugestartet. Folgender Eintrag im Logfile
2021.05.05 15:15:22 4: Vitodens300- getCodeCallback went ok
2021.05.05 15:15:22 5: Vitodens300 - Received response:     








 
<!DOCTYPE html>
<html>
<head>
<title>Viessmann Login</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="icon" href="/login/resources/nevislogrend/applications/IDM_OIDC_IDP_V2/webdata/images/favicon.png" type="image/png">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"/>
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900"/>
<link rel="stylesheet" href="/login/resources/nevislogrend/applications/IDM_OIDC_IDP_V2/webdata/css/material.min.css"/>
    <link rel="stylesheet" href="/login/resources/nevislogrend/applications/IDM_OIDC_IDP_V2/webdata/css/customerRegistration.css"/>
        <script src="/login/resources/nevislogrend/applications/IDM_OIDC_IDP_V2/webdata/js/material.min.js"></script>
        <script src="/login/resources/nevislogrend/applications/IDM_OIDC_IDP_V2/webdata/js/showpw.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div class="b2b-main-background">     <div class="font-size-20px b2b-regestration-headline">             <div class="mdl-grid mdl-grid--no-spacing">                 <div class="b2b-regestration-headline-item" style="margin-left:24px">Login</div>
            </div>         </div>
        <div class="b2b-main-container">             <div class="b2b-sub-container">                 <div class="mdl-grid mdl-grid--no-spacing">                     <div class="mdl-layout-spacer"></div>
                    <img src="/login/resources/nevislogrend/applications/IDM_OIDC_IDP_V2/webdata/images/viessmann-logo.png" alt="viessmann-logo" class="b2b-vi-image"/>
                    <div class="mdl-layout-spacer"></div>
                </div>                 <form class="b2b-form-space" id="AuthUidPwDialog" name="AuthUidPwDialog" method="POST" target="_self" action="https://iam.viessmann.com/idp/v2/authorize?client_id=79742319e39245de5f91d15ff4cac2a8&scope=openid&redirect_uri=vicare://oauth-callback/everest&response_type=code" autocomplete="off" accept-charset="UTF-8"> 
<div class="mdl-grid mdl-grid--no-spacing">
    <div class="mdl-layout-spacer"></div>
        <div class="error-color normal-text font-size-26px opacity-87 b2b-form-space b2b-line-height"><p>Your account has been suspended due to repeated failed authentication.</p></div>
    <div class="mdl-layout-spacer"></div>
</div>











<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">   <input class="mdl-textfield__input" autocorrect="off" autocapitalize="off" autocomplete="off" spellcheck="false"
      type="text" id="isiwebuserid" name="isiwebuserid" size="20" maxlength="255" tabindex="2">
  <label class="mdl-textfield__label" for="isiwebuserid">User name</label>
</div>











<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">   <input type="password" name="hidden-password" value="00" tabindex="-1" style="display:none" autocomplete="off">
  <input class="mdl-textfield__input" autocorrect="off" autocapitalize="off" autocomplete="off" spellcheck="false"
      type="password" id="isiwebpasswd" name="isiwebpasswd" size="20" maxlength="255" tabindex="3">
  <label class="mdl-textfield__label" for="isiwebpasswd">Password</label>
  <i class="material-icons mdl-textfield__label__icon" ontouchstart="spez.changePWType('isiwebpasswd', 'click', this);" ontouchend="spez.changePWType('isiwebpasswd', 'focus', this);" onmousedown="spez.changePWType('isiwebpasswd', 'click', this);" onmouseup="spez.changePWType('isiwebpasswd', 'focus', this);" onmouseout="spez.changePWType('isiwebpasswd', 'focus', this);">visibility_off</i>
</div>










<div class="mdl-grid mdl-grid--no-spacing" style="padding-top:16px">   <div class="mdl-cell" style="width:auto">   <label class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect" for="checkbox">     <input type="checkbox" name="stayloggedin" value="Stay logged on" tabindex="4" class="mdl-checkbox__input" id="checkbox" style="margin-left:0">
    <span class="mdl-checkbox__label">Stay logged on</span>
  </label>   </div>










                                                <div class="mdl-layout-spacer"></div>
        <div class="mdl-cell" style="width:auto;margin-top:5px">           <a class="forgot-username-password" id="link_pwlost" title="Forgotten password" href="/selfservice/passwordlost">Forgotten password</a>
        </div>         </div>                 










<div class="mdl-grid mdl-grid--no-spacing" style="padding-top:60px">   <div class="mdl-layout-spacer"></div>
  <div class="mdl-cell" style="width:auto">     <button class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored login-button" type="submit" name="submit" value="LOGIN" id="loginButton">LOGIN</button>
  </div> </div>


                </form>                 <script type="text/javascript">document.forms['AuthUidPwDialog'].elements[0].focus()</script>
            </div>         </div>         <div class="mdl-layout-spacer"></div>     </div> 
<script src="/login/resources/nevislogrend/applications/IDM_OIDC_IDP_V2/webdata/js/jquery-3.3.1.min.js"></script>
<script src="/login/resources/nevislogrend/applications/IDM_OIDC_IDP_V2/webdata/js/dropdown.js"></script>
        <script src="/login/resources/nevislogrend/applications/IDM_OIDC_IDP_V2/webdata/js/nevislogrend.js"></script>
</body> </html>




2021.05.05 15:15:22 4: Vitodens300 - code: 4
2021.05.05 15:15:22 4: Vitodens300- getAccessTokenCallback went ok
2021.05.05 15:15:22 5: Vitodens300- Received response: {"error":"invalid-token-request"}

2021.05.05 15:15:22 1: Vitodens300- Access Token: nicht definiert

Thomas0401

Hallo Andreas,

ich habe mal meine App Vicare gelöscht und nach der Neuinstallation (Passwort vergessen) angeklickt. Danach das Passwort meines Viessmann-Partner-Login vergeben und mich dann in FHEM mit dem  Passwort vom Partner-Login angemeldet und es hat funktioniert. Keine Ahnung warum.

Vielleicht hängt das mit dem neuen Partnerportal zusammen, denn ich sehe im Grunde in dem Portal all meine montierten Anlagen von Viessmann.


Vielen Dank und Grüße Thomas


andreas13

Hallo Thomas,
sehr merkwürdig. Leider kann ich das nicht reproduzieren, da ich keinen Partneraccount habe, aber wenn es jetzt bei Dir funktioniert ist es ja gut.

Normalerweise muss das so aussehen:

2021.05.11 07:19:57 4: vitoconnect - getCodeCallback went ok
2021.05.11 07:19:57 4: vitoconnect - Received response: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML><HEAD>
<TITLE>302 Found</TITLE>
<META name="robots" content="noindex" /></HEAD><BODY>
<H1>Found</H1>
The document has moved <A HREF="vicare://oauth-callback/everest?code=Z80gLuC5wRbjdOMCuhG69QnmhCCieKgpzrSvNvhImPs">here</A>.
</BODY></HTML>




Zitat von: Thomas0401 am 05 Mai 2021, 16:10:07
Hallo Andreas,

ich habe mal meine App Vicare gelöscht und nach der Neuinstallation (Passwort vergessen) angeklickt. Danach das Passwort meines Viessmann-Partner-Login vergeben und mich dann in FHEM mit dem  Passwort vom Partner-Login angemeldet und es hat funktioniert. Keine Ahnung warum.

Vielleicht hängt das mit dem neuen Partnerportal zusammen, denn ich sehe im Grunde in dem Portal all meine montierten Anlagen von Viessmann.


Vielen Dank und Grüße Thomas
Maintainer des Vitoconnect Moduls
In Betrieb: FritzBox 7590, Homematic
piko Wechelrichter (HTTPMOD). Sonos ....
noch: IT

Strictor

Hi Andreas,

erstmal vielen Dank für das tolle Modul! Ich habe damit eine super Überwachung und Auswertung meiner Wärmepumpenanlage relasieren können und konnte die Effizenz der gesamten Alage mit den gewonnen Daten ordentlich optimieren.

Für kommende Releases hätte ich eine Anregung, und zwar gibt es ja bereits das Reading "WW-Temperatur_2", hinter dem sich "heating.dhw.temperature.temp2" verbirgt.

In der enteties.json sieht der Endpoint so aus:

'class' => [
               'heating.dhw.temperature.temp2',
               'feature'
             ],
  'entities' => [
                  {
                    'rel' => [
                               'http://schema.viessmann.com/link-relations#feature-meta-information',
                               'https://wiki.viessmann.com/display/VPL/Relations#Relations-feature-meta-information',
                               'https://wiki.viessmann.com/display/VPL/Amounts#Amounts-unique'
                             ],
                    'properties' => {
                                      'apiVersion' => 1,
                                      'gatewayId' => '7571381736894203',
                                      'uri' => 'https://api.viessmann-platform.io/iot/v1/equipment/installations/171085/gateways/7571381736894203/devices/0/features/heating.dhw.temperature.temp2',
                                      'isReady' => $VAR1->{'entities'}[0]{'properties'}{'isEnabled'},
                                      'isEnabled' => $VAR1->{'entities'}[0]{'properties'}{'isEnabled'},
                                      'timestamp' => '2021-05-04T11:43:07.143Z',
                                      'feature' => 'heating.dhw.temperature.temp2',
                                      'deviceId' => '0'
                                    }
                  }
                ],
  'actions' => [
                 {
                   'fields' => [
                                 {
                                   'name' => 'temperature',
                                   'min' => 10,
                                   'required' => $VAR1->{'entities'}[0]{'properties'}{'isEnabled'},
                                   'max' => 60,
                                   'stepping' => 1,
                                   'type' => 'number'
                                 }
                               ],
                   'title' => 'setTargetTemperature',
                   'name' => 'setTargetTemperature',
                   'type' => 'application/json',
                   'href' => 'https://api.viessmann-platform.io/operational-data/v1/installations/171085/gateways/7571381736894203/devices/0/features/heating.dhw.temperature.temp2/setTargetTemperature',
                   'method' => 'POST',
                   'isExecutable' => $VAR1->{'entities'}[0]{'properties'}{'isEnabled'}
                 }
               ],
  'properties' => {
                    'value' => {
                                 'type' => 'number',
                                 'value' => 45,
                                 'unit' => ''
                               }
                  },
  'links' => [
               {
                 'href' => 'https://api.viessmann-platform.io/operational-data/v1/installations/171085/gateways/7571381736894203/devices/0/features/heating.dhw.temperature.temp2',
                 'rel' => [
                            'self'
                          ]
               },
               {
                 'href' => 'https://api.viessmann-platform.io/operational-data/v1/installations/171085/gateways/7571381736894203/devices/0/features',
                 'rel' => [
                            'up'
                          ]
               },
               {
                 'href' => '/operational-data/installations/171085/gateways/7571381736894203/devices/0/features/heating.dhw.temperature.temp2',
                 'rel' => [
                            'http://schema.viessmann.com/link-relations#live-updates',
                            'https://wiki.viessmann.com/display/VPL/Relations#Relations-live-updates'
                          ]
               }
             ]


Es gäbe also die Möglichkeit, die Temp2 analog zur normalem WW Temperatur zu setzen.
Ich würde mich sehr darüber freuen, wenn es dafür eine set Methode im Modul geben würde, denn ich würde gerne an warmen Tagen in bestimmten Zeitfenstern den WW Speicher höher Laden um die Effizenz der Anlage weiter zu steigern.

Liebe Grüße
Max

andreas13

Hallo Max,
ja das ist möglich. Ich werde es im nächsten Release implementieren. Kannst Du das dann testen? Meine Heizung hat das nämlich nicht und daher kann ich es auch nicht testen.
Ich habe außerdem keine Ahnung, was der Unterschied zwischen Haupt-/Solltemperatur und WW-Temperatur_2 ist. Ich hoffe, Du weißt, was Du tust :-)

Viele Grüße
Andreas


Zitat von: Strictor am 11 Mai 2021, 10:18:32
Hi Andreas,

erstmal vielen Dank für das tolle Modul! Ich habe damit eine super Überwachung und Auswertung meiner Wärmepumpenanlage relasieren können und konnte die Effizenz der gesamten Alage mit den gewonnen Daten ordentlich optimieren.

Für kommende Releases hätte ich eine Anregung, und zwar gibt es ja bereits das Reading "WW-Temperatur_2", hinter dem sich "heating.dhw.temperature.temp2" verbirgt.

In der enteties.json sieht der Endpoint so aus:

'class' => [
               'heating.dhw.temperature.temp2',
               'feature'
             ],
  'entities' => [
                  {
                    'rel' => [
                               'http://schema.viessmann.com/link-relations#feature-meta-information',
                               'https://wiki.viessmann.com/display/VPL/Relations#Relations-feature-meta-information',
                               'https://wiki.viessmann.com/display/VPL/Amounts#Amounts-unique'
                             ],
                    'properties' => {
                                      'apiVersion' => 1,
                                      'gatewayId' => '7571381736894203',
                                      'uri' => 'https://api.viessmann-platform.io/iot/v1/equipment/installations/171085/gateways/7571381736894203/devices/0/features/heating.dhw.temperature.temp2',
                                      'isReady' => $VAR1->{'entities'}[0]{'properties'}{'isEnabled'},
                                      'isEnabled' => $VAR1->{'entities'}[0]{'properties'}{'isEnabled'},
                                      'timestamp' => '2021-05-04T11:43:07.143Z',
                                      'feature' => 'heating.dhw.temperature.temp2',
                                      'deviceId' => '0'
                                    }
                  }
                ],
  'actions' => [
                 {
                   'fields' => [
                                 {
                                   'name' => 'temperature',
                                   'min' => 10,
                                   'required' => $VAR1->{'entities'}[0]{'properties'}{'isEnabled'},
                                   'max' => 60,
                                   'stepping' => 1,
                                   'type' => 'number'
                                 }
                               ],
                   'title' => 'setTargetTemperature',
                   'name' => 'setTargetTemperature',
                   'type' => 'application/json',
                   'href' => 'https://api.viessmann-platform.io/operational-data/v1/installations/171085/gateways/7571381736894203/devices/0/features/heating.dhw.temperature.temp2/setTargetTemperature',
                   'method' => 'POST',
                   'isExecutable' => $VAR1->{'entities'}[0]{'properties'}{'isEnabled'}
                 }
               ],
  'properties' => {
                    'value' => {
                                 'type' => 'number',
                                 'value' => 45,
                                 'unit' => ''
                               }
                  },
  'links' => [
               {
                 'href' => 'https://api.viessmann-platform.io/operational-data/v1/installations/171085/gateways/7571381736894203/devices/0/features/heating.dhw.temperature.temp2',
                 'rel' => [
                            'self'
                          ]
               },
               {
                 'href' => 'https://api.viessmann-platform.io/operational-data/v1/installations/171085/gateways/7571381736894203/devices/0/features',
                 'rel' => [
                            'up'
                          ]
               },
               {
                 'href' => '/operational-data/installations/171085/gateways/7571381736894203/devices/0/features/heating.dhw.temperature.temp2',
                 'rel' => [
                            'http://schema.viessmann.com/link-relations#live-updates',
                            'https://wiki.viessmann.com/display/VPL/Relations#Relations-live-updates'
                          ]
               }
             ]


Es gäbe also die Möglichkeit, die Temp2 analog zur normalem WW Temperatur zu setzen.
Ich würde mich sehr darüber freuen, wenn es dafür eine set Methode im Modul geben würde, denn ich würde gerne an warmen Tagen in bestimmten Zeitfenstern den WW Speicher höher Laden um die Effizenz der Anlage weiter zu steigern.

Liebe Grüße
Max
Maintainer des Vitoconnect Moduls
In Betrieb: FritzBox 7590, Homematic
piko Wechelrichter (HTTPMOD). Sonos ....
noch: IT

Strictor

Hi Andreas,

super, danke! Na klar werde ich das gerne durchtesten und dann hier die Ergebnisse teilen, falls noch jemand vor der Herausforderung steht oder ähnliches plant ;-)


Liebe Grüße
Max