Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Visualisierung
    4. [erledigt] jarvis Geräte-Konfiguration / Values berechnen

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    [erledigt] jarvis Geräte-Konfiguration / Values berechnen

    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Stratege82 last edited by Stratege82

      Moin,

      ich bin noch recht frisch mit IOBroker und hoffe keine "blöden" Fragen zu stellen - Forumsuche und Google brachten keine eindeutige Hilfe - Ich hoffe das können wir hiermit ändnern:

      Ich habe einen Wechselrichter im Einsatz und möchte gerne einige Werte per Jarvis-VIS ausgeben "leider" sind die Werte in Watt und Wattstunden als Value gegeben ich möchte sie aber in kW bzw kWh ausgeben.

      1. Ist es möglich in der Geräteverwaltung von Jarvis die Werte aus den Datenpunkten durch 1000 zu teilen und dann auf 2-3 Dezimalstellen kürzen (an dieser Stelle brauche ich keine Milliwattstunden 😁 )

      2. Kann ich aus mehreren Datenpunkten einen Wert errechnen? z.B. Datenpunkt.Netzbezug_aktuell+(Datenpunkt.PV_aktuell-Datenpunkt_Einspeisung_aktuell) = anzuzeigender Wert in VIS (Aktueller Gesamtverbrauch)

      Vielleicht hat hier jemand hier ein paar konstruktive Ideen für mich! Vielen Dank für eure Unterstützung!

      A 1 Reply Last reply Reply Quote 0
      • A
        Adnim @Stratege82 last edited by

        @stratege82
        Hi!
        du kannst doch einfach mit Bsp. Blocky rechnen das in nen Datenpunkt schreiben, und diesen in Jarvis anzeigen lassen. Dann steht dir die volle Skript Power offen.

        S 1 Reply Last reply Reply Quote 0
        • H
          Hansi1234 last edited by

          oder den linkeddevices Adapter nehmen. Damit kannst auch umrechnen

          paul53 1 Reply Last reply Reply Quote 0
          • paul53
            paul53 @Hansi1234 last edited by

            @hansi1234 sagte: oder den linkeddevices Adapter nehmen. Damit kannst auch umrechnen

            ... oder Alias-Datenpunkte.

            S 1 Reply Last reply Reply Quote 1
            • S
              Stratege82 @Adnim last edited by

              @adnim

              Hey, sorry für die späte Meldung aber ich habe mir das mit dem Blockly mal angeguckt (muss man auch erstmal verstehen den Einsatz und die Funktion) - Ich habe jetzt ein funktionierendes Script, dass das tut was es soll. Vielen Dank für die Idee. Vielleicht kann nochmal jemand nen Blick drauf werfen ob das ein sinniger Aufbau ist oder ob es deutlich schlanker geht:

              <xml xmlns="https://developers.google.com/blockly/xml">
               <variables>
                 <variable id="H`^6^LTC{wKU,q]_R:ib">Zwischenspeicher</variable>
               </variables>
               <block type="on_ext" id="m`C!:d3!$?Ztqc)%Zi;g" x="-513" y="-1938">
                 <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                 <field name="CONDITION">ne</field>
                 <field name="ACK_CONDITION"></field>
                 <value name="OID0">
                   <shadow type="field_oid" id="qm0b8N2gz[X{P/]viNyL">
                     <field name="oid">fronius.0.powerflow.P_Load</field>
                   </shadow>
                 </value>
                 <statement name="STATEMENT">
                   <block type="control" id="2!z/eOR(O#$iYX/35Ffu">
                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                     <field name="OID">javascript.0.Eigenes.Energie.PV_Aktuell</field>
                     <field name="WITH_DELAY">FALSE</field>
                     <value name="VALUE">
                       <block type="math_rndfixed" id="[al~lG06[3%qT+:Wx9uv" inline="false">
                         <field name="n">3</field>
                         <value name="x">
                           <shadow type="math_number" id="1zNL,F^wS@+E*TKVjX-%">
                             <field name="NUM">3.1234</field>
                           </shadow>
                           <block type="math_arithmetic" id="`P_v)2o:[l$Fy(;Op/*@" inline="false">
                             <field name="OP">DIVIDE</field>
                             <value name="A">
                               <shadow type="math_number" id="baanC3U0lX^zA*;TH|Tf">
                                 <field name="NUM">0</field>
                               </shadow>
                               <block type="get_value" id="8ldIz/JR6I2TV0v?M}+8">
                                 <field name="ATTR">val</field>
                                 <field name="OID">fronius.0.powerflow.P_PV</field>
                               </block>
                             </value>
                             <value name="B">
                               <shadow type="math_number" id="h~NMCH;DxY)`JJ!;gxv=">
                                 <field name="NUM">1000</field>
                               </shadow>
                             </value>
                           </block>
                         </value>
                       </block>
                     </value>
                     <next>
                       <block type="control" id="lL6f#YO,}d5?ragISBwF">
                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                         <field name="OID">javascript.0.Eigenes.Energie.Netz_Aktuell</field>
                         <field name="WITH_DELAY">FALSE</field>
                         <value name="VALUE">
                           <block type="math_rndfixed" id="FFWQYGt_z1vo0}5=bFA^" inline="false">
                             <field name="n">3</field>
                             <value name="x">
                               <shadow type="math_number" id="?CN?YI)Cwky@^!9o/*tX">
                                 <field name="NUM">3.1234</field>
                               </shadow>
                               <block type="math_arithmetic" id=")zR1z-7L^Xw_i/+5S^dI" inline="false">
                                 <field name="OP">DIVIDE</field>
                                 <value name="A">
                                   <shadow type="math_number" id="Kl3u(1M@:50tP?ZW^b[B">
                                     <field name="NUM">1</field>
                                   </shadow>
                                   <block type="get_value" id="Ihmq[e|`Wfc@|o.^|OL{">
                                     <field name="ATTR">val</field>
                                     <field name="OID">fronius.0.powerflow.P_Grid</field>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <shadow type="math_number" id="q19)q~Vo45(xq9G}qo;.">
                                     <field name="NUM">1000</field>
                                   </shadow>
                                 </value>
                               </block>
                             </value>
                           </block>
                         </value>
                         <next>
                           <block type="variables_set" id="Em;q2E|i]^82}^yZ9MJ7">
                             <field name="VAR" id="H`^6^LTC{wKU,q]_R:ib">Zwischenspeicher</field>
                             <value name="VALUE">
                               <block type="math_arithmetic" id="==5GpHBKUz.BW]?W{0I:" inline="false">
                                 <field name="OP">DIVIDE</field>
                                 <value name="A">
                                   <shadow type="math_number" id="e$A%jPIrGP4s^3?_cz[Z">
                                     <field name="NUM">1</field>
                                   </shadow>
                                   <block type="get_value" id="[8y=v@g3^:U|]zk-qI[X">
                                     <field name="ATTR">val</field>
                                     <field name="OID">fronius.0.powerflow.P_Load</field>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <shadow type="math_number" id="{`P$JXekVH$4MLrwm`1Y">
                                     <field name="NUM">-1</field>
                                   </shadow>
                                 </value>
                               </block>
                             </value>
                             <next>
                               <block type="control" id="//C4]+V/},MBF*4p;/2_">
                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                 <field name="OID">javascript.0.Eigenes.Energie.Verbrauch_Aktuell</field>
                                 <field name="WITH_DELAY">FALSE</field>
                                 <value name="VALUE">
                                   <block type="math_rndfixed" id="=nK*bsXbOEf$lt2!{.uc" inline="false">
                                     <field name="n">3</field>
                                     <value name="x">
                                       <shadow type="math_number" id="1zNL,F^wS@+E*TKVjX-%">
                                         <field name="NUM">3.1234</field>
                                       </shadow>
                                       <block type="math_arithmetic" id="f}5en*glI8!0#dC]b.6x" inline="false">
                                         <field name="OP">DIVIDE</field>
                                         <value name="A">
                                           <shadow type="math_number" id="baanC3U0lX^zA*;TH|Tf">
                                             <field name="NUM">0</field>
                                           </shadow>
                                           <block type="variables_get" id="#BvII^FSVd6qQW$hx$~;">
                                             <field name="VAR" id="H`^6^LTC{wKU,q]_R:ib">Zwischenspeicher</field>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <shadow type="math_number" id=":HzBOZh]#8+U.xnG=@x`">
                                             <field name="NUM">1000</field>
                                           </shadow>
                                         </value>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <next>
                                   <block type="control" id="C.1EWm/SER5Oyq|~fLG-">
                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                     <field name="OID">javascript.0.Eigenes.Energie.Verkauf_Aktuell</field>
                                     <field name="WITH_DELAY">FALSE</field>
                                     <value name="VALUE">
                                       <block type="math_number" id="_!ma7CDzQO-MO|Xe6;EJ">
                                         <field name="NUM">0</field>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="controls_if" id="c/ypt*0JY$W0O:LEB4OH">
                                         <value name="IF0">
                                           <block type="logic_compare" id="tUWTiYTPSSLcg^|AfjO,">
                                             <field name="OP">GT</field>
                                             <value name="A">
                                               <block type="get_value" id="m;^2aVGv/]7fW3yQa,Av">
                                                 <field name="ATTR">val</field>
                                                 <field name="OID">javascript.0.Eigenes.Energie.PV_Aktuell</field>
                                               </block>
                                             </value>
                                             <value name="B">
                                               <block type="get_value" id="ipWlAd/RoJ.HF8s$^~Xq">
                                                 <field name="ATTR">val</field>
                                                 <field name="OID">javascript.0.Eigenes.Energie.Verbrauch_Aktuell</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <statement name="DO0">
                                           <block type="control" id="^4[qg1R}thCrh?D@p2o_">
                                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                             <field name="OID">javascript.0.Eigenes.Energie.Verkauf_Aktuell</field>
                                             <field name="WITH_DELAY">FALSE</field>
                                             <value name="VALUE">
                                               <block type="math_arithmetic" id="O1JN+hn|aO_eJ^n|iT6;" inline="false">
                                                 <field name="OP">MINUS</field>
                                                 <value name="A">
                                                   <shadow type="math_number" id="3?oak5%-[m8iH_L(XA0}">
                                                     <field name="NUM">1</field>
                                                   </shadow>
                                                   <block type="get_value" id="gryM/N=d^Q%E3*?$O=j`">
                                                     <field name="ATTR">val</field>
                                                     <field name="OID">javascript.0.Eigenes.Energie.PV_Aktuell</field>
                                                   </block>
                                                 </value>
                                                 <value name="B">
                                                   <shadow type="math_number" id="DCC^eOgXhhO}t$dtd/g!">
                                                     <field name="NUM">1</field>
                                                   </shadow>
                                                   <block type="get_value" id="fad9W3E}[X:,uhH)#:no">
                                                     <field name="ATTR">val</field>
                                                     <field name="OID">javascript.0.Eigenes.Energie.Verbrauch_Aktuell</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </value>
                                           </block>
                                         </statement>
                                         <next>
                                           <block type="control" id="6Q6K(X#^47.Z*QK9Vnh{">
                                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                             <field name="OID">javascript.0.Eigenes.Energie.Eigenverbrauch_Aktuell</field>
                                             <field name="WITH_DELAY">FALSE</field>
                                             <value name="VALUE">
                                               <block type="math_arithmetic" id="9F/!(R2Gg{Obc_!*n!qJ" inline="false">
                                                 <field name="OP">MINUS</field>
                                                 <value name="A">
                                                   <shadow type="math_number" id="#ekd-!X}4V-5R@9zGOvM">
                                                     <field name="NUM">1</field>
                                                   </shadow>
                                                   <block type="get_value" id="UkTo!YSh5]UIY3D{@%a)">
                                                     <field name="ATTR">val</field>
                                                     <field name="OID">javascript.0.Eigenes.Energie.PV_Aktuell</field>
                                                   </block>
                                                 </value>
                                                 <value name="B">
                                                   <shadow type="math_number" id="=vTks2dop*Py$}k|r[?~">
                                                     <field name="NUM">1</field>
                                                   </shadow>
                                                   <block type="get_value" id="d$G:B`z+s1+*P689y#m$">
                                                     <field name="ATTR">val</field>
                                                     <field name="OID">javascript.0.Eigenes.Energie.Verkauf_Aktuell</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </value>
                                             <next>
                                               <block type="control" id="Mq/]D)-;Rj45B1GGA^((">
                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                 <field name="OID">javascript.0.Eigenes.Energie.Tagesproduktion</field>
                                                 <field name="WITH_DELAY">FALSE</field>
                                                 <value name="VALUE">
                                                   <block type="math_rndfixed" id="]}`s,7uMwVsrxT(XiS_Y" inline="false">
                                                     <field name="n">1</field>
                                                     <value name="x">
                                                       <shadow type="math_number" id="H{gaIep~k8ikk[a2!30F">
                                                         <field name="NUM">3.1234</field>
                                                       </shadow>
                                                       <block type="math_arithmetic" id="q3?U}7Wr*NvDwrPmiRdK" inline="false">
                                                         <field name="OP">DIVIDE</field>
                                                         <value name="A">
                                                           <shadow type="math_number" id=")]AIa}5Gu1D.7%{T%7,=">
                                                             <field name="NUM">1</field>
                                                           </shadow>
                                                           <block type="get_value" id="lJzpo6J`l`e*z3dqP6}S">
                                                             <field name="ATTR">val</field>
                                                             <field name="OID">fronius.0.inverter.1.DAY_ENERGY</field>
                                                           </block>
                                                         </value>
                                                         <value name="B">
                                                           <shadow type="math_number" id="#+KOYdPFHX?i*^`VvE(*">
                                                             <field name="NUM">1000</field>
                                                           </shadow>
                                                         </value>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </value>
                                                 <next>
                                                   <block type="control" id="i4ejt`Ri|?zxXE!$iguG">
                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                     <field name="OID">javascript.0.Eigenes.Energie.Jahresproduktion</field>
                                                     <field name="WITH_DELAY">FALSE</field>
                                                     <value name="VALUE">
                                                       <block type="math_rndfixed" id="p/fa@fhC7]n~?Prj`}p7" inline="false">
                                                         <field name="n">1</field>
                                                         <value name="x">
                                                           <shadow type="math_number" id="VhFgN*!W06ZWTp2Xxth|">
                                                             <field name="NUM">3.1234</field>
                                                           </shadow>
                                                           <block type="math_arithmetic" id="Y;6tI5L`shja`,}#L72N" inline="false">
                                                             <field name="OP">DIVIDE</field>
                                                             <value name="A">
                                                               <shadow type="math_number" id="30mZ+^ju?xO5e}^z`izR">
                                                                 <field name="NUM">1</field>
                                                               </shadow>
                                                               <block type="get_value" id="P2KEPI3~1R03?8+YfQA_">
                                                                 <field name="ATTR">val</field>
                                                                 <field name="OID">fronius.0.powerflow.E_Year</field>
                                                               </block>
                                                             </value>
                                                             <value name="B">
                                                               <shadow type="math_number" id="_/m(n(v?X6lD%qbW@kQ.">
                                                                 <field name="NUM">1000</field>
                                                               </shadow>
                                                             </value>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </value>
                                                     <next>
                                                       <block type="control" id="mYE-;JPNv4VcKLMKJQ@k">
                                                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                         <field name="OID">javascript.0.Eigenes.Energie.Gesamtproduktion</field>
                                                         <field name="WITH_DELAY">FALSE</field>
                                                         <value name="VALUE">
                                                           <block type="math_rndfixed" id="cj5|{kk.P!}`OHRoyyfO" inline="false">
                                                             <field name="n">1</field>
                                                             <value name="x">
                                                               <shadow type="math_number" id="%,Sq$z4JGjf`47%;J%(5">
                                                                 <field name="NUM">3.1234</field>
                                                               </shadow>
                                                               <block type="math_arithmetic" id="0VEO6|C7ePKD%y4[AF1m" inline="false">
                                                                 <field name="OP">DIVIDE</field>
                                                                 <value name="A">
                                                                   <shadow type="math_number" id="@BeaLV7s(A?e0$)2au9r">
                                                                     <field name="NUM">1</field>
                                                                   </shadow>
                                                                   <block type="get_value" id="ZVec?GPEgQ?#GE0@F4sR">
                                                                     <field name="ATTR">val</field>
                                                                     <field name="OID">fronius.0.inverter.1.TOTAL_ENERGY</field>
                                                                   </block>
                                                                 </value>
                                                                 <value name="B">
                                                                   <shadow type="math_number" id="J[,;rR3!lD6j0iXRE359">
                                                                     <field name="NUM">1000</field>
                                                                   </shadow>
                                                                 </value>
                                                               </block>
                                                             </value>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </next>
                                                   </block>
                                                 </next>
                                               </block>
                                             </next>
                                           </block>
                                         </next>
                                       </block>
                                     </next>
                                   </block>
                                 </next>
                               </block>
                             </next>
                           </block>
                         </next>
                       </block>
                     </next>
                   </block>
                 </statement>
               </block>
              </xml>
              

              Vielen Dank!

              1 Reply Last reply Reply Quote 0
              • S
                Stratege82 @paul53 last edited by

                @paul53 @Hansi1234

                Also, ich habe mir die "alt. Gerätelösung" mal angeguckt! IIch ch komme im Moment noch nicht sehr gut mit der Objekte-Struktur zurecht und habe die Befürchtung, dass ich die Übersichtlichkeit nicht optimiere, wenn ich für jedes Device noch ein 2. Anlege?! Wahrscheinlich alles ne Sache der Gewohnheit. Trotzdem vielen Dank für den Lösungsvorschlag.

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post

                Support us

                ioBroker
                Community Adapters
                Donate

                948
                Online

                31.9k
                Users

                80.2k
                Topics

                1.3m
                Posts

                4
                6
                856
                Loading More Posts
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes
                Reply
                • Reply as topic
                Log in to reply
                Community
                Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                The ioBroker Community 2014-2023
                logo