Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Sepp55464

    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

    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 11
    • Best 0
    • Groups 1

    Sepp55464

    @Sepp55464

    Starter

    -1
    Reputation
    26
    Profile views
    11
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Sepp55464 Follow
    Starter

    Latest posts made by Sepp55464

    • Intelliegenter Badezimmer-Lüfter

      Hallo liebe Community,

      ich erweitere mittlerweile ständig mein Smart Home und diesmal möchte ich das Klima im Badezimmer verbessern. Fenster ist leider keines vorhanden deswegen muss ein Lüfter dafür sorgen dass die feuchte Luft abtransportiert wird.

      Ich habe eine Aqara Temperatur- und Feuchtigkeitssensor.

      Wenn die Feuchtigkeit über 60% steigt dann soll die Lüftung für 10min (in meinen Skript 10s fürs Testen) aktiviert werden. Wenn die Feuchtigkeit danach immer noch über 60% beträgt dann soll die Lüftung für weitere 10min aktiv sein. Das soll so lange laufen bis die Feuchtigkeit unter 60% fällt.

      Wenn die Lüftung jedoch bereits vorher läuft, dann soll dieses Skript nicht aktiviert werden.

      Ich nehem an man arbeitet in diesem Fall mit Variablen nur leider stehe ich ein bisschen an.

      LG

      Das ist mein derzeit erstelltes Skript.

      Lüftung.png

      <xml xmlns="http://www.w3.org/1999/xhtml">
        <variables>
          <variable type="undefined" id="timeout">timeout</variable>
        </variables>
        <block type="on_ext" id="a3r3_!N#*$/9TCFkKNX[" x="88" y="-187">
          <mutation items="1"></mutation>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
            <shadow type="field_oid" id="HQ;okbu$SI;|n;Dkk1S6">
              <field name="oid">deconz.0.Sensors.4.humidity</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="controls_if" id="e{F%Pg/.X.Rn;t[KE_!@">
              <value name="IF0">
                <block type="logic_operation" id="5E3wav(lgtg(9=XLX^eW" inline="false">
                  <field name="OP">AND</field>
                  <value name="A">
                    <block type="logic_compare" id="98bAjIc~og[$6lZv0Oq7">
                      <field name="OP">GT</field>
                      <value name="A">
                        <block type="get_value" id="a`R5#[5gNHnDZau%nx~]">
                          <field name="ATTR">val</field>
                          <field name="OID">deconz.0.Sensors.4.humidity</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="math_number" id="0I8CZmyI#Lpgf?#.ML(l">
                          <field name="NUM">60</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_compare" id="5-l.dSX,iJn7rlkxY5~@">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="get_value" id="]EXDXZLE_nupQDL=9UD!">
                          <field name="ATTR">val</field>
                          <field name="OID">sonoff.0.SH_Dachboden_Wohnraumlueftumg.POWER</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_boolean" id="hAEfk}$pYCZ03ykkB%)u">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="control" id="Tb1m79?4)}=VDR[vRw-;">
                  <mutation delay_input="false"></mutation>
                  <field name="OID">sonoff.0.SH_Dachboden_Wohnraumlueftumg.POWER</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="logic_boolean" id="]/D4vbwt?)ZT$^RRs$t8">
                      <field name="BOOL">TRUE</field>
                    </block>
                  </value>
                  <next>
                    <block type="timeouts_settimeout" id="P,3P)V4JUV.x1UB.6FL{">
                      <field name="NAME">timeout</field>
                      <field name="DELAY">10</field>
                      <field name="UNIT">sec</field>
                      <statement name="STATEMENT">
                        <block type="controls_if" id="DenH/.VC+x?@,T~S~$W~">
                          <value name="IF0">
                            <block type="logic_operation" id="+ti;rez)!M3lcy4m9fZs" inline="false">
                              <field name="OP">AND</field>
                              <value name="A">
                                <block type="logic_compare" id="Q8d1ND=qLNT@XzM?DFq`">
                                  <field name="OP">LT</field>
                                  <value name="A">
                                    <block type="get_value" id="EOMn,OB)[R6_TTB,JXn$">
                                      <field name="ATTR">val</field>
                                      <field name="OID">deconz.0.Sensors.4.humidity</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="math_number" id="RY0llEkkBD=%sfc3GZGv">
                                      <field name="NUM">60</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_compare" id="1udT4.q?6b`8=1EO!nm1">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="get_value" id="3Us|JG/fR|syg~gM}8nU">
                                      <field name="ATTR">val</field>
                                      <field name="OID">sonoff.0.SH_Dachboden_Wohnraumlueftumg.POWER</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_boolean" id="n%281v#~@;ug{P!`y:F6">
                                      <field name="BOOL">TRUE</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="control" id="xP/jLW)NSY[ReUwJadXi">
                              <mutation delay_input="false"></mutation>
                              <field name="OID">sonoff.0.SH_Dachboden_Wohnraumlueftumg.POWER</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="ezS%/@xR^|O}PQ:]$o1+">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                            </block>
                          </statement>
                        </block>
                      </statement>
                    </block>
                  </next>
                </block>
              </statement>
            </block>
          </statement>
        </block>
      </xml>
      
      posted in Blockly
      S
      Sepp55464
    • RE: Waschmaschine

      Wie Asgothian schreibt. Beim oberen X "Waschstart" das ist bei mir ein Datenpunkt der mit dem Wert von meiner Steckdose befüllt wird beim Start des Waschvorgangs. Beim unteren X wird der Datenpunkt "Waschende" befüllt und anschließend werden beide Punkte subtrahiert um den Stromverbrauch des Waschvorgangs zu erhalten. Anschließend wird dieser Wert verwendet um die Kosten pro Waschvorgang zu berechnen berechnet.

      Waschmaschine.png

      LG

      posted in Blockly
      S
      Sepp55464
    • RE: Waschmaschine

      Vielleicht hilft dir mein Skript

      <xml xmlns="http://www.w3.org/1999/xhtml">
        <variables>
          <variable type="" id="Hhe!Hg(xh7gHuy(6hLlx">Waschmaschine_Dauerzaehler</variable>
          <variable type="" id=";y1}Hi=}pdvws@je`5g*">WaschmaschineEinAus</variable>
          <variable type="undefined" id="timeout3">timeout3</variable>
          <variable type="undefined" id="Dauerzaehler">Dauerzaehler</variable>
          <variable type="undefined" id="timeout2">timeout2</variable>
          <variable type="undefined" id="timeout">timeout</variable>
        </variables>
        <block type="variables_set" id="#tQ1FLFGKUhY/n@+2v+L" x="13" y="-62">
          <field name="VAR" id="Hhe!Hg(xh7gHuy(6hLlx" variabletype="">Waschmaschine_Dauerzaehler</field>
          <value name="VALUE">
            <block type="math_number" id="n7J3jl%iQv$o0|:ziws|">
              <field name="NUM">0</field>
            </block>
          </value>
          <next>
            <block type="variables_set" id="U@kYzXZme7c_*Uk)IuPm">
              <field name="VAR" id=";y1}Hi=}pdvws@je`5g*" variabletype="">WaschmaschineEinAus</field>
              <value name="VALUE">
                <block type="logic_boolean" id="#xjPS!k_7bYBUV}GE@Ji">
                  <field name="BOOL">FALSE</field>
                </block>
              </value>
              <next>
                <block type="on_ext" id="%l??Ns0%ZOhlZQJn)RIY">
                  <mutation items="1"></mutation>
                  <field name="CONDITION">ne</field>
                  <field name="ACK_CONDITION"></field>
                  <value name="OID0">
                    <shadow type="field_oid" id="8p+iN2CjzC1M$2o|Xq=m">
                      <field name="oid">sonoff.0.SH_Waschmaschine_Keller.ENERGY_Power</field>
                    </shadow>
                  </value>
                  <statement name="STATEMENT">
                    <block type="controls_if" id="-4y,4m5H6`8[U,UjJH(0">
                      <mutation elseif="1"></mutation>
                      <value name="IF0">
                        <block type="logic_operation" id="-^U__L=#GGG_LD~6o~hg" inline="false">
                          <field name="OP">AND</field>
                          <comment pinned="false" h="90" w="276">Falls Maschinengang erkannt (Wattzahl &gt;10) UND Modus ist auf falsch dann starte und schreibe den aktuellen verbrauch in DP</comment>
                          <value name="A">
                            <block type="logic_compare" id="-%Kg)H+S;{}Yyd@cqe=l">
                              <field name="OP">GTE</field>
                              <value name="A">
                                <block type="on_source" id="QS5)==Ahwtfe.nNTl`R@">
                                  <field name="ATTR">state.val</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="math_number" id="OT1x**T)z3hCtGxhqDDI">
                                  <field name="NUM">12</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_compare" id=",LW+*+gUB/lbO[yiNJdv">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="variables_get" id="[$/1md}o9xogfLp*!}WA">
                                  <field name="VAR" id=";y1}Hi=}pdvws@je`5g*" variabletype="">WaschmaschineEinAus</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="V}KP*,b;J,.3q802Q0l^">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="variables_set" id="HHIFm}6:*U#VVrIRv7e|">
                          <field name="VAR" id=";y1}Hi=}pdvws@je`5g*" variabletype="">WaschmaschineEinAus</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="%.`!o$LmcZOm0##5WWoJ">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                          <next>
                            <block type="telegram" id="5=|wMO.9[SHb3Zk2@BSt">
                              <field name="INSTANCE"></field>
                              <field name="LOG"></field>
                              <field name="SILENT">FALSE</field>
                              <field name="PARSEMODE">default</field>
                              <value name="MESSAGE">
                                <shadow type="text" id="Kg;[X9f6%4!)kf:3}RwL">
                                  <field name="TEXT">Waschmaschine gestartet</field>
                                </shadow>
                              </value>
                              <value name="USERNAME">
                                <block type="text" id="n|=#HQoo99ooPz3rBz4H">
                                  <field name="TEXT"></field>
                                </block>
                              </value>
                              <next>
                                <block type="control" id="[)j~N!(tB0+$IKN/TQV4">
                                  <mutation delay_input="false"></mutation>
                                  <field name="OID">javascript.0.Sonstige.Energieueberwachung.Waschmaschine.Waschstart</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="get_value" id="`*fHoyq$BY7kQu@1/t::">
                                      <field name="ATTR">val</field>
                                      <field name="OID">sonoff.0.SH_Waschmaschine_Keller.ENERGY_Total</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="timeouts_setinterval" id="80-Y$b]E}H$59*M]Ez/,">
                                      <field name="NAME">Dauerzaehler</field>
                                      <field name="INTERVAL">1</field>
                                      <field name="UNIT">min</field>
                                      <statement name="STATEMENT">
                                        <block type="math_change" id="dEv]%1h|Rwk;-L7)Wf_~">
                                          <field name="VAR" id="Hhe!Hg(xh7gHuy(6hLlx" variabletype="">Waschmaschine_Dauerzaehler</field>
                                          <value name="DELTA">
                                            <shadow type="math_number" id="a33@3paIo~y.$^q.*~*[">
                                              <field name="NUM">1</field>
                                            </shadow>
                                          </value>
                                        </block>
                                      </statement>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                      <value name="IF1">
                        <block type="logic_operation" id="[:7QWv4Op8S6o@lG45(y" inline="false">
                          <field name="OP">AND</field>
                          <comment pinned="false" h="94" w="164">Falls Verbrauch unter 3 Watt fällt und der Modus ist Wahr dann beende den Waschmodus.</comment>
                          <value name="A">
                            <block type="logic_compare" id="igy_8vlVI|k$sL-O!_Ya">
                              <field name="OP">LTE</field>
                              <value name="A">
                                <block type="on_source" id="oKi^o%$Qa%i0^MVE?s)Y">
                                  <field name="ATTR">state.val</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="math_number" id="*bx}yjZ_C7J2#/$NzLoS">
                                  <field name="NUM">4</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_compare" id="}A,!m2TVXL.^LQWg%!e|">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="variables_get" id="r/rnzWL?1!/.2!+pr@5(">
                                  <field name="VAR" id=";y1}Hi=}pdvws@je`5g*" variabletype="">WaschmaschineEinAus</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="S,c^%F*KOd(.(Q(BL!=g">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO1">
                        <block type="timeouts_settimeout" id="n6OU?~VJ9O@1;?;?v[}w">
                          <field name="NAME">timeout3</field>
                          <field name="DELAY">3</field>
                          <field name="UNIT">min</field>
                          <statement name="STATEMENT">
                            <block type="controls_if" id="Ru#jm0kAdQ5s!lWw8-ZF">
                              <value name="IF0">
                                <block type="logic_operation" id="JotSxV7L@8aDs,_6JaUV" inline="false">
                                  <field name="OP">AND</field>
                                  <comment pinned="false" h="94" w="164">Falls Verbrauch unter 3 Watt fällt und der Modus ist Wahr dann beende den Waschmodus.</comment>
                                  <value name="A">
                                    <block type="logic_compare" id="b/FaS!8mVUO{hnTc4B[6">
                                      <field name="OP">LTE</field>
                                      <value name="A">
                                        <block type="on_source" id="dVvU8WoX0X;M=N=WK;(h">
                                          <field name="ATTR">state.val</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="math_number" id=",F%?(OrtuVj_V~!;.6/+">
                                          <field name="NUM">4</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_compare" id="X8IF*lSL$KZGbw+(B`Vk">
                                      <field name="OP">EQ</field>
                                      <value name="A">
                                        <block type="variables_get" id="y~Gc(BiT2KWngQJRPcmM">
                                          <field name="VAR" id=";y1}Hi=}pdvws@je`5g*" variabletype="">WaschmaschineEinAus</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_boolean" id=",mTckZE~,,T--ya6Jl^i">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="timeouts_clearinterval" id="U,jzx?Ey?4jm/#tjYSPO">
                                  <field name="NAME">Dauerzaehler</field>
                                  <next>
                                    <block type="variables_set" id="vj!Vu=sDr5yt.:ZU#OfU">
                                      <field name="VAR" id=";y1}Hi=}pdvws@je`5g*" variabletype="">WaschmaschineEinAus</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="5xCJ(QRB3mIo5.*f1Fsg">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id="ZJLwAoNe[2g:dp:QCr=^">
                                          <mutation delay_input="false"></mutation>
                                          <field name="OID">javascript.0.Sonstige.Energieueberwachung.Waschmaschine.Waschende</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="get_value" id="`sEwFAU9zKYNAz{GFsgC">
                                              <field name="ATTR">val</field>
                                              <field name="OID">sonoff.0.SH_Waschmaschine_Keller.ENERGY_Total</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="timeouts_settimeout" id=",NjGW@Wtt+n7RKNkcxK!">
                                              <field name="NAME">timeout2</field>
                                              <field name="DELAY">5</field>
                                              <field name="UNIT">sec</field>
                                              <statement name="STATEMENT">
                                                <block type="telegram" id=":)Sqh|eio_J%+h7Q@6nJ">
                                                  <field name="INSTANCE"></field>
                                                  <field name="LOG"></field>
                                                  <field name="SILENT">FALSE</field>
                                                  <field name="PARSEMODE">default</field>
                                                  <value name="MESSAGE">
                                                    <shadow type="text" id="zaE.r=+WylppU_4Nmdx~">
                                                      <field name="TEXT">Waschmaschine ist fertig</field>
                                                    </shadow>
                                                    <block type="text_join" id="3,~.TJZeugM.!B%S1^X}">
                                                      <mutation items="13"></mutation>
                                                      <value name="ADD0">
                                                        <block type="text" id="|9?4%ic*sy2}Q088ry:q">
                                                          <field name="TEXT">Die Waschmaschine ist fertig!</field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD1">
                                                        <block type="time_get" id="a?D^RPe+s+Si=*kkfgj[">
                                                          <mutation format="true" language="false"></mutation>
                                                          <field name="OPTION">custom</field>
                                                          <field name="FORMAT">\n</field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD2">
                                                        <block type="text" id="bo,?noy~Q_fU|mOY{L#L">
                                                          <field name="TEXT">Dauer: </field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD3">
                                                        <block type="variables_get" id="UWw#{Zvec^I@@szY?`2w">
                                                          <field name="VAR" id="Hhe!Hg(xh7gHuy(6hLlx" variabletype="">Waschmaschine_Dauerzaehler</field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD4">
                                                        <block type="text" id="M^]iVwQ,prG!`L|C~)~g">
                                                          <field name="TEXT"> Minuten.</field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD5">
                                                        <block type="time_get" id="8u(%B16pz]eRN}PV5dst">
                                                          <mutation format="true" language="false"></mutation>
                                                          <field name="OPTION">custom</field>
                                                          <field name="FORMAT">\n</field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD6">
                                                        <block type="text" id="5C!gUPV|`b@=iFX@aJeI">
                                                          <field name="TEXT">Verbrauch: </field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD7">
                                                        <block type="math_rndfixed" id="VKS0i5D@QcR(K8~HBVt*">
                                                          <field name="n">2</field>
                                                          <value name="x">
                                                            <shadow type="math_number" id="/mj1cO@W#rIj@,l-hhT(">
                                                              <field name="NUM">3.1234</field>
                                                            </shadow>
                                                            <block type="math_arithmetic" id="a9lUI_@{%c|:}2r]9,3=">
                                                              <field name="OP">MINUS</field>
                                                              <value name="A">
                                                                <shadow type="math_number" id="Vt0U^|-5/xSi)-0R$lvC">
                                                                  <field name="NUM">1</field>
                                                                </shadow>
                                                                <block type="get_value" id="n.xJH}U%IgpOj2qa_[d7">
                                                                  <field name="ATTR">val</field>
                                                                  <field name="OID">javascript.0.Sonstige.Energieueberwachung.Waschmaschine.Waschende</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <shadow type="math_number" id="kjky7:Z,vFRr8V{DWBlc">
                                                                  <field name="NUM">1</field>
                                                                </shadow>
                                                                <block type="get_value" id="g%bFIVmFv8)gI{%-jcRB">
                                                                  <field name="ATTR">val</field>
                                                                  <field name="OID">javascript.0.Sonstige.Energieueberwachung.Waschmaschine.Waschstart</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <value name="ADD8">
                                                        <block type="text" id="?3@1QC?jSS#7UdzSm),X">
                                                          <field name="TEXT"> kWh.</field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD9">
                                                        <block type="time_get" id="BE%B6PWxaT1!ksrO8=F}">
                                                          <mutation format="true" language="false"></mutation>
                                                          <field name="OPTION">custom</field>
                                                          <field name="FORMAT">\n</field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD10">
                                                        <block type="text" id="OZG2U8*$5^Y~7us`n98M">
                                                          <field name="TEXT">Kosten: </field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD11">
                                                        <block type="math_arithmetic" id="BCwbs!Im7D^MQ^?u-n[?">
                                                          <field name="OP">MULTIPLY</field>
                                                          <value name="A">
                                                            <shadow type="math_number" id="$.jsBRUo-cSN{]xL{GW/">
                                                              <field name="NUM">1</field>
                                                            </shadow>
                                                            <block type="math_rndfixed" id="vMz`ArhYYU5KvzU!CJM-">
                                                              <field name="n">2</field>
                                                              <value name="x">
                                                                <shadow type="math_number" id=",fEIqVcGmmf4,!4)?0b^">
                                                                  <field name="NUM">3.1234</field>
                                                                </shadow>
                                                                <block type="math_arithmetic" id="EBsPk7Wu}B*pVRwu`11t">
                                                                  <field name="OP">MINUS</field>
                                                                  <value name="A">
                                                                    <shadow type="math_number" id="Vt0U^|-5/xSi)-0R$lvC">
                                                                      <field name="NUM">1</field>
                                                                    </shadow>
                                                                    <block type="get_value" id="X+Oe]i0kB*xR=4rB/=p3">
                                                                      <field name="ATTR">val</field>
                                                                      <field name="OID">javascript.0.Sonstige.Energieueberwachung.Waschmaschine.Waschende</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <shadow type="math_number" id="kjky7:Z,vFRr8V{DWBlc">
                                                                      <field name="NUM">1</field>
                                                                    </shadow>
                                                                    <block type="get_value" id="WS0!QAt)dlmkHoRl`b^7">
                                                                      <field name="ATTR">val</field>
                                                                      <field name="OID">javascript.0.Sonstige.Energieueberwachung.Waschmaschine.Waschstart</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <shadow type="math_number" id="fTs9_kewk!xCWm]N#JQd">
                                                              <field name="NUM">1</field>
                                                            </shadow>
                                                            <block type="get_value" id="0#$phz$rjNdH,Sw+70H/">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">javascript.0.Sonstige.Energieueberwachung.Strompreis</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <value name="ADD12">
                                                        <block type="text" id="`g7T6{aw*)Xb;2tcAr,;">
                                                          <field name="TEXT"> €.</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <value name="USERNAME">
                                                    <block type="text" id="ClQ#mBX9^]LxIc[8FtLL">
                                                      <field name="TEXT"></field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </statement>
                                              <next>
                                                <block type="timeouts_settimeout" id="^Q4mos%.lH(nScu^]C,+">
                                                  <field name="NAME">timeout</field>
                                                  <field name="DELAY">60</field>
                                                  <field name="UNIT">sec</field>
                                                  <statement name="STATEMENT">
                                                    <block type="variables_set" id="c+9yEbR]14.2z]jg^oG?">
                                                      <field name="VAR" id="Hhe!Hg(xh7gHuy(6hLlx" variabletype="">Waschmaschine_Dauerzaehler</field>
                                                      <value name="VALUE">
                                                        <block type="math_number" id="^uz`+l@#(*|kCFi{#TXz">
                                                          <field name="NUM">0</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </statement>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                            </block>
                          </statement>
                        </block>
                      </statement>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </next>
        </block>
      </xml>
      

      LG

      posted in Blockly
      S
      Sepp55464
    • RE: Briefkastenüberwachung mittels Aqara Fensterkontakte

      Jetzt mit UND hat es funktioniert. Vielen Dank an alle!
      Hier das funktionierende Skript.

      Blockly Briefkasten.png

      posted in Blockly
      S
      Sepp55464
    • RE: Briefkastenüberwachung mittels Aqara Fensterkontakte

      Jetzt habe ich auch nocht das folgende Skript getestet. Hat aber auch keine Verbesserung gebracht.
      Mittlerweile weiß ich nicht mehr weiter.
      Hab auch noch zu Beginn hinzugefügt dass die Variable auf falsch gestellt wird.

      Blockly Briefkasten.png
      Blockly Briefkasten1.png

      Gibt es auch noch eine andere Herangehensweise?

      LG

      posted in Blockly
      S
      Sepp55464
    • RE: Briefkastenüberwachung mittels Aqara Fensterkontakte

      Blockly Briefkasten.png

      posted in Blockly
      S
      Sepp55464
    • RE: Briefkastenüberwachung mittels Aqara Fensterkontakte

      Habe es jetzt genau so umgesetzt.

      Blockly Briefkasten.png

      Leider funktioniert es nicht. Ich bekomme innerhalb einer Minute mehrere Nachrichten wenn der Sensor auslöst.

      Vom Ablauf des Skripts müsste es ja passen. Ich verstehe nicht wo der Fehler liegt.

      posted in Blockly
      S
      Sepp55464
    • Briefkastenüberwachung mittels Aqara Fensterkontakte

      Hallo

      Meine Idee ist es die Aqara Fensterkontakte in den Briefkasten zu kleben und eine Benachrichtigung über Telegram zu erhalten sobald der Briefkasten geöffnet wurde.

      Was ich vermeiden möchte ist dass wenn der Briefkasten zB 3 mal hintereinander geöffnet wird dass ich dann 3 Nachrichten bekomme.

      Wie "friere" ich ein Skript für 1 Minute ein? Wenn der Briefkasten 4 mal pro Minute geöffnet wird möchte ich nur zu beginn eine Nachricht erhalten.

      Hier ist mein bisher erstelltes Skript. Ich hoffe jemand kann mir hier weiterhelfen bzw. ein einfacheres Skript zeigen.

      Blockly Briefkasten.png

      LG
      Andi

      posted in Blockly
      S
      Sepp55464
    • RE: Waschmaschine

      Ich habs mittlerweile geschaft und ein funktionierendes Timeout eingefügt.
      Hier die Lösung:

      Blockly Waschmaschine.png

      LG
      Andi

      posted in Blockly
      S
      Sepp55464
    • RE: Waschmaschine

      @wendy2702 Hab ich bereits gesucht. Was brauchbares war leider nicht dabei. Ich weiß dass ich irgendwie die Timeout Funktion verwenden muss nur weiß ich leider nicht genau wie ich das in mein Skript einbauen soll.

      LG

      posted in Blockly
      S
      Sepp55464
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
    The ioBroker Community 2014-2023
    logo