Weiter zum Inhalt
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Hell
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dunkel
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Script für Schalter und Bewegungsmelder ** gelöst **

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    762

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    18
    1
    6.1k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.5k

Script für Schalter und Bewegungsmelder ** gelöst **

Geplant Angeheftet Gesperrt Verschoben Blockly
8 Beiträge 2 Kommentatoren 473 Aufrufe 1 Beobachtet
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • Horst BöttcherH Offline
    Horst BöttcherH Offline
    Horst Böttcher
    schrieb am zuletzt editiert von Horst Böttcher
    #1

    Script teil vorher würde nur 1 daten punkt abgefragt ob true oder false

    <block xmlns="https://developers.google.com/blockly/xml" type="on_ext" id="ov}D(Be]`(nzX#Js!}]h" x="113" y="-37">
      <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="SAKP82;OM?2N%*fzz[{{">
          <field name="oid">zigbee.0.001788010bdb63a3.on_press</field>
        </shadow>
      </value>
      <statement name="STATEMENT">
        <block type="control" id="y7[mgz]-NK5R{5ajJg|4">
          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
          <field name="OID">zigbee.0.00158d0003275cf3.state</field>
          <field name="WITH_DELAY">FALSE</field>
          <value name="VALUE">
            <block type="on_source" id="x}P/*I%sVvM{9=$Nd)ln">
              <field name="ATTR">state.val</field>
            </block>
          </value>
          <next>
            <block type="variables_set" id="iA|yzw[fYyfX#3gi%pcq">
              <field name="VAR" id="oSQQ2fSPDU*qU`rN:}(2">manuell_ein</field>
              <value name="VALUE">
                <block type="on_source" id="Rx]e4#tp[EJaM4_]T6Y^">
                  <field name="ATTR">state.val</field>
                </block>
              </value>
              <next>
                <block type="controls_if" id="?[IJ/6:3lbB5u-m,QzBJ">
                  <value name="IF0">
                    <block type="variables_get" id="ku~F=kmsW^D]e/3T{6]5">
                      <field name="VAR" id="oSQQ2fSPDU*qU`rN:}(2">manuell_ein</field>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="timeouts_cleartimeout" id="j9UA4-ObYtdM3kj4!fvq">
                      <field name="NAME">timeout</field>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </next>
        </block>
      </statement>
    </block>
    

    445534f2-0dc5-4be2-b769-db1dcdfe6ae8-image.png
    im neuen sind es 2 unterschiedliche

    <xml xmlns="https://developers.google.com/blockly/xml">
      <block type="on_ext" id="3)0xb@gM3^9`aYO+ddjs" x="87" y="-112">
        <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="MUE-tV{njdV4VS:^YuW#">
            <field name="oid">zigbee.0.001788010bdb63a3.on_press</field>
          </shadow>
        </value>
        <statement name="STATEMENT">
          <block type="control" id="hH#8KL}T2emPgo!YHqwM">
            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
            <field name="OID">zigbee.0.00158d0003275cf3.state</field>
            <field name="WITH_DELAY">FALSE</field>
            <value name="VALUE">
              <block type="logic_boolean" id=",Al96J;tkLE+[!tOC_TT">
                <field name="BOOL">TRUE</field>
              </block>
            </value>
          </block>
        </statement>
        <next>
          <block type="on_ext" id="bu0Nedy?)lN++yIzSXYy">
            <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="y$w*dkn%~kg)b.vi2LGJ">
                <field name="oid">zigbee.0.001788010bdb63a3.off_press</field>
              </shadow>
            </value>
            <statement name="STATEMENT">
              <block type="control" id="b9)`|#xwOkHj#J8H|x4}">
                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                <field name="OID">zigbee.0.00158d0003275cf3.state</field>
                <field name="WITH_DELAY">FALSE</field>
                <value name="VALUE">
                  <block type="logic_boolean" id="#1]Qdl:%w-*|bvSGgjNJ">
                    <field name="BOOL">FALSE</field>
                  </block>
                </value>
              </block>
            </statement>
          </block>
        </next>
      </block>
    </xml>
    

    85838133-03d7-42f2-bd38-5f74932e8c99-image.png

    ioBroker auf Proxmox (Debian) auf LENOVO PC Thinkcentre als Produktivsystem

    paul53P 1 Antwort Letzte Antwort
    0
    • Horst BöttcherH Horst Böttcher

      Script teil vorher würde nur 1 daten punkt abgefragt ob true oder false

      <block xmlns="https://developers.google.com/blockly/xml" type="on_ext" id="ov}D(Be]`(nzX#Js!}]h" x="113" y="-37">
        <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="SAKP82;OM?2N%*fzz[{{">
            <field name="oid">zigbee.0.001788010bdb63a3.on_press</field>
          </shadow>
        </value>
        <statement name="STATEMENT">
          <block type="control" id="y7[mgz]-NK5R{5ajJg|4">
            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
            <field name="OID">zigbee.0.00158d0003275cf3.state</field>
            <field name="WITH_DELAY">FALSE</field>
            <value name="VALUE">
              <block type="on_source" id="x}P/*I%sVvM{9=$Nd)ln">
                <field name="ATTR">state.val</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="iA|yzw[fYyfX#3gi%pcq">
                <field name="VAR" id="oSQQ2fSPDU*qU`rN:}(2">manuell_ein</field>
                <value name="VALUE">
                  <block type="on_source" id="Rx]e4#tp[EJaM4_]T6Y^">
                    <field name="ATTR">state.val</field>
                  </block>
                </value>
                <next>
                  <block type="controls_if" id="?[IJ/6:3lbB5u-m,QzBJ">
                    <value name="IF0">
                      <block type="variables_get" id="ku~F=kmsW^D]e/3T{6]5">
                        <field name="VAR" id="oSQQ2fSPDU*qU`rN:}(2">manuell_ein</field>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="timeouts_cleartimeout" id="j9UA4-ObYtdM3kj4!fvq">
                        <field name="NAME">timeout</field>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
      </block>
      

      445534f2-0dc5-4be2-b769-db1dcdfe6ae8-image.png
      im neuen sind es 2 unterschiedliche

      <xml xmlns="https://developers.google.com/blockly/xml">
        <block type="on_ext" id="3)0xb@gM3^9`aYO+ddjs" x="87" y="-112">
          <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="MUE-tV{njdV4VS:^YuW#">
              <field name="oid">zigbee.0.001788010bdb63a3.on_press</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="control" id="hH#8KL}T2emPgo!YHqwM">
              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
              <field name="OID">zigbee.0.00158d0003275cf3.state</field>
              <field name="WITH_DELAY">FALSE</field>
              <value name="VALUE">
                <block type="logic_boolean" id=",Al96J;tkLE+[!tOC_TT">
                  <field name="BOOL">TRUE</field>
                </block>
              </value>
            </block>
          </statement>
          <next>
            <block type="on_ext" id="bu0Nedy?)lN++yIzSXYy">
              <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="y$w*dkn%~kg)b.vi2LGJ">
                  <field name="oid">zigbee.0.001788010bdb63a3.off_press</field>
                </shadow>
              </value>
              <statement name="STATEMENT">
                <block type="control" id="b9)`|#xwOkHj#J8H|x4}">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">zigbee.0.00158d0003275cf3.state</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="logic_boolean" id="#1]Qdl:%w-*|bvSGgjNJ">
                      <field name="BOOL">FALSE</field>
                    </block>
                  </value>
                </block>
              </statement>
            </block>
          </next>
        </block>
      </xml>
      

      85838133-03d7-42f2-bd38-5f74932e8c99-image.png

      paul53P Offline
      paul53P Offline
      paul53
      schrieb am zuletzt editiert von paul53
      #2

      @horst-böttcher sagte: im neuen sind es 2 unterschiedliche

      Wo ist der Teil für den BWM?

      Blockly_temp.JPG

      Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
      Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

      Horst BöttcherH 1 Antwort Letzte Antwort
      0
      • paul53P paul53

        @horst-böttcher sagte: im neuen sind es 2 unterschiedliche

        Wo ist der Teil für den BWM?

        Blockly_temp.JPG

        Horst BöttcherH Offline
        Horst BöttcherH Offline
        Horst Böttcher
        schrieb am zuletzt editiert von Horst Böttcher
        #3

        @paul53
        Das ist das alte script mit bewegungsmelder

        <xml xmlns="https://developers.google.com/blockly/xml">
          <variables>
            <variable id="oSQQ2fSPDU*qU`rN:}(2">manuell_ein</variable>
            <variable type="timeout" id="timeout">timeout</variable>
          </variables>
          <block type="on_ext" id=")7viWO.,ae+4/i$Su{v1" x="123" y="-645">
            <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="C{a`XU,:c^M[AsDI7qnt">
                <field name="oid">zigbee.0.bc33acfffec14868.occupancy</field>
              </shadow>
            </value>
            <statement name="STATEMENT">
              <block type="controls_if" id="9DsA`f[*y[El#p^C2%KJ">
                <value name="IF0">
                  <block type="logic_negate" id="]lJ$,j5ZAt!F_OH~3dPJ">
                    <value name="BOOL">
                      <block type="variables_get" id=".ga$.J5quUYHnJ$p!JMm">
                        <field name="VAR" id="oSQQ2fSPDU*qU`rN:}(2">manuell_ein</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="controls_if" id="_LepHk2DO1;iMdeh~a2%">
                    <mutation else="1"></mutation>
                    <value name="IF0">
                      <block type="logic_operation" id="al@D4zbs@a1Hl4,p2,=#" inline="false">
                        <field name="OP">AND</field>
                        <value name="B">
                          <block type="on_source" id="Ky@{xEqs3cF|h-fMkq0s">
                            <field name="ATTR">state.val</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="timeouts_cleartimeout" id="0I-sY/$R5#4_j|mwo80c">
                        <field name="NAME">timeout</field>
                        <next>
                          <block type="controls_if" id="7M)STun%Th0%[,s830xz">
                            <value name="IF0">
                              <block type="logic_negate" id="X[cT]3:Cqum?`;{Qo!5N">
                                <value name="BOOL">
                                  <block type="get_value" id="Tj5cklBH,7}eUyV46O,0">
                                    <field name="ATTR">val</field>
                                    <field name="OID">zigbee.0.00158d0003275cf3.state</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="control" id="pfAa@mhg2tdjGForYOK(">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">zigbee.0.00158d0003275cf3.state</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="cpv%OP+fg[x*Qd`Gr6NN">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="control" id="qD)6D1AMS,$W,~NY:RD$">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">zigbee.0.00158d0003275cf3.brightness</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="get_value" id="%V{6.cnTS#f,1r!EM?vL">
                                        <field name="ATTR">val</field>
                                        <field name="OID">0_userdata.0.Sonstieges.Farbtemperatur.Helldunkel_nach_Zeit</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="control" id="I/s7EPsv2CY=Hv?Ua-R#">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">zigbee.0.00158d0003275cf3.colortemp</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="get_value" id="`,;7T7Is)a*Kl~roS~Fg">
                                            <field name="ATTR">val</field>
                                            <field name="OID">0_userdata.0.Sonstieges.Farbtemperatur.Kalt_Warm</field>
                                          </block>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <statement name="ELSE">
                      <block type="timeouts_settimeout" id="1;lyA@b?X+`r[NP8asP%">
                        <field name="NAME">timeout</field>
                        <field name="DELAY">2</field>
                        <field name="UNIT">min</field>
                        <statement name="STATEMENT">
                          <block type="controls_if" id="wye@q.,:qFUo-yr{qC/;">
                            <value name="IF0">
                              <block type="get_value" id="ZG#|FoPrKpBt2=an^%6T">
                                <field name="ATTR">val</field>
                                <field name="OID">zigbee.0.00158d0003275cf3.state</field>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="control" id="nh8Y1!h#oxfCpka$9MOP">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">zigbee.0.00158d0003275cf3.state</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="KzzUYq@FR=cqOTZ$JFrl">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                          </block>
                        </statement>
                      </block>
                    </statement>
                  </block>
                </statement>
              </block>
            </statement>
            <next>
              <block type="on_ext" id="ov}D(Be]`(nzX#Js!}]h">
                <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="SAKP82;OM?2N%*fzz[{{">
                    <field name="oid">zigbee.0.001788010bdb63a3.on_press</field>
                  </shadow>
                </value>
                <statement name="STATEMENT">
                  <block type="control" id="y7[mgz]-NK5R{5ajJg|4">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">zigbee.0.00158d0003275cf3.state</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="on_source" id="x}P/*I%sVvM{9=$Nd)ln">
                        <field name="ATTR">state.val</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="iA|yzw[fYyfX#3gi%pcq">
                        <field name="VAR" id="oSQQ2fSPDU*qU`rN:}(2">manuell_ein</field>
                        <value name="VALUE">
                          <block type="on_source" id="Rx]e4#tp[EJaM4_]T6Y^">
                            <field name="ATTR">state.val</field>
                          </block>
                        </value>
                        <next>
                          <block type="controls_if" id="?[IJ/6:3lbB5u-m,QzBJ">
                            <value name="IF0">
                              <block type="variables_get" id="ku~F=kmsW^D]e/3T{6]5">
                                <field name="VAR" id="oSQQ2fSPDU*qU`rN:}(2">manuell_ein</field>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="timeouts_cleartimeout" id="j9UA4-ObYtdM3kj4!fvq">
                                <field name="NAME">timeout</field>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </xml>
        

        ecbbbfe5-8a85-4235-9aad-d86425fb3e12-image.png

        ioBroker auf Proxmox (Debian) auf LENOVO PC Thinkcentre als Produktivsystem

        paul53P 2 Antworten Letzte Antwort
        0
        • Horst BöttcherH Horst Böttcher

          @paul53
          Das ist das alte script mit bewegungsmelder

          <xml xmlns="https://developers.google.com/blockly/xml">
            <variables>
              <variable id="oSQQ2fSPDU*qU`rN:}(2">manuell_ein</variable>
              <variable type="timeout" id="timeout">timeout</variable>
            </variables>
            <block type="on_ext" id=")7viWO.,ae+4/i$Su{v1" x="123" y="-645">
              <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="C{a`XU,:c^M[AsDI7qnt">
                  <field name="oid">zigbee.0.bc33acfffec14868.occupancy</field>
                </shadow>
              </value>
              <statement name="STATEMENT">
                <block type="controls_if" id="9DsA`f[*y[El#p^C2%KJ">
                  <value name="IF0">
                    <block type="logic_negate" id="]lJ$,j5ZAt!F_OH~3dPJ">
                      <value name="BOOL">
                        <block type="variables_get" id=".ga$.J5quUYHnJ$p!JMm">
                          <field name="VAR" id="oSQQ2fSPDU*qU`rN:}(2">manuell_ein</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="controls_if" id="_LepHk2DO1;iMdeh~a2%">
                      <mutation else="1"></mutation>
                      <value name="IF0">
                        <block type="logic_operation" id="al@D4zbs@a1Hl4,p2,=#" inline="false">
                          <field name="OP">AND</field>
                          <value name="B">
                            <block type="on_source" id="Ky@{xEqs3cF|h-fMkq0s">
                              <field name="ATTR">state.val</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="timeouts_cleartimeout" id="0I-sY/$R5#4_j|mwo80c">
                          <field name="NAME">timeout</field>
                          <next>
                            <block type="controls_if" id="7M)STun%Th0%[,s830xz">
                              <value name="IF0">
                                <block type="logic_negate" id="X[cT]3:Cqum?`;{Qo!5N">
                                  <value name="BOOL">
                                    <block type="get_value" id="Tj5cklBH,7}eUyV46O,0">
                                      <field name="ATTR">val</field>
                                      <field name="OID">zigbee.0.00158d0003275cf3.state</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="control" id="pfAa@mhg2tdjGForYOK(">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">zigbee.0.00158d0003275cf3.state</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id="cpv%OP+fg[x*Qd`Gr6NN">
                                      <field name="BOOL">TRUE</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="control" id="qD)6D1AMS,$W,~NY:RD$">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">zigbee.0.00158d0003275cf3.brightness</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="get_value" id="%V{6.cnTS#f,1r!EM?vL">
                                          <field name="ATTR">val</field>
                                          <field name="OID">0_userdata.0.Sonstieges.Farbtemperatur.Helldunkel_nach_Zeit</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id="I/s7EPsv2CY=Hv?Ua-R#">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">zigbee.0.00158d0003275cf3.colortemp</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="get_value" id="`,;7T7Is)a*Kl~roS~Fg">
                                              <field name="ATTR">val</field>
                                              <field name="OID">0_userdata.0.Sonstieges.Farbtemperatur.Kalt_Warm</field>
                                            </block>
                                          </value>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                            </block>
                          </next>
                        </block>
                      </statement>
                      <statement name="ELSE">
                        <block type="timeouts_settimeout" id="1;lyA@b?X+`r[NP8asP%">
                          <field name="NAME">timeout</field>
                          <field name="DELAY">2</field>
                          <field name="UNIT">min</field>
                          <statement name="STATEMENT">
                            <block type="controls_if" id="wye@q.,:qFUo-yr{qC/;">
                              <value name="IF0">
                                <block type="get_value" id="ZG#|FoPrKpBt2=an^%6T">
                                  <field name="ATTR">val</field>
                                  <field name="OID">zigbee.0.00158d0003275cf3.state</field>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="control" id="nh8Y1!h#oxfCpka$9MOP">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">zigbee.0.00158d0003275cf3.state</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id="KzzUYq@FR=cqOTZ$JFrl">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                </block>
                              </statement>
                            </block>
                          </statement>
                        </block>
                      </statement>
                    </block>
                  </statement>
                </block>
              </statement>
              <next>
                <block type="on_ext" id="ov}D(Be]`(nzX#Js!}]h">
                  <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="SAKP82;OM?2N%*fzz[{{">
                      <field name="oid">zigbee.0.001788010bdb63a3.on_press</field>
                    </shadow>
                  </value>
                  <statement name="STATEMENT">
                    <block type="control" id="y7[mgz]-NK5R{5ajJg|4">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">zigbee.0.00158d0003275cf3.state</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="on_source" id="x}P/*I%sVvM{9=$Nd)ln">
                          <field name="ATTR">state.val</field>
                        </block>
                      </value>
                      <next>
                        <block type="variables_set" id="iA|yzw[fYyfX#3gi%pcq">
                          <field name="VAR" id="oSQQ2fSPDU*qU`rN:}(2">manuell_ein</field>
                          <value name="VALUE">
                            <block type="on_source" id="Rx]e4#tp[EJaM4_]T6Y^">
                              <field name="ATTR">state.val</field>
                            </block>
                          </value>
                          <next>
                            <block type="controls_if" id="?[IJ/6:3lbB5u-m,QzBJ">
                              <value name="IF0">
                                <block type="variables_get" id="ku~F=kmsW^D]e/3T{6]5">
                                  <field name="VAR" id="oSQQ2fSPDU*qU`rN:}(2">manuell_ein</field>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="timeouts_cleartimeout" id="j9UA4-ObYtdM3kj4!fvq">
                                  <field name="NAME">timeout</field>
                                </block>
                              </statement>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </xml>
          

          ecbbbfe5-8a85-4235-9aad-d86425fb3e12-image.png

          paul53P Offline
          paul53P Offline
          paul53
          schrieb am zuletzt editiert von
          #4

          @horst-böttcher sagte: Das ist das alte script mit bewegungsmelder

          ... und das funktioniert nicht?
          Wie verhalten sich "on_press" und "off_press"?

          Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
          Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

          Horst BöttcherH 1 Antwort Letzte Antwort
          0
          • paul53P paul53

            @horst-böttcher sagte: Das ist das alte script mit bewegungsmelder

            ... und das funktioniert nicht?
            Wie verhalten sich "on_press" und "off_press"?

            Horst BöttcherH Offline
            Horst BöttcherH Offline
            Horst Böttcher
            schrieb am zuletzt editiert von
            #5

            @paul53
            Press on und off gehen kurz auf True und dann wieder auf false
            das ist dieser Taster
            51Zb-fd5PXL.SL1500.jpg

            ioBroker auf Proxmox (Debian) auf LENOVO PC Thinkcentre als Produktivsystem

            1 Antwort Letzte Antwort
            0
            • Horst BöttcherH Horst Böttcher

              @paul53
              Das ist das alte script mit bewegungsmelder

              <xml xmlns="https://developers.google.com/blockly/xml">
                <variables>
                  <variable id="oSQQ2fSPDU*qU`rN:}(2">manuell_ein</variable>
                  <variable type="timeout" id="timeout">timeout</variable>
                </variables>
                <block type="on_ext" id=")7viWO.,ae+4/i$Su{v1" x="123" y="-645">
                  <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="C{a`XU,:c^M[AsDI7qnt">
                      <field name="oid">zigbee.0.bc33acfffec14868.occupancy</field>
                    </shadow>
                  </value>
                  <statement name="STATEMENT">
                    <block type="controls_if" id="9DsA`f[*y[El#p^C2%KJ">
                      <value name="IF0">
                        <block type="logic_negate" id="]lJ$,j5ZAt!F_OH~3dPJ">
                          <value name="BOOL">
                            <block type="variables_get" id=".ga$.J5quUYHnJ$p!JMm">
                              <field name="VAR" id="oSQQ2fSPDU*qU`rN:}(2">manuell_ein</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="controls_if" id="_LepHk2DO1;iMdeh~a2%">
                          <mutation else="1"></mutation>
                          <value name="IF0">
                            <block type="logic_operation" id="al@D4zbs@a1Hl4,p2,=#" inline="false">
                              <field name="OP">AND</field>
                              <value name="B">
                                <block type="on_source" id="Ky@{xEqs3cF|h-fMkq0s">
                                  <field name="ATTR">state.val</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="timeouts_cleartimeout" id="0I-sY/$R5#4_j|mwo80c">
                              <field name="NAME">timeout</field>
                              <next>
                                <block type="controls_if" id="7M)STun%Th0%[,s830xz">
                                  <value name="IF0">
                                    <block type="logic_negate" id="X[cT]3:Cqum?`;{Qo!5N">
                                      <value name="BOOL">
                                        <block type="get_value" id="Tj5cklBH,7}eUyV46O,0">
                                          <field name="ATTR">val</field>
                                          <field name="OID">zigbee.0.00158d0003275cf3.state</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="control" id="pfAa@mhg2tdjGForYOK(">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">zigbee.0.00158d0003275cf3.state</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="cpv%OP+fg[x*Qd`Gr6NN">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id="qD)6D1AMS,$W,~NY:RD$">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">zigbee.0.00158d0003275cf3.brightness</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="get_value" id="%V{6.cnTS#f,1r!EM?vL">
                                              <field name="ATTR">val</field>
                                              <field name="OID">0_userdata.0.Sonstieges.Farbtemperatur.Helldunkel_nach_Zeit</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="control" id="I/s7EPsv2CY=Hv?Ua-R#">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">zigbee.0.00158d0003275cf3.colortemp</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="get_value" id="`,;7T7Is)a*Kl~roS~Fg">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">0_userdata.0.Sonstieges.Farbtemperatur.Kalt_Warm</field>
                                                </block>
                                              </value>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                </block>
                              </next>
                            </block>
                          </statement>
                          <statement name="ELSE">
                            <block type="timeouts_settimeout" id="1;lyA@b?X+`r[NP8asP%">
                              <field name="NAME">timeout</field>
                              <field name="DELAY">2</field>
                              <field name="UNIT">min</field>
                              <statement name="STATEMENT">
                                <block type="controls_if" id="wye@q.,:qFUo-yr{qC/;">
                                  <value name="IF0">
                                    <block type="get_value" id="ZG#|FoPrKpBt2=an^%6T">
                                      <field name="ATTR">val</field>
                                      <field name="OID">zigbee.0.00158d0003275cf3.state</field>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="control" id="nh8Y1!h#oxfCpka$9MOP">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">zigbee.0.00158d0003275cf3.state</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="KzzUYq@FR=cqOTZ$JFrl">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </statement>
                                </block>
                              </statement>
                            </block>
                          </statement>
                        </block>
                      </statement>
                    </block>
                  </statement>
                  <next>
                    <block type="on_ext" id="ov}D(Be]`(nzX#Js!}]h">
                      <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="SAKP82;OM?2N%*fzz[{{">
                          <field name="oid">zigbee.0.001788010bdb63a3.on_press</field>
                        </shadow>
                      </value>
                      <statement name="STATEMENT">
                        <block type="control" id="y7[mgz]-NK5R{5ajJg|4">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">zigbee.0.00158d0003275cf3.state</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="on_source" id="x}P/*I%sVvM{9=$Nd)ln">
                              <field name="ATTR">state.val</field>
                            </block>
                          </value>
                          <next>
                            <block type="variables_set" id="iA|yzw[fYyfX#3gi%pcq">
                              <field name="VAR" id="oSQQ2fSPDU*qU`rN:}(2">manuell_ein</field>
                              <value name="VALUE">
                                <block type="on_source" id="Rx]e4#tp[EJaM4_]T6Y^">
                                  <field name="ATTR">state.val</field>
                                </block>
                              </value>
                              <next>
                                <block type="controls_if" id="?[IJ/6:3lbB5u-m,QzBJ">
                                  <value name="IF0">
                                    <block type="variables_get" id="ku~F=kmsW^D]e/3T{6]5">
                                      <field name="VAR" id="oSQQ2fSPDU*qU`rN:}(2">manuell_ein</field>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="timeouts_cleartimeout" id="j9UA4-ObYtdM3kj4!fvq">
                                      <field name="NAME">timeout</field>
                                    </block>
                                  </statement>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </next>
                </block>
              </xml>
              

              ecbbbfe5-8a85-4235-9aad-d86425fb3e12-image.png

              paul53P Offline
              paul53P Offline
              paul53
              schrieb am zuletzt editiert von
              #6

              @horst-böttcher sagte: das alte script mit bewegungsmelder
              ... Press on und off gehen kurz auf True und dann wieder auf false

              Dann ersetze den unteren Trigger durch folgende:

              Blockly_temp.JPG

              Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
              Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

              Horst BöttcherH 2 Antworten Letzte Antwort
              0
              • paul53P paul53

                @horst-böttcher sagte: das alte script mit bewegungsmelder
                ... Press on und off gehen kurz auf True und dann wieder auf false

                Dann ersetze den unteren Trigger durch folgende:

                Blockly_temp.JPG

                Horst BöttcherH Offline
                Horst BöttcherH Offline
                Horst Böttcher
                schrieb am zuletzt editiert von Horst Böttcher
                #7

                @paul53 ok muss ich morgen ausprobieren ich muss gleich zur arbeit und komme erst spät nach hause

                erdit hab es eingebaut jetzt werde ich heute abend sehn ob sich meie n frau beschärt

                ioBroker auf Proxmox (Debian) auf LENOVO PC Thinkcentre als Produktivsystem

                1 Antwort Letzte Antwort
                0
                • paul53P paul53

                  @horst-böttcher sagte: das alte script mit bewegungsmelder
                  ... Press on und off gehen kurz auf True und dann wieder auf false

                  Dann ersetze den unteren Trigger durch folgende:

                  Blockly_temp.JPG

                  Horst BöttcherH Offline
                  Horst BöttcherH Offline
                  Horst Böttcher
                  schrieb am zuletzt editiert von
                  #8

                  @paul53 dank dir geht super

                  ioBroker auf Proxmox (Debian) auf LENOVO PC Thinkcentre als Produktivsystem

                  1 Antwort Letzte Antwort
                  0

                  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
                  Antworten
                  • In einem neuen Thema antworten
                  Anmelden zum Antworten
                  • Älteste zuerst
                  • Neuste zuerst
                  • Meiste Stimmen


                  Support us

                  ioBroker
                  Community Adapters
                  Donate

                  526

                  Online

                  32.8k

                  Benutzer

                  82.7k

                  Themen

                  1.3m

                  Beiträge
                  Community
                  Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                  ioBroker Community 2014-2025
                  logo
                  • Anmelden

                  • Du hast noch kein Konto? Registrieren

                  • Anmelden oder registrieren, um zu suchen
                  • Erster Beitrag
                    Letzter Beitrag
                  0
                  • Home
                  • Aktuell
                  • Tags
                  • Ungelesen 0
                  • Kategorien
                  • Unreplied
                  • Beliebt
                  • GitHub
                  • Docu
                  • Hilfe