Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Homematic Ip Thermostate und Xiaomi ( Gelöst )

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Homematic Ip Thermostate und Xiaomi ( Gelöst )

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

      @paul53 sagte:

      Den Datenpunkt gibt es nicht.

      Sorry, muss mich korrigieren: Das ist bei HM classic so. HmIP-Thermostate sollten laut Doku einen Datenpunkt WINDOW_STATE haben, der mit den Zahlen 0 und 1 beschreibbar ist.

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

        @paul53 Diesen Datenpunkt finde ich leider nicht

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

          Bei mir steht es unter hm-rpc.2 - dann dein IP-Thermostat auswählen - dann unter 1 letzter Punkt Window_State.

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

            @lustig29 sagte:

            Diesen Datenpunkt finde ich leider nicht

            Verwendest Du etwa den HMIP Access Point und deshalb den Adapter ioBroker.hmip ?

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

              @paul53 Ja, verwende den Homematic Ip Acesspoint

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

                @lustig29 sagte:

                Ja, verwende den Homematic Ip Acesspoint

                Das hättest Du gleich erwähnen sollen. Welche Datenpunkte liefert der Adapter zum Thermostaten ?

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

                  @paul53 OH, sorry hatte ich vergessen. 🤦‍♂️
                  Screenshot_20200621_160541.jpg

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

                    @lustig29
                    Dann kann man wohl nur auf den Sollwert "setPointTemperature" zugreifen. Den Wert beim Fenster öffnen muss man sich merken. Etwa so:

                    Blockly_temp.JPG

                    <xml xmlns="https://developers.google.com/blockly/xml">
                     <variables>
                       <variable id="aSl3f7TruC_Po_}txm4O">sollwert</variable>
                       <variable id="u7,EdZFI-Ulk;Cs]RhdS">autosoll</variable>
                     </variables>
                     <block type="schedule" id="{0i,eaDfitncGslhKiJj" x="113" y="87">
                       <field name="SCHEDULE">55 59 23 * * *</field>
                       <statement name="STATEMENT">
                         <block type="controls_if" id="XY@JJv4S]x:{[}Ggp5B_">
                           <value name="IF0">
                             <block type="logic_compare" id="5}gu6Zs?RTS%pJ.J8CC:">
                               <field name="OP">EQ</field>
                               <value name="A">
                                 <block type="convert_from_date" id="%q(HLDIdq,?IYhh,H1)R">
                                   <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                   <field name="OPTION">d</field>
                                   <value name="VALUE">
                                     <block type="math_arithmetic" id="}!-iDpBDWwk;eQ4L}:mL">
                                       <field name="OP">ADD</field>
                                       <value name="A">
                                         <shadow type="math_number" id="}BeJE2ELYjda#b9v^FP]">
                                           <field name="NUM">1</field>
                                         </shadow>
                                         <block type="time_get" id="Y|WVp?4$ui]2Iw]DZ.3e">
                                           <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                           <field name="OPTION">object</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <shadow type="math_number" id="Cn)Bn9Ebs6j?5H@+]@Z3">
                                           <field name="NUM">10000</field>
                                         </shadow>
                                       </value>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <value name="B">
                                 <block type="math_number" id="ICc-C/-4x/KSc%p9,9AC">
                                   <field name="NUM">1</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <statement name="DO0">
                             <block type="comment" id="m{)?{0N|vP~Ax]E-p*2h">
                               <field name="COMMENT">Aktion</field>
                             </block>
                           </statement>
                         </block>
                       </statement>
                     </block>
                     <block type="on_ext" id="|5#M+zpd0zG4$IO^.J/m" x="113" y="338">
                       <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="JiS%IRKbWF:LYicRXtO1">
                           <field name="oid">zigbee.0.00158d0002c8d185.open</field>
                         </shadow>
                       </value>
                       <statement name="STATEMENT">
                         <block type="variables_set" id="@%we,L7Ca6=?rlzB`4G|">
                           <field name="VAR" id="aSl3f7TruC_Po_}txm4O">sollwert</field>
                           <value name="VALUE">
                             <block type="get_value" id="]Zv!_f/w8D29(?Eeo76:">
                               <field name="ATTR">val</field>
                               <field name="OID">ID auswählen</field>
                             </block>
                           </value>
                           <next>
                             <block type="controls_if" id="Ao,T8kt-uX(^nY`F~!3S">
                               <mutation else="1"></mutation>
                               <value name="IF0">
                                 <block type="on_source" id="M(2Aj^Crf#a_Oo;_41;H">
                                   <field name="ATTR">state.val</field>
                                 </block>
                               </value>
                               <statement name="DO0">
                                 <block type="controls_if" id="[Ype(P$`6J~s@g)p/$8E">
                                   <value name="IF0">
                                     <block type="logic_compare" id="mmIN_AfL;xQdb}e5[yIu">
                                       <field name="OP">GT</field>
                                       <value name="A">
                                         <block type="variables_get" id="1ELMD+6q9QQ4L={}a[W5">
                                           <field name="VAR" id="aSl3f7TruC_Po_}txm4O">sollwert</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="math_number" id=";PkPG%r.oJbkCb4pZg^R">
                                           <field name="NUM">5</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <statement name="DO0">
                                     <block type="variables_set" id="e?zPV=Trf-*N%Qya|ns;">
                                       <field name="VAR" id="u7,EdZFI-Ulk;Cs]RhdS">autosoll</field>
                                       <value name="VALUE">
                                         <block type="variables_get" id="u#mhQ_@9w)8sHsgN@Jgb">
                                           <field name="VAR" id="aSl3f7TruC_Po_}txm4O">sollwert</field>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="variables_set" id="@T]M?1/i.bVto*%nc3%l">
                                           <field name="VAR" id="aSl3f7TruC_Po_}txm4O">sollwert</field>
                                           <value name="VALUE">
                                             <block type="math_number" id="gqk(Ni_n=NTPjA4h+vEV">
                                               <field name="NUM">5</field>
                                             </block>
                                           </value>
                                         </block>
                                       </next>
                                     </block>
                                   </statement>
                                 </block>
                               </statement>
                               <statement name="ELSE">
                                 <block type="variables_set" id="QQ/H32^zdOT^1.8:Sabu">
                                   <field name="VAR" id="aSl3f7TruC_Po_}txm4O">sollwert</field>
                                   <value name="VALUE">
                                     <block type="variables_get" id="/_!d#v1EH5JcC6Ga9=sy">
                                       <field name="VAR" id="u7,EdZFI-Ulk;Cs]RhdS">autosoll</field>
                                     </block>
                                   </value>
                                 </block>
                               </statement>
                               <next>
                                 <block type="control" id="nRd}V:34TfPWMY}z|P,!">
                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                   <field name="OID">Object ID</field>
                                   <field name="WITH_DELAY">FALSE</field>
                                   <value name="VALUE">
                                     <block type="variables_get" id="lBwHNp=C((gvksG1K$c.">
                                       <field name="VAR" id="aSl3f7TruC_Po_}txm4O">sollwert</field>
                                     </block>
                                   </value>
                                 </block>
                               </next>
                             </block>
                           </next>
                         </block>
                       </statement>
                     </block>
                    </xml>
                    

                    L 2 Replies Last reply Reply Quote 0
                    • L
                      lustig29 @paul53 last edited by

                      @paul53 Super, vielen Dank

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

                        Irgendwas scheint noch nicht zu stimmen. Ich habe meine Werte mal eingetragen.Heizungtest.png

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

                          @lustig29
                          Ich sehe, dass die Variable autosoll initialisiert werden muss.

                          Blockly_temp.JPG

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

                            @paul53
                            21.6.2020, 16:53:16.769 [info ]: javascript.0 (1780) Start javascript script.js.Heizung_Balkontür
                            21.6.2020, 16:53:16.903 [info ]: javascript.0 (1780) script.js.Heizung_Balkontür: registered 1 subscription and 0 schedules
                            21.6.2020, 16:54:15.337 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:54:15.341 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:54:21.129 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:54:21.139 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:54:23.581 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:54:23.584 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:54:27.226 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:54:27.231 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:54:28.907 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:54:28.912 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:54:31.743 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:54:31.747 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:54:34.405 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:54:34.410 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:54:35.068 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:54:35.071 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:54:36.214 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:54:36.218 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:54:37.129 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:54:37.132 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:54:38.183 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:54:38.185 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:54:39.711 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:54:39.715 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:54:43.045 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:54:43.047 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:54:44.378 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:54:44.381 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:54:45.785 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:54:45.789 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:54:46.867 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:54:46.869 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:54:54.198 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:54:54.200 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:55:00.642 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:55:00.645 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:55:01.844 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:55:01.847 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:55:31.725 [info ]: javascript.0 (1780) Stop script script.js.Heizung_Balkontür
                            21.6.2020, 16:57:08.217 [info ]: javascript.0 (1780) Stop script script.js.Heizung_Balkontür
                            21.6.2020, 16:57:21.589 [info ]: javascript.0 (1780) Start javascript script.js.Heizung_Balkontür
                            21.6.2020, 16:57:21.603 [info ]: javascript.0 (1780) script.js.Heizung_Balkontür: registered 1 subscription and 0 schedules
                            21.6.2020, 16:58:47.100 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:58:47.102 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:58:49.608 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:58:49.611 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:58:52.442 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:58:52.447 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:58:54.665 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:58:54.671 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:58:55.979 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:58:55.981 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:58:57.208 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:58:57.217 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:59:02.869 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:59:02.871 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:59:03.705 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:59:03.709 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:59:07.993 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:59:08.000 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:59:12.693 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:59:12.697 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value
                            21.6.2020, 16:59:12.821 [warn ]: javascript.0 (1780) at Object.<anonymous> (script.js.Heizung_Balkontür:16:3)
                            21.6.2020, 16:59:12.828 [error]: javascript.0 (1780) script.js.Heizung_Balkontür: setForeignState: undefined is not a valid state value

                            So?

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

                              @lustig29 sagte:

                              So?

                              Nein, rechts oben kann man mit blockly/JS in die Javascript-Ansicht umschalten. Dann mit copy & paste den Code in das Forum kopieren: Code tags oben: </>

                              Ich habe den Grund wahrscheinlich gefunden (siehe oben).

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

                                @paul53 Ok, also lösche ich die Variablen jetzt am besten und erstelle sie selber neu?

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

                                  @lustig29 sagte:

                                  lösche ich die Variablen jetzt am besten und erstelle sie selber neu?

                                  Nein, füge über dem Trigger-Block die Initialisierung der Variable autosoll ein:

                                  setze autosoll auf Wert vom Objekt ID setPointTemperature.
                                  

                                  Blockly_temp.JPG

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

                                    @paul53 leider funktioniert es immer noch nicht

                                    Das steht im Log:
                                    27641) state change - setPointTemperature - id 73137e60-2021-42bd-9d0e-e048643e315f - value 5

                                    paul53 2 Replies Last reply Reply Quote 0
                                    • paul53
                                      paul53 @lustig29 last edited by

                                      @lustig29 sagte:

                                      funktioniert es immer noch nicht

                                      Welche Fehlermeldung ?

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

                                        @lustig29 sagte:

                                        Das steht im Log:
                                        27641) state change - setPointTemperature - id 73137e60-2021-42bd-9d0e-e048643e315f - value 5

                                        Der Wert 5 wird geschrieben, weil vermutlich der Sollwert auf 5 °C eingestellt war. Siehe hier. Es funktioniert nur mit einem Sollwert > 12 °C bei geschlossenem Fenster.

                                        Es kann übrigens einige Minuten dauern, bis der neue Sollwert im Thermostaten ankommt.

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

                                          @paul53 es liegt an meinem Homematic Acesspoint. Der bekommt keine Verbindung mehr 😉

                                          1 Reply Last reply Reply Quote 0
                                          • L
                                            lustig29 last edited by

                                            Habe mein Acesspoint wieder zum laufen gebracht. Leider funktioniert das Skript nur teilweise und wirft jetzt Fehler vom Hmip Adapter im Log aus.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            933
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            5
                                            45
                                            2777
                                            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