Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Triggern DP ohne Wert nicht möglich (true/leer)-stiebel-isg

    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

    Triggern DP ohne Wert nicht möglich (true/leer)-stiebel-isg

    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      fastfoot @TH G last edited by

      @th-g said in Triggern DP ohne Wert nicht möglich (true/leer)-stiebel-isg:

      @fastfoot

      Das wäre sehr gut und würde mich freuen, wenn du eine Übergangslösung hast.

      So, neuer Versuch, die JS-Funktion prüft ob der Status existiert, falls nicht wird Falsch zurückgegeben, falls er existiert wird der tatsächliche Wert geliefert(der in diesem Fall eigentlich immer Wahr sein sollte), insofern ist die Funktion aufgebauscht.
      HM.PNG
      Die Datenpunkte und die Variable id im Skript musst du natürlich noch anpassen

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable id="X%@`%Fwh:N!{3?wFePrX">id</variable>
          <variable type="interval" id="Intervall">Intervall</variable>
          <variable id="a_[i#?T$qE6pO]a+|;|t">statusHeizung</variable>
        </variables>
        <block type="procedures_defcustomreturn" id="en56nesdIDI1w2p3?g4o" x="-613" y="37">
          <mutation statements="false">
            <arg name="id" varid="X%@`%Fwh:N!{3?wFePrX"></arg>
          </mutation>
          <field name="NAME">status</field>
          <field name="SCRIPT">bGV0IHN0YXQ7DQppZighZXhpc3RzU3RhdGUoaWQpKSB7DQogICAgc3RhdCA9ICBmYWxzZTsNCn0gZWxzZSB7DQogICAgc3RhdCA9IChhd2FpdCBnZXRTdGF0ZUFzeW5jKGlkKSkudmFsOw0KfQ0KcmV0dXJuIHN0YXQ7</field>
          <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
        </block>
        <block type="variables_set" id="*8.nqG@Jv]T}v.KRZ{@0" x="-613" y="62">
          <field name="VAR" id="X%@`%Fwh:N!{3?wFePrX">id</field>
          <value name="VALUE">
            <block type="text" id="PLa$]*nn#aVr.5!bBn@?">
              <field name="TEXT">0_userdata.0.Heizung.Heizen</field>
            </block>
          </value>
          <next>
            <block type="timeouts_clearinterval" id="-X.,*u/]42py`#]|-t:z">
              <field name="NAME">Intervall</field>
              <next>
                <block type="timeouts_setinterval" id="?aEn+kt6PmFGE[p~XA1e">
                  <field name="NAME">Intervall</field>
                  <field name="INTERVAL">1000</field>
                  <field name="UNIT">ms</field>
                  <statement name="STATEMENT">
                    <block type="variables_set" id="w_dtgT{;Ok-WHNn^87$t">
                      <field name="VAR" id="a_[i#?T$qE6pO]a+|;|t">statusHeizung</field>
                      <value name="VALUE">
                        <block type="procedures_callcustomreturn" id="v_lqnLU}7B#A0%/chCT0" inline="true">
                          <mutation name="status">
                            <arg name="id"></arg>
                          </mutation>
                          <value name="ARG0">
                            <block type="variables_get" id="1B.vjc2JNw^M)p|t]5sv">
                              <field name="VAR" id="X%@`%Fwh:N!{3?wFePrX">id</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <next>
                        <block type="controls_if" id="~(bE[%vsILoN/Ek:_`m6">
                          <mutation else="1"></mutation>
                          <value name="IF0">
                            <block type="variables_get" id="0uW@6:JiLwo,RCzY#esL">
                              <field name="VAR" id="a_[i#?T$qE6pO]a+|;|t">statusHeizung</field>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="update" id="cZxPS)X@V0wnwD|mwVX1">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">0_userdata.0.Heizung.Status_WP</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="text" id="52oB)g/-a?+Z~O=so-9H">
                                  <field name="TEXT">Heizung läuft</field>
                                </block>
                              </value>
                            </block>
                          </statement>
                          <statement name="ELSE">
                            <block type="update" id="~$Cc9,M^,0_60=+abb,`">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">0_userdata.0.Heizung.Status_WP</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="text" id="H=b1z!W@8M}UyedaAVPb">
                                  <field name="TEXT">Heizung nicht aktiv</field>
                                </block>
                              </value>
                            </block>
                          </statement>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </next>
        </block>
      </xml>
      

      TH G 1 Reply Last reply Reply Quote 0
      • TH G
        TH G @fastfoot last edited by TH G

        @fastfoot

        Danke aber wie bekomme ich das importiert?

        F 1 Reply Last reply Reply Quote 0
        • F
          fastfoot @TH G last edited by

          @th-g said in Triggern DP ohne Wert nicht möglich (true/leer)-stiebel-isg:

          @fastfoot

          Danke aber wie bekomme ich das importiert?

          • Hier den Import anklicken und kopieren
          • Blockly erzeugen
          • oben rechts linkes Icon importieren mit CTRL-V
          TH G 1 Reply Last reply Reply Quote 0
          • TH G
            TH G @fastfoot last edited by TH G

            @fastfoot

            Ja genau so habe ich es gemacht aber es will nicht rein mit der Meldung -Fehler beim Importieren-

            F 1 Reply Last reply Reply Quote 0
            • F
              fastfoot @TH G last edited by

              @th-g said in Triggern DP ohne Wert nicht möglich (true/leer)-stiebel-isg:

              @fastfoot

              Ja genau so habe ich es gemacht aber es will nicht rein mit der Meldung -Fehler beim Importieren-

              Dann musst du darauf achten, den kompletten Text zu kopieren, der ist in Ordnung, gerade probiert

              TH G 1 Reply Last reply Reply Quote 0
              • TH G
                TH G @fastfoot last edited by TH G

                @fastfoot

                Ja das ist mir bekannt. Ein anderer Import geht. Ich lösche jetzt und machen ein neues Blockly.

                Das wird als Wert angezeigt, wenn ich einen DP hinzufügen will.

                Bildschirmfoto 2021-01-17 um 22.43.31.png

                Mit einem neuen Blockly geht es nun warum auch immer.

                Nun musst du mir unbeholfene Anwender noch sagen, was ich wo eintragen muss. Der Falls Teil ist mir soweit klar.

                F 1 Reply Last reply Reply Quote 0
                • F
                  fastfoot @TH G last edited by

                  @th-g said in Triggern DP ohne Wert nicht möglich (true/leer)-stiebel-isg:

                  @fastfoot

                  Ja das ist mir bekannt. Ein anderer Import geht. Ich lösche jetzt und machen ein neues Blockly.

                  Das wird als Wert angezeigt, wenn ich einen DP hinzufügen will.

                  Bildschirmfoto 2021-01-17 um 22.43.31.png

                  Mit einem neuen Blockly geht es nun warum auch immer.

                  Nun musst du mir unbeholfene Anwender noch sagen, was ich wo eintragen muss. Der Falls Teil ist mir soweit klar.

                  Da wo steuere Status_WP steht klickst du jeweils drauf und wählst deinen tatsächlichen Datenpunkt aus. Bei setze ID musst du den Pfad händisch eingeben oder aus dem Objektbaum kopieren(rechts neben der ID dort klicken)

                  TH G 1 Reply Last reply Reply Quote 0
                  • TH G
                    TH G @fastfoot last edited by

                    @fastfoot

                    Meinst du das jetzt so:

                    Bildschirmfoto 2021-01-18 um 11.07.01.png

                    F 1 Reply Last reply Reply Quote 0
                    • F
                      fastfoot @TH G last edited by

                      @th-g ja genau, und dann testen

                      TH G 1 Reply Last reply Reply Quote 0
                      • TH G
                        TH G @fastfoot last edited by

                        @fastfoot

                        Bildschirmfoto 2021-01-18 um 14.02.18.png Bildschirmfoto 2021-01-18 um 14.02.53.png

                        F 1 Reply Last reply Reply Quote 0
                        • F
                          fastfoot @TH G last edited by

                          @th-g seltsam, bei mir läuft es in der Simulation. Probiere mal diesen Import,

                          <xml xmlns="https://developers.google.com/blockly/xml">
                           <variables>
                             <variable id="X%@`%Fwh:N!{3?wFePrX">id</variable>
                             <variable type="interval" id="Intervall">Intervall</variable>
                             <variable id="a_[i#?T$qE6pO]a+|;|t">statusHeizung</variable>
                           </variables>
                           <block type="procedures_defcustomreturn" id="en56nesdIDI1w2p3?g4o" x="-613" y="37">
                             <mutation statements="false">
                               <arg name="id" varid="X%@`%Fwh:N!{3?wFePrX"></arg>
                             </mutation>
                             <field name="NAME">status</field>
                             <field name="SCRIPT">DQppZighZXhpc3RzU3RhdGUoaWQpKSB7DQogICAgc3RhdCA9ICBmYWxzZTsNCn0gZWxzZSB7DQogICAgc3RhdCA9IChhd2FpdCBnZXRTdGF0ZUFzeW5jKGlkKSkudmFsOw0KfQ0KcmV0dXJuIHN0YXQ7</field>
                             <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                           </block>
                           <block type="variables_set" id="*8.nqG@Jv]T}v.KRZ{@0" x="-613" y="62">
                             <field name="VAR" id="X%@`%Fwh:N!{3?wFePrX">id</field>
                             <value name="VALUE">
                               <block type="text" id="PLa$]*nn#aVr.5!bBn@?">
                                 <field name="TEXT">0_userdata.0.Heizung.Heizen</field>
                               </block>
                             </value>
                             <next>
                               <block type="timeouts_clearinterval" id="-X.,*u/]42py`#]|-t:z">
                                 <field name="NAME">Intervall</field>
                                 <next>
                                   <block type="timeouts_setinterval" id="?aEn+kt6PmFGE[p~XA1e">
                                     <field name="NAME">Intervall</field>
                                     <field name="INTERVAL">1000</field>
                                     <field name="UNIT">ms</field>
                                     <statement name="STATEMENT">
                                       <block type="variables_set" id="w_dtgT{;Ok-WHNn^87$t">
                                         <field name="VAR" id="a_[i#?T$qE6pO]a+|;|t">statusHeizung</field>
                                         <value name="VALUE">
                                           <block type="procedures_callcustomreturn" id="v_lqnLU}7B#A0%/chCT0" inline="true">
                                             <mutation name="status">
                                               <arg name="id"></arg>
                                             </mutation>
                                             <value name="ARG0">
                                               <block type="variables_get" id="1B.vjc2JNw^M)p|t]5sv">
                                                 <field name="VAR" id="X%@`%Fwh:N!{3?wFePrX">id</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <next>
                                           <block type="controls_if" id="~(bE[%vsILoN/Ek:_`m6">
                                             <mutation else="1"></mutation>
                                             <value name="IF0">
                                               <block type="variables_get" id="0uW@6:JiLwo,RCzY#esL">
                                                 <field name="VAR" id="a_[i#?T$qE6pO]a+|;|t">statusHeizung</field>
                                               </block>
                                             </value>
                                             <statement name="DO0">
                                               <block type="update" id="cZxPS)X@V0wnwD|mwVX1">
                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                 <field name="OID">0_userdata.0.Heizung.Status_WP</field>
                                                 <field name="WITH_DELAY">FALSE</field>
                                                 <value name="VALUE">
                                                   <block type="text" id="52oB)g/-a?+Z~O=so-9H">
                                                     <field name="TEXT">Heizung läuft</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </statement>
                                             <statement name="ELSE">
                                               <block type="update" id="~$Cc9,M^,0_60=+abb,`">
                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                 <field name="OID">0_userdata.0.Heizung.Status_WP</field>
                                                 <field name="WITH_DELAY">FALSE</field>
                                                 <value name="VALUE">
                                                   <block type="text" id="H=b1z!W@8M}UyedaAVPb">
                                                     <field name="TEXT">Heizung nicht aktiv</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </statement>
                                           </block>
                                         </next>
                                       </block>
                                     </statement>
                                   </block>
                                 </next>
                               </block>
                             </next>
                           </block>
                          </xml>
                          

                          TH G 1 Reply Last reply Reply Quote 0
                          • TH G
                            TH G @fastfoot last edited by

                            @fastfoot

                            Geht leider auch nicht:

                            Bildschirmfoto 2021-01-18 um 18.32.34.png

                            F 2 Replies Last reply Reply Quote 0
                            • F
                              fastfoot @TH G last edited by

                              @th-g war einen Versuch wert, ich verstehe das nicht, bei mir läuft die Funktion. Welche Javascriptversion hast du denn installiert? Mach doch mal einen Export deines aktuellen Blockly und stelle es hier rein, benutze bitte Code-Tags( icon </> ) dafür

                              1 Reply Last reply Reply Quote 0
                              • F
                                fastfoot @TH G last edited by fastfoot

                                @th-g Ich denke ich habs, die aktuelle Stable unterstützt noch kein async. Probiere so

                                <xml xmlns="https://developers.google.com/blockly/xml">
                                 <variables>
                                   <variable id="X%@`%Fwh:N!{3?wFePrX">id</variable>
                                   <variable type="interval" id="Intervall">Intervall</variable>
                                   <variable id="a_[i#?T$qE6pO]a+|;|t">statusHeizung</variable>
                                 </variables>
                                 <block type="procedures_defcustomreturn" id="en56nesdIDI1w2p3?g4o" x="-613" y="37">
                                   <mutation statements="false">
                                     <arg name="id" varid="X%@`%Fwh:N!{3?wFePrX"></arg>
                                   </mutation>
                                   <field name="NAME">status</field>
                                   <field name="SCRIPT">DQppZighZXhpc3RzU3RhdGUoaWQpKSB7DQogICAgc3RhdCA9ICBmYWxzZTsNCn0gZWxzZSB7DQogICAgc3RhdCA9IGdldFN0YXRlKGlkKS52YWw7DQp9DQpyZXR1cm4gc3RhdDs=</field>
                                   <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                                 </block>
                                 <block type="variables_set" id="*8.nqG@Jv]T}v.KRZ{@0" x="-613" y="62">
                                   <field name="VAR" id="X%@`%Fwh:N!{3?wFePrX">id</field>
                                   <value name="VALUE">
                                     <block type="text" id="PLa$]*nn#aVr.5!bBn@?">
                                       <field name="TEXT">0_userdata.0.Heizung.Heizen</field>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="timeouts_clearinterval" id="-X.,*u/]42py`#]|-t:z">
                                       <field name="NAME">Intervall</field>
                                       <next>
                                         <block type="timeouts_setinterval" id="?aEn+kt6PmFGE[p~XA1e">
                                           <field name="NAME">Intervall</field>
                                           <field name="INTERVAL">1000</field>
                                           <field name="UNIT">ms</field>
                                           <statement name="STATEMENT">
                                             <block type="variables_set" id="w_dtgT{;Ok-WHNn^87$t">
                                               <field name="VAR" id="a_[i#?T$qE6pO]a+|;|t">statusHeizung</field>
                                               <value name="VALUE">
                                                 <block type="procedures_callcustomreturn" id="v_lqnLU}7B#A0%/chCT0" inline="true">
                                                   <mutation name="status">
                                                     <arg name="id"></arg>
                                                   </mutation>
                                                   <value name="ARG0">
                                                     <block type="variables_get" id="1B.vjc2JNw^M)p|t]5sv">
                                                       <field name="VAR" id="X%@`%Fwh:N!{3?wFePrX">id</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="controls_if" id="~(bE[%vsILoN/Ek:_`m6">
                                                   <mutation else="1"></mutation>
                                                   <value name="IF0">
                                                     <block type="variables_get" id="0uW@6:JiLwo,RCzY#esL">
                                                       <field name="VAR" id="a_[i#?T$qE6pO]a+|;|t">statusHeizung</field>
                                                     </block>
                                                   </value>
                                                   <statement name="DO0">
                                                     <block type="update" id="cZxPS)X@V0wnwD|mwVX1">
                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                       <field name="OID">0_userdata.0.Heizung.Status_WP</field>
                                                       <field name="WITH_DELAY">FALSE</field>
                                                       <value name="VALUE">
                                                         <block type="text" id="52oB)g/-a?+Z~O=so-9H">
                                                           <field name="TEXT">Heizung läuft</field>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </statement>
                                                   <statement name="ELSE">
                                                     <block type="update" id="~$Cc9,M^,0_60=+abb,`">
                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                       <field name="OID">0_userdata.0.Heizung.Status_WP</field>
                                                       <field name="WITH_DELAY">FALSE</field>
                                                       <value name="VALUE">
                                                         <block type="text" id="H=b1z!W@8M}UyedaAVPb">
                                                           <field name="TEXT">Heizung nicht aktiv</field>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </statement>
                                                 </block>
                                               </next>
                                             </block>
                                           </statement>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                                </xml>
                                

                                TH G 1 Reply Last reply Reply Quote 0
                                • TH G
                                  TH G @fastfoot last edited by

                                  @fastfoot

                                  Funktioniert!!!!

                                  DANKE

                                  F 1 Reply Last reply Reply Quote 0
                                  • F
                                    fastfoot @TH G last edited by

                                    @th-g sagte in Triggern DP ohne Wert nicht möglich (true/leer)-stiebel-isg:

                                    @fastfoot

                                    Funktioniert!!!!

                                    DANKE

                                    war ne schwere Geburt, schön dass es jetzt funktioniert!

                                    TH G 1 Reply Last reply Reply Quote 1
                                    • TH G
                                      TH G @fastfoot last edited by TH G

                                      @fastfoot

                                      Kann ich das Blockly auch für Warmwasser und Kühlen nutzen? Muss ich dann dafür etwas ändern außer den DP?

                                      F 1 Reply Last reply Reply Quote 0
                                      • F
                                        fastfoot @TH G last edited by

                                        @th-g sagte in Triggern DP ohne Wert nicht möglich (true/leer)-stiebel-isg:

                                        @fastfoot

                                        Kann ich das Blockly auch für Warmwasser und Kühlen nutzen? Muss ich dann dafür etwas ändern außer den DP?

                                        nein, ändern sollte nicht nötig sein, ausser der zu überwachende DP. bei Problemen aber einfach melden

                                        TH G 1 Reply Last reply Reply Quote 0
                                        • TH G
                                          TH G @fastfoot last edited by

                                          @fastfoot

                                          Mus sich den Name ID und statusHeizung nicht anders nennen? Stören die sich sonst nicht?

                                          F 1 Reply Last reply Reply Quote 0
                                          • F
                                            fastfoot @TH G last edited by

                                            @th-g sagte in Triggern DP ohne Wert nicht möglich (true/leer)-stiebel-isg:

                                            @fastfoot

                                            Mus sich den Name ID und statusHeizung nicht anders nennen? Stören die sich sonst nicht?

                                            In einem neuen Script kann die Variable weiterhin id heissen, der Inhalt ändert sich natürlich, da du ja einen anderen DP abfrägst

                                            TH G 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            455
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

                                            vis
                                            16
                                            119
                                            7546
                                            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