Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. [Blockly] Zirkulationspumpe über 2 Bewegungsmelder

    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

    [Blockly] Zirkulationspumpe über 2 Bewegungsmelder

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

      @watcherkb propier es mal hiermit, ist jetzt auf 30 Minuten eingestellt wenn du 45 Minuten brauchst ändere den Zähler auf 45.


      <xml xmlns="http://www.w3.org/1999/xhtml">
      <variables>
      <variable type="" id="Og_^l=QcQR9vdUaE=f*">OB_Zirkulation</variable> <variable type="" id="AQ~ES~RRmL@7Lj]h-uzi">Zaehler</variable> <variable type="undefined" id="timeout">timeout</variable> <variable type="undefined" id="Intervall">Intervall</variable> </variables> <block type="comment" id="aAA1%!J:sOX}UbPl|x9" x="212" y="-62">
      <field name="COMMENT">Aktor einfügen</field>
      <next>
      <block type="variables_set" id="k(x6)$WwKv76PDXkNnfm">
      <field name="VAR" id="Og_^l=QcQR9vdUaE=f*" variabletype="">OB_Zirkulation</field> <value name="VALUE"> <block type="field_oid" id="T{8s6j[?|Tzrvu*G)!(x"> <field name="oid">hm-rpc.2.0001D70994E995.3.STATE</field> </block> </value> </block> </next> </block> <block type="comment" id=",la}-mYzKg9qq2.zNbFc" x="212" y="37"> <field name="COMMENT">Badezimmer</field> <next> <block type="variables_set" id="PP#sxKF~@81jMm@3wEi*"> <field name="VAR" id="AQ~ES~RRmL@7Lj]h-uzi" variabletype="">Zaehler</field> <value name="VALUE"> <block type="math_number" id="^sdMRn~V~kIZ}JFEeyg">
      <field name="NUM">0</field>
      </block>
      </value>
      <next>
      <block type="on_ext" id="5-.R-qeEs5[R14D2a34I">
      <mutation items="2"></mutation>
      <field name="CONDITION">ne</field>
      <field name="ACK_CONDITION"></field>
      <value name="OID0">
      <shadow type="field_oid" id="F-(mmrnT6,XWFSGau(]Q">
      <field name="oid">hm-rpc.2.000C18A991E8B6.1.PRESENCE_DETECTION_STATE</field>
      </shadow>
      </value>
      <value name="OID1">
      <shadow type="field_oid" id="i:O$?imxUZ%o-gEJ|c+"> <field name="oid">hm-rpc.2.0009156999C1F8.1.MOTION</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="-|=g5L6e_o/4GOQqNsj#"> <value name="IF0"> <block type="logic_operation" id="AA8jz}+PwoTgupeut,%3" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="|1Mg%#1]R(zj184[q[j}" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="QK-/|;J3lY4x?i,xy_%o"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="ija].E3h#ObzJTG7KNx8"> <field name="ATTR">val</field> <field name="OID">hm-rpc.2.000C18A991E8B6.1.PRESENCE_DETECTION_STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="qfnF@:-8$ijab@,qoo/I"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="w:rUj?DMi0ESCzP2G|es"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="-d_X8;(YhS7Kbp/Iax1">
      <field name="ATTR">val</field>
      <field name="OID">hm-rpc.2.0009156999C1F8.1.MOTION</field>
      </block>
      </value>
      <value name="B">
      <block type="logic_boolean" id=".K*,@7,lni0CuQ+9([~"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="!OK#I$uytvM6U*fmwcR$" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="CE1h?)LO;F[O%zJx0H.7"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="os;R5SUx:ulFUZXEv5~R"> <field name="VAR" id="AQ~ES~RRmL@7Lj]h-uzi" variabletype="">Zaehler</field> </block> </value> <value name="B"> <block type="math_number" id="?H[XS=FX#rJwmEy^[dsy"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="fN./YAgNK!w$fxhWD*aB"> <field name="OP">EQ</field> <value name="A"> <block type="get_value_var" id="f,t1iLIv-CRwjvrm@.C">
      <field name="ATTR">val</field>
      <value name="OID">
      <shadow type="text" id="J7[/lkHia_}1)Q[z0a/"> <field name="TEXT"></field> </shadow> <block type="variables_get" id=")2MaB-n[/wnox}2GP9.r"> <field name="VAR" id="Og_^l=QcQR9vdUaE=f*" variabletype="">OB_Zirkulation</field>
      </block>
      </value>
      </block>
      </value>
      <value name="B">
      <block type="logic_boolean" id="YNBc?m+LFKPL%1,FaJD"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control_ex" id=",_eY(h!NLv^UL)5eC:9k" inline="true"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id=",zLM2dmRm@-|^szF0_)5"> <field name="oid">Object ID</field> </shadow> <block type="variables_get" id="~S0S;1(Q??hp-ujB?kJu"> <field name="VAR" id="Og_^l=QcQR9vdUaE=f*" variabletype="">OB_Zirkulation</field>
      </block>
      </value>
      <value name="VALUE">
      <shadow type="logic_boolean" id="!^K0R0|#ljb,~n(I;Rtv">
      <field name="BOOL">TRUE</field>
      </shadow>
      </value>
      <value name="DELAY_MS">
      <shadow type="math_number" id="A=f510BI_:FXjy6^PUw"> <field name="NUM">0</field> </shadow> </value> <next> <block type="debug" id="-ISt)3R)irU%)^=Fy4;Y"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="rhnpG^(OZ-|n$Ug1g48P"> <field name="TEXT">Bewegung Bad erkannt, Zirkulation eingeschaltet</field> </shadow> </value> <next> <block type="timeouts_settimeout" id="smya7TOFXPpSwgFu7PWp"> <field name="NAME">timeout</field> <field name="DELAY">2</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="control_ex" id="*flrqFkM#oz;:3|VPJEk" inline="true"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id=",zLM2dmRm@-|^szF0_)5"> <field name="oid">Object ID</field> </shadow> <block type="variables_get" id=".#2MR9-L,Oc#LBr#;rs:"> <field name="VAR" id="Og_^l=QcQR9vdUaE=f*" variabletype="">OB_Zirkulation</field>
      </block>
      </value>
      <value name="VALUE">
      <shadow type="logic_boolean" id="1nw%GMt}f32A/5%]8SCN">
      <field name="BOOL">FALSE</field>
      </shadow>
      </value>
      <value name="DELAY_MS">
      <shadow type="math_number" id="]y]#[.v/BdbOP!9-TW%*">
      <field name="NUM">0</field>
      </shadow>
      </value>
      <next>
      <block type="debug" id="jN}LfKl;.G5uXNmk)*Y"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="O2;rWiG-Y_{2G$s7,9gW"> <field name="TEXT">Zirkulation schaltet nach 2 minuten ab</field> </shadow> </value> </block> </next> </block> </statement> <next> <block type="timeouts_setinterval" id="2eO31_/:}7NZ:@Hayct-"> <field name="NAME">Intervall</field> <field name="INTERVAL">1</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="math_change" id="RJgW}%ka;iTr9[7qcb8">
      <field name="VAR" id="AQ~ES~RRmL@7Lj]h-uzi" variabletype="">Zaehler</field>
      <value name="DELTA">
      <shadow type="math_number" id="@n6?b61UQO6WT)5SH`fs">
      <field name="NUM">1</field>
      </shadow>
      <block type="math_number" id="^Ls+EQ3+8aB9[~H?%Nef">
      <field name="NUM">1</field>
      </block>
      </value>
      <next>
      <block type="controls_if" id="eMMlmxsS+IYQAEEDEb[?">
      <value name="IF0">
      <block type="logic_compare" id="0CRZ$E=|l|NB)FDFZDPE">
      <field name="OP">EQ</field>
      <value name="A">
      <block type="variables_get" id="3E7M+kl_k!Ex|).TEiJe">
      <field name="VAR" id="AQ~ES~RRmL@7Lj]h-uzi" variabletype="">Zaehler</field>
      </block>
      </value>
      <value name="B">
      <block type="math_number" id="zE5Ljd%daN2!eDU(#BQ,">
      <field name="NUM">30</field>
      </block>
      </value>
      </block>
      </value>
      <statement name="DO0">
      <block type="timeouts_clearinterval" id="w#8VvO[pIKwYwl6(s[rS">
      <field name="NAME">Intervall</field>
      <next>
      <block type="variables_set" id="+x-G6rqQ6cnyGQ7UHZna">
      <field name="VAR" id="AQ~ES~RRmL@7Lj]h-uzi" variabletype="">Zaehler</field>
      <value name="VALUE">
      <block type="math_number" id="PnEde6Uf17l.|Z?adx;0">
      <field name="NUM">0</field>
      </block>
      </value>
      <next>
      <block type="debug" id="07361^]=~e88A)g}m(my">
      <field name="Severity">log</field>
      <value name="TEXT">
      <shadow type="text" id="?ba1i~eF~IQkP_@P)Tvm">
      <field name="TEXT">Intervall nach 15 Minuten zurückgesetzt auf 0</field>
      </shadow>
      </value>
      </block>
      </next>
      </block>
      </next>
      </block>
      </statement>
      </block>
      </next>
      </block>
      </statement>
      </block>
      </next>
      </block>
      </next>
      </block>
      </next>
      </block>
      </statement>
      </block>
      </statement>
      </block>
      </next>
      </block>
      </next>
      </block>
      </xml>

      W 2 Replies Last reply Reply Quote 0
      • W
        watcherkb @Homer.J. last edited by watcherkb

        @Homer-J danke, sowas hab ich gesucht. Teste ich mal.

        Kannst du mir sagen warum deine IDs ausgeschrieben sind und bei mir nicht? Ich hätte auch gerne den vollen Objektpfad.

        Homer.J. 1 Reply Last reply Reply Quote 0
        • Homer.J.
          Homer.J. @watcherkb last edited by

          @watcherkb was hast du für Bewegungsmelder. ?

          W 1 Reply Last reply Reply Quote 0
          • W
            watcherkb @Homer.J. last edited by watcherkb

            @Homer-J von Aqara
            so hätt ich es gerne: mihome.0.devices.sensor_motion_aq2_158d000233560f2.state

            Homer.J. 1 Reply Last reply Reply Quote 0
            • Homer.J.
              Homer.J. @watcherkb last edited by

              @watcherkb das kann ich dir auch nicht sagen ich habe Homematic IP dort habe ich es direkt in der CCU benannt, ich denk mal deshalb sehe ich es bei mir.
              Aqara kenn ich mich leider nicht aus.
              Steht es bei dir so in deinem Datenpunkt drin. ?

              W 1 Reply Last reply Reply Quote 0
              • W
                watcherkb @Homer.J. last edited by

                @Homer-J Sosieht das bei mir aus.

                bb4a1405-2da7-4a05-bf05-010d9a05ce09-image.png

                Homer.J. 1 Reply Last reply Reply Quote 0
                • Homer.J.
                  Homer.J. @watcherkb last edited by

                  @watcherkb versuch doch mal den Datenpunkt State umzubenennen müsste eigentlich gehen.
                  Funktioniert das Script. ?

                  W 1 Reply Last reply Reply Quote 0
                  • W
                    watcherkb @Homer.J. last edited by

                    @Homer-J probier ich mal wenn ich Zuhause bin 😉

                    1 Reply Last reply Reply Quote 0
                    • W
                      watcherkb @Homer.J. last edited by

                      @Homer-J wollte mal Rückmeldung geben: funktioniert bestens. Danke nochmal!

                      2eb9e41b-9213-4aeb-96f4-4f30efc24387-image.png

                      Homer.J. 1 Reply Last reply Reply Quote 0
                      • Homer.J.
                        Homer.J. @watcherkb last edited by

                        @watcherkb Kein Problem,

                        Grüße

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

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        786
                        Online

                        31.9k
                        Users

                        80.3k
                        Topics

                        1.3m
                        Posts

                        2
                        11
                        1196
                        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