- ioBroker Community Home
- Deutsch
- Skripten / Logik
- Blockly
- Pumpenüberwachung
Pumpenüberwachung
-
Hy Leute
Ich überwache meine Pumpensteuerung via Leistungsmessung.
Pumpe aktiv Licht an (rot) ansonsten aus.
Wenn TV läuft Licht auf weiss.
Das funktioniert soweit, aber was mich stört ist:
Wenn der TV ein und der Status des TV-Lichts aus ist (während dem Tage) sollte das TV-Licht bei Pumpe aus auch wieder ausgehen.
Ich habe es jetzt mit einer Abfrage der aktuellen Zeit gelöst, passt mir aber nicht.
Ich würde gerne den Status des TV Lichts mit einbinden. War TV Licht an oder nicht anstelle der Zeit.
Stehe voll auf dem Schlauch.......
<xml xmlns="https://developers.google.com/blockly/xml"> <block type="comment" id="xf6Ai-d-s4^k~5GEj-?f" x="-912" y="-587"> <field name="COMMENT">> 650W wird das Script aktiviert</field> <next> <block type="on" id="V9;i6Mf3N|51N3wECq7l"> <field name="OID">digitalstrom.0.apartment.userStates.1606057483</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="comment" id="[S+rT#E)`EJUBGUKX.r["> <field name="COMMENT">Pumpe ein</field> <next> <block type="controls_if" id="*5c:Sa:H|5;*Ct~h:q1{"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_operation" id="!YIXO}%Qy%)I5.,03RA?" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="q9NtE51wmru,P#VqD@^r"> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id="RBbK:$S64zVHMq}+VOhy"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="text" id=",1o2+9?%r#Nl:_r$_0+}"> <field name="TEXT">active</field> </block> </value> </block> </value> <value name="B"> <block type="time_compare" id="PMxkphy@=7ra0/zB#~6-"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">06:00</field> <field name="END_TIME">23:00</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="^9HQM`On!m(gu:aC)~Xv"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00124b001ee96a4f.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Z[kVm7EJ?mYLf;-wYa}/"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="0,a~fKF/bZXBEoGSst{r"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00124b001ee96a4f.color</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="xcI3BIh`2N*#Q!X{.aHT"> <field name="TEXT">FF0000</field> </block> </value> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_compare" id="01_0RRtxyNk]?v0~ycr:"> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id="BMmIz;t-C$u6CqBA[lED"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="text" id="pXb.V;`y^*fmdT[z:Pmy"> <field name="TEXT">inactive</field> </block> </value> </block> </value> <statement name="DO1"> <block type="comment" id="^Vc]Bd+9pi^3}r=|xxg_"> <field name="COMMENT">Pumpe wieder aus</field> <next> <block type="controls_if" id="dhZ5h5=aV$q8TqJJ5,K@"> <mutation elseif="1" else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="AMW--oD5u*/|2]+F0RZB"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="v-!wQW7jcZ1-5]Ux~xDB"> <field name="ATTR">val</field> <field name="OID">ping.0.raspberrypi-4.192_168_101_48</field> </block> </value> <value name="B"> <block type="logic_boolean" id="NzR{/~TQYqa2kF9cwy_9"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="WFZqIlw*VV~,?oSQt#,r"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00124b001ee96a4f.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="@yEr1sSOd~S{!3wzE4d?"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_operation" id="EH|`f:u_.Jz]EInbfe-y" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="DEEf%r?F0[1HM(l^*)K}"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="Ak5}O$d2YjqOm%jBYUDG"> <field name="ATTR">val</field> <field name="OID">ping.0.raspberrypi-4.192_168_101_48</field> </block> </value> <value name="B"> <block type="logic_boolean" id="pr/ziIYqhCHz6bw8ht[["> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="time_compare" id="G]U$mXbIJ7%-/*z;rG+;"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">08:00</field> <field name="END_TIME">16:30</field> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="}yN+y,uD_P$mC90E,iP?"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00124b001ee96a4f.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="w=:/U9fpBf;1ZN=^+Qu("> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <statement name="ELSE"> <block type="control" id="SH,V1jCWVqHe,N2B;hPs"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00124b001ee96a4f.color</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="s!!CO-4z~Iqg6j~K(R]V"> <field name="TEXT"></field> </block> </value> <next> <block type="control" id="f68=E)Lr}PcSm9xqN8^E"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00124b001ee96a4f.colortemp</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id=",n0NJ}3teu|T:m@:|J=q"> <field name="NUM">530</field> </block> </value> <next> <block type="control" id="?19;JxQhX((2L9N|!U?R"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.00124b001ee96a4f.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="xMx|x0l6`d.vMH:B[k:W"> <field name="NUM">100</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </xml>
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden