Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • 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. Bewegungsmelder blockly nach Zeit

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    16
    1
    225

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

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

Bewegungsmelder blockly nach Zeit

Geplant Angeheftet Gesperrt Verschoben Blockly
blockly
94 Beiträge 3 Kommentatoren 8.8k Aufrufe 1 Watching
  • Ä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.
  • S sandro_gera

    @paul53

    Hallo Paul, ich hab das jetzt mal so gemacht. Scheint zu funktioneren.
    Was hällst du davon?

    255674c4-08a0-4e64-8c24-4da860a0cc0a-image.png

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

    @sandro_gera sagte:

    Scheint zu funktioneren.

    Das manuelle Einschalten wird nicht ausgewertet.
    Der Helligkeitswert hat den gleichen Namen wie der BWM ?

    Ich habe eine Vermutung: Wert und Ursprung sind keine selbst erstellten Variablen, sondern Eigenschaften des Trigger-Datenpunktes.

    Blockly_DP_Props.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

    S 1 Antwort Letzte Antwort
    0
    • paul53P paul53

      @sandro_gera sagte:

      Scheint zu funktioneren.

      Das manuelle Einschalten wird nicht ausgewertet.
      Der Helligkeitswert hat den gleichen Namen wie der BWM ?

      Ich habe eine Vermutung: Wert und Ursprung sind keine selbst erstellten Variablen, sondern Eigenschaften des Trigger-Datenpunktes.

      Blockly_DP_Props.JPG

      S Offline
      S Offline
      sandro_gera
      schrieb am zuletzt editiert von sandro_gera
      #25

      @paul53

      Der Helligkeitswert kommt ja vom Bewegungsmelder.Ich müßte das evtl. noch im Alia ändern, aber die Datenpunkte sind unterschiedlich.
      Was hällst du davon?

      ddefbda5-925b-4942-b97f-1eb7dfdc90da-image.png

      Master RPI4 8GB, Slave RPI3 1GB
      Node.js v18.17.1, npm: 9.6.7,
      JS-Controller: 5.0.16

      paul53P 1 Antwort Letzte Antwort
      0
      • S sandro_gera

        @paul53

        Der Helligkeitswert kommt ja vom Bewegungsmelder.Ich müßte das evtl. noch im Alia ändern, aber die Datenpunkte sind unterschiedlich.
        Was hällst du davon?

        ddefbda5-925b-4942-b97f-1eb7dfdc90da-image.png

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

        @sandro_gera sagte:

        Was hällst du davon?

        Das "sonst falls" ist zuviel !

        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

        S 1 Antwort Letzte Antwort
        0
        • paul53P paul53

          @sandro_gera sagte:

          Was hällst du davon?

          Das "sonst falls" ist zuviel !

          S Offline
          S Offline
          sandro_gera
          schrieb am zuletzt editiert von
          #27

          @paul53

          Brauche ich den Baustein der hinter sonst falls steht nicht?
          wo füge ich den denn ein. Deswegen hatte ich das sonst falls eingefügt

          Master RPI4 8GB, Slave RPI3 1GB
          Node.js v18.17.1, npm: 9.6.7,
          JS-Controller: 5.0.16

          paul53P 1 Antwort Letzte Antwort
          0
          • S sandro_gera

            @paul53

            Brauche ich den Baustein der hinter sonst falls steht nicht?
            wo füge ich den denn ein. Deswegen hatte ich das sonst falls eingefügt

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

            @sandro_gera sagte:

            Brauche ich den Baustein der hinter sonst falls steht nicht?

            Nein, der ist unnötig.

            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

            S 1 Antwort Letzte Antwort
            0
            • paul53P paul53

              @sandro_gera sagte:

              Brauche ich den Baustein der hinter sonst falls steht nicht?

              Nein, der ist unnötig.

              S Offline
              S Offline
              sandro_gera
              schrieb am zuletzt editiert von
              #29

              @paul53

              Ok dann könnte es jetzt so passen oder was denkst du?

              7bad1dde-18ed-4f5d-81b2-0d7918ca7642-image.png

              Master RPI4 8GB, Slave RPI3 1GB
              Node.js v18.17.1, npm: 9.6.7,
              JS-Controller: 5.0.16

              paul53P 1 Antwort Letzte Antwort
              0
              • S sandro_gera

                @paul53

                Ok dann könnte es jetzt so passen oder was denkst du?

                7bad1dde-18ed-4f5d-81b2-0d7918ca7642-image.png

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

                @sandro_gera sagte:

                was denkst du?

                Poste bitte den vom Blockly erzeugten Javascript-Code ohne die letzte Zeile in Code tags </>.

                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

                S 1 Antwort Letzte Antwort
                0
                • paul53P paul53

                  @sandro_gera sagte:

                  was denkst du?

                  Poste bitte den vom Blockly erzeugten Javascript-Code ohne die letzte Zeile in Code tags </>.

                  S Offline
                  S Offline
                  sandro_gera
                  schrieb am zuletzt editiert von sandro_gera
                  #31

                  @paul53

                  <xml xmlns="https://developers.google.com/blockly/xml">
                    <variables>
                      <variable id="$A5sBj~`{HnEyT{S,,zX">manuell</variable>
                      <variable type="timeout" id="timeout">timeout</variable>
                      <variable id="#dn^Ntk#4RGe)Tvz4()W">Wert</variable>
                      <variable id="wvB)ss3.ucMJXeJk!`Nw">level</variable>
                      <variable id="T/$YV2jdcBsf-M4JRM:$">Ursprung</variable>
                      <variable id="43M!).Z=m=7SbhCJ0PR7">ct</variable>
                    </variables>
                    <block type="on_ext" id="YM.#/9w.1y~Z9?XJhnN5" x="-463" y="-337">
                      <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="%jTnyCDn%PgYB{8*.0lt">
                          <field name="oid">alias.0.Bewegungsmelder.Flur.Philips_Hue_motion_Flur_Presence_presence</field>
                        </shadow>
                      </value>
                      <statement name="STATEMENT">
                        <block type="controls_if" id="f`]_ZnrJPO+/s2gj8/sr">
                          <value name="IF0">
                            <block type="variables_get" id="O[pSy)Kfw_-kt1|cB[Fg">
                              <field name="VAR" id="$A5sBj~`{HnEyT{S,,zX">manuell</field>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="controls_if" id="NH=-h0lX^4/=9@l*M@AR">
                              <mutation else="1"></mutation>
                              <value name="IF0">
                                <block type="logic_operation" id="Yy~I1gw@#1s|eb*^QU]s" inline="false">
                                  <field name="OP">AND</field>
                                  <value name="A">
                                    <block type="logic_compare" id="r[c7):%ov;xLJI)7=6ST">
                                      <field name="OP">EQ</field>
                                      <comment pinned="false" h="53" w="139">Hier nog den wert Bewegung rein</comment>
                                      <value name="A">
                                        <block type="get_value" id=".,__.+a+Wr7b#I}`Z*iw">
                                          <field name="ATTR">val</field>
                                          <field name="OID">alias.0.Bewegungsmelder.Flur.Philips_Hue_motion_Flur_Presence_presence</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_boolean" id="`]V~(Hc7DDwYjOh=4tq=">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_compare" id="%YGQ;ENgMFDy/{+4))4`">
                                      <field name="OP">LT</field>
                                      <value name="A">
                                        <block type="get_value" id="wIdF:8b9kA*~F/qff=5Z">
                                          <field name="ATTR">val</field>
                                          <field name="OID">alias.0.Bewegungsmelder.Flur.Philips_Hue_motion_Flur_LightLevel_lux</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="math_number" id="r@hhmCSZfyq;E~yWe[7[">
                                          <field name="NUM">20</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="timeouts_cleartimeout" id="7rw,zduV-62(pcZLAR4;">
                                  <field name="NAME">timeout</field>
                                  <next>
                                    <block type="controls_if" id="3fj!d?TBRKep-,c|*lQj">
                                      <mutation else="1"></mutation>
                                      <value name="IF0">
                                        <block type="time_compare" id="eH5pwmI/c8:YbF7GW]sC">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
                                          <field name="OPTION">between</field>
                                          <field name="START_TIME">07:00</field>
                                          <field name="END_TIME">22:00</field>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="variables_set" id="Scu~MVz4F@OM%mFcE~KX">
                                          <field name="VAR" id="wvB)ss3.ucMJXeJk!`Nw">level</field>
                                          <value name="VALUE">
                                            <block type="math_number" id="_EpOy)y6a0$sp/sIba,.">
                                              <field name="NUM">30</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="variables_set" id="E4Q*^fQ6+C/n4N@M!m$[">
                                              <field name="VAR" id="43M!).Z=m=7SbhCJ0PR7">ct</field>
                                              <value name="VALUE">
                                                <block type="math_number" id="H_Z*fxFw(#jSs)7Wd8YX">
                                                  <field name="NUM">200</field>
                                                </block>
                                              </value>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                      <statement name="ELSE">
                                        <block type="variables_set" id="tWx:S(byeyltmOeQ-?]M">
                                          <field name="VAR" id="wvB)ss3.ucMJXeJk!`Nw">level</field>
                                          <value name="VALUE">
                                            <block type="math_number" id="babJi+Cy8jxk=04m3X{2">
                                              <field name="NUM">10</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="variables_set" id="SiHG^!%c/k%y?Af[iQo!">
                                              <field name="VAR" id="43M!).Z=m=7SbhCJ0PR7">ct</field>
                                              <value name="VALUE">
                                                <block type="math_number" id="ln?v`wnB*8uYuFnHLZyN">
                                                  <field name="NUM">340</field>
                                                </block>
                                              </value>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                      <next>
                                        <block type="control" id="fn32UPV8!EY@LVl@l441">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">alias.0.Licht.Flur.Deckenlampe_Flur_Dimmwert</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="variables_get" id="5qj76%LX)ir}oZ/6QU8K">
                                              <field name="VAR" id="wvB)ss3.ucMJXeJk!`Nw">level</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="control" id="B)IfBUKu~Bwh#Oo%=N!E">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">alias.0.Licht.Flur.Deckenlampe_Flur_Farbtemperatur</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="variables_get" id="ME}sOV}Kh}+K+|TvMu=E">
                                                  <field name="VAR" id="43M!).Z=m=7SbhCJ0PR7">ct</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="control" id="qKv$`19TYKeN05R74=7Y">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">alias.0.Licht.Flur.Deckenlampe_Flur</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="logic_boolean" id="?a2capuBWyh$zJU(u%Xr">
                                                      <field name="BOOL">TRUE</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                              <statement name="ELSE">
                                <block type="timeouts_cleartimeout" id="48kyiz7c9o!iu:6.^{Vw">
                                  <field name="NAME">timeout</field>
                                  <next>
                                    <block type="timeouts_settimeout" id="EWUG;n=f.[20rin0,hE9">
                                      <field name="NAME">timeout</field>
                                      <field name="DELAY">3</field>
                                      <field name="UNIT">min</field>
                                      <statement name="STATEMENT">
                                        <block type="control" id="H[A{jz0[.Mvj%H7h(gW^">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">alias.0.Licht.Flur.Deckenlampe_Flur</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id=";NZ=bc({k|F;n{%dcYa}">
                                              <field name="BOOL">FALSE</field>
                                            </block>
                                          </value>
                                        </block>
                                      </statement>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                            </block>
                          </statement>
                        </block>
                      </statement>
                      <next>
                        <block type="on_ext" id="Kg6m`;VxfJ,iWYG6m6vl">
                          <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="Huz,enH*$,(K(Q2~6Iyi">
                              <field name="oid">alias.0.Licht.Flur.Deckenlampe_Flur</field>
                            </shadow>
                          </value>
                          <statement name="STATEMENT">
                            <block type="variables_set" id="H.X]pVt-[.SG*mSo2%;G">
                              <field name="VAR" id="$A5sBj~`{HnEyT{S,,zX">manuell</field>
                              <value name="VALUE">
                                <block type="logic_operation" id="5X;VDBZ5|G0)6[t;_Ill" inline="false">
                                  <field name="OP">AND</field>
                                  <value name="A">
                                    <block type="variables_get" id="8TMk}zGgebAp9:Rf9o|c">
                                      <field name="VAR" id="#dn^Ntk#4RGe)Tvz4()W">Wert</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_compare" id="g,4XFQ{VIRAB~u$kAFec">
                                      <field name="OP">NEQ</field>
                                      <value name="A">
                                        <block type="variables_get" id="kbwC;%yg]U9~H/zS1n(O">
                                          <field name="VAR" id="T/$YV2jdcBsf-M4JRM:$">Ursprung</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="text" id="g%jGCj+)5XnCikl8P}Ni">
                                          <field name="TEXT">system.adapter.javascript.0</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </statement>
                        </block>
                      </next>
                    </block>
                  

                  so meinst du?

                  Master RPI4 8GB, Slave RPI3 1GB
                  Node.js v18.17.1, npm: 9.6.7,
                  JS-Controller: 5.0.16

                  paul53P 1 Antwort Letzte Antwort
                  0
                  • S sandro_gera

                    @paul53

                    <xml xmlns="https://developers.google.com/blockly/xml">
                      <variables>
                        <variable id="$A5sBj~`{HnEyT{S,,zX">manuell</variable>
                        <variable type="timeout" id="timeout">timeout</variable>
                        <variable id="#dn^Ntk#4RGe)Tvz4()W">Wert</variable>
                        <variable id="wvB)ss3.ucMJXeJk!`Nw">level</variable>
                        <variable id="T/$YV2jdcBsf-M4JRM:$">Ursprung</variable>
                        <variable id="43M!).Z=m=7SbhCJ0PR7">ct</variable>
                      </variables>
                      <block type="on_ext" id="YM.#/9w.1y~Z9?XJhnN5" x="-463" y="-337">
                        <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="%jTnyCDn%PgYB{8*.0lt">
                            <field name="oid">alias.0.Bewegungsmelder.Flur.Philips_Hue_motion_Flur_Presence_presence</field>
                          </shadow>
                        </value>
                        <statement name="STATEMENT">
                          <block type="controls_if" id="f`]_ZnrJPO+/s2gj8/sr">
                            <value name="IF0">
                              <block type="variables_get" id="O[pSy)Kfw_-kt1|cB[Fg">
                                <field name="VAR" id="$A5sBj~`{HnEyT{S,,zX">manuell</field>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="controls_if" id="NH=-h0lX^4/=9@l*M@AR">
                                <mutation else="1"></mutation>
                                <value name="IF0">
                                  <block type="logic_operation" id="Yy~I1gw@#1s|eb*^QU]s" inline="false">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                      <block type="logic_compare" id="r[c7):%ov;xLJI)7=6ST">
                                        <field name="OP">EQ</field>
                                        <comment pinned="false" h="53" w="139">Hier nog den wert Bewegung rein</comment>
                                        <value name="A">
                                          <block type="get_value" id=".,__.+a+Wr7b#I}`Z*iw">
                                            <field name="ATTR">val</field>
                                            <field name="OID">alias.0.Bewegungsmelder.Flur.Philips_Hue_motion_Flur_Presence_presence</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_boolean" id="`]V~(Hc7DDwYjOh=4tq=">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_compare" id="%YGQ;ENgMFDy/{+4))4`">
                                        <field name="OP">LT</field>
                                        <value name="A">
                                          <block type="get_value" id="wIdF:8b9kA*~F/qff=5Z">
                                            <field name="ATTR">val</field>
                                            <field name="OID">alias.0.Bewegungsmelder.Flur.Philips_Hue_motion_Flur_LightLevel_lux</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="r@hhmCSZfyq;E~yWe[7[">
                                            <field name="NUM">20</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="timeouts_cleartimeout" id="7rw,zduV-62(pcZLAR4;">
                                    <field name="NAME">timeout</field>
                                    <next>
                                      <block type="controls_if" id="3fj!d?TBRKep-,c|*lQj">
                                        <mutation else="1"></mutation>
                                        <value name="IF0">
                                          <block type="time_compare" id="eH5pwmI/c8:YbF7GW]sC">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
                                            <field name="OPTION">between</field>
                                            <field name="START_TIME">07:00</field>
                                            <field name="END_TIME">22:00</field>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="variables_set" id="Scu~MVz4F@OM%mFcE~KX">
                                            <field name="VAR" id="wvB)ss3.ucMJXeJk!`Nw">level</field>
                                            <value name="VALUE">
                                              <block type="math_number" id="_EpOy)y6a0$sp/sIba,.">
                                                <field name="NUM">30</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="variables_set" id="E4Q*^fQ6+C/n4N@M!m$[">
                                                <field name="VAR" id="43M!).Z=m=7SbhCJ0PR7">ct</field>
                                                <value name="VALUE">
                                                  <block type="math_number" id="H_Z*fxFw(#jSs)7Wd8YX">
                                                    <field name="NUM">200</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                        <statement name="ELSE">
                                          <block type="variables_set" id="tWx:S(byeyltmOeQ-?]M">
                                            <field name="VAR" id="wvB)ss3.ucMJXeJk!`Nw">level</field>
                                            <value name="VALUE">
                                              <block type="math_number" id="babJi+Cy8jxk=04m3X{2">
                                                <field name="NUM">10</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="variables_set" id="SiHG^!%c/k%y?Af[iQo!">
                                                <field name="VAR" id="43M!).Z=m=7SbhCJ0PR7">ct</field>
                                                <value name="VALUE">
                                                  <block type="math_number" id="ln?v`wnB*8uYuFnHLZyN">
                                                    <field name="NUM">340</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                        <next>
                                          <block type="control" id="fn32UPV8!EY@LVl@l441">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">alias.0.Licht.Flur.Deckenlampe_Flur_Dimmwert</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="variables_get" id="5qj76%LX)ir}oZ/6QU8K">
                                                <field name="VAR" id="wvB)ss3.ucMJXeJk!`Nw">level</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="control" id="B)IfBUKu~Bwh#Oo%=N!E">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">alias.0.Licht.Flur.Deckenlampe_Flur_Farbtemperatur</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="variables_get" id="ME}sOV}Kh}+K+|TvMu=E">
                                                    <field name="VAR" id="43M!).Z=m=7SbhCJ0PR7">ct</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="control" id="qKv$`19TYKeN05R74=7Y">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                    <field name="OID">alias.0.Licht.Flur.Deckenlampe_Flur</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="logic_boolean" id="?a2capuBWyh$zJU(u%Xr">
                                                        <field name="BOOL">TRUE</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                                <statement name="ELSE">
                                  <block type="timeouts_cleartimeout" id="48kyiz7c9o!iu:6.^{Vw">
                                    <field name="NAME">timeout</field>
                                    <next>
                                      <block type="timeouts_settimeout" id="EWUG;n=f.[20rin0,hE9">
                                        <field name="NAME">timeout</field>
                                        <field name="DELAY">3</field>
                                        <field name="UNIT">min</field>
                                        <statement name="STATEMENT">
                                          <block type="control" id="H[A{jz0[.Mvj%H7h(gW^">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">alias.0.Licht.Flur.Deckenlampe_Flur</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="logic_boolean" id=";NZ=bc({k|F;n{%dcYa}">
                                                <field name="BOOL">FALSE</field>
                                              </block>
                                            </value>
                                          </block>
                                        </statement>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                              </block>
                            </statement>
                          </block>
                        </statement>
                        <next>
                          <block type="on_ext" id="Kg6m`;VxfJ,iWYG6m6vl">
                            <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="Huz,enH*$,(K(Q2~6Iyi">
                                <field name="oid">alias.0.Licht.Flur.Deckenlampe_Flur</field>
                              </shadow>
                            </value>
                            <statement name="STATEMENT">
                              <block type="variables_set" id="H.X]pVt-[.SG*mSo2%;G">
                                <field name="VAR" id="$A5sBj~`{HnEyT{S,,zX">manuell</field>
                                <value name="VALUE">
                                  <block type="logic_operation" id="5X;VDBZ5|G0)6[t;_Ill" inline="false">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                      <block type="variables_get" id="8TMk}zGgebAp9:Rf9o|c">
                                        <field name="VAR" id="#dn^Ntk#4RGe)Tvz4()W">Wert</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_compare" id="g,4XFQ{VIRAB~u$kAFec">
                                        <field name="OP">NEQ</field>
                                        <value name="A">
                                          <block type="variables_get" id="kbwC;%yg]U9~H/zS1n(O">
                                            <field name="VAR" id="T/$YV2jdcBsf-M4JRM:$">Ursprung</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="text" id="g%jGCj+)5XnCikl8P}Ni">
                                            <field name="TEXT">system.adapter.javascript.0</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    

                    so meinst du?

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

                    @sandro_gera sagte:

                    so meinst du?

                    Eigentlich nicht, aber so geht es auch. Habe korrigiert:

                    <xml xmlns="https://developers.google.com/blockly/xml">
                     <variables>
                       <variable id="$A5sBj~`{HnEyT{S,,zX">manuell</variable>
                       <variable type="timeout" id="timeout">timeout</variable>
                       <variable id="wvB)ss3.ucMJXeJk!`Nw">level</variable>
                       <variable id="43M!).Z=m=7SbhCJ0PR7">ct</variable>
                     </variables>
                     <block type="on_ext" id="YM.#/9w.1y~Z9?XJhnN5" x="-463" y="-337">
                       <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="%jTnyCDn%PgYB{8*.0lt">
                           <field name="oid">alias.0.Bewegungsmelder.Flur.Philips_Hue_motion_Flur_Presence_presence</field>
                         </shadow>
                       </value>
                       <statement name="STATEMENT">
                         <block type="controls_if" id="f`]_ZnrJPO+/s2gj8/sr">
                           <value name="IF0">
                             <block type="logic_negate" id="[-C5S33I3Q{{u@3~+E`s">
                               <value name="BOOL">
                                 <block type="variables_get" id="k9`-[bG6-ZPqt$}C4,!`">
                                   <field name="VAR" id="$A5sBj~`{HnEyT{S,,zX">manuell</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <statement name="DO0">
                             <block type="controls_if" id="NH=-h0lX^4/=9@l*M@AR">
                               <mutation else="1"></mutation>
                               <value name="IF0">
                                 <block type="logic_operation" id="Yy~I1gw@#1s|eb*^QU]s" inline="false">
                                   <field name="OP">AND</field>
                                   <value name="A">
                                     <block type="on_source" id=",?sb*{!q|?vcfgqoJR^D">
                                       <field name="ATTR">state.val</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="logic_compare" id="%YGQ;ENgMFDy/{+4))4`">
                                       <field name="OP">LT</field>
                                       <value name="A">
                                         <block type="get_value" id="wIdF:8b9kA*~F/qff=5Z">
                                           <field name="ATTR">val</field>
                                           <field name="OID">alias.0.Bewegungsmelder.Flur.Philips_Hue_motion_Flur_LightLevel_lux</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="math_number" id="r@hhmCSZfyq;E~yWe[7[">
                                           <field name="NUM">20</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <statement name="DO0">
                                 <block type="timeouts_cleartimeout" id="7rw,zduV-62(pcZLAR4;">
                                   <field name="NAME">timeout</field>
                                   <next>
                                     <block type="controls_if" id="3fj!d?TBRKep-,c|*lQj">
                                       <mutation else="1"></mutation>
                                       <value name="IF0">
                                         <block type="time_compare" id="eH5pwmI/c8:YbF7GW]sC">
                                           <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
                                           <field name="OPTION">between</field>
                                           <field name="START_TIME">07:00</field>
                                           <field name="END_TIME">22:00</field>
                                         </block>
                                       </value>
                                       <statement name="DO0">
                                         <block type="variables_set" id="Scu~MVz4F@OM%mFcE~KX">
                                           <field name="VAR" id="wvB)ss3.ucMJXeJk!`Nw">level</field>
                                           <value name="VALUE">
                                             <block type="math_number" id="_EpOy)y6a0$sp/sIba,.">
                                               <field name="NUM">30</field>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="variables_set" id="E4Q*^fQ6+C/n4N@M!m$[">
                                               <field name="VAR" id="43M!).Z=m=7SbhCJ0PR7">ct</field>
                                               <value name="VALUE">
                                                 <block type="math_number" id="H_Z*fxFw(#jSs)7Wd8YX">
                                                   <field name="NUM">200</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </next>
                                         </block>
                                       </statement>
                                       <statement name="ELSE">
                                         <block type="variables_set" id="tWx:S(byeyltmOeQ-?]M">
                                           <field name="VAR" id="wvB)ss3.ucMJXeJk!`Nw">level</field>
                                           <value name="VALUE">
                                             <block type="math_number" id="babJi+Cy8jxk=04m3X{2">
                                               <field name="NUM">10</field>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="variables_set" id="SiHG^!%c/k%y?Af[iQo!">
                                               <field name="VAR" id="43M!).Z=m=7SbhCJ0PR7">ct</field>
                                               <value name="VALUE">
                                                 <block type="math_number" id="ln?v`wnB*8uYuFnHLZyN">
                                                   <field name="NUM">340</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </next>
                                         </block>
                                       </statement>
                                       <next>
                                         <block type="control" id="fn32UPV8!EY@LVl@l441">
                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                           <field name="OID">alias.0.Licht.Flur.Deckenlampe_Flur_Dimmwert</field>
                                           <field name="WITH_DELAY">FALSE</field>
                                           <value name="VALUE">
                                             <block type="variables_get" id="5qj76%LX)ir}oZ/6QU8K">
                                               <field name="VAR" id="wvB)ss3.ucMJXeJk!`Nw">level</field>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="control" id="B)IfBUKu~Bwh#Oo%=N!E">
                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                               <field name="OID">alias.0.Licht.Flur.Deckenlampe_Flur_Farbtemperatur</field>
                                               <field name="WITH_DELAY">FALSE</field>
                                               <value name="VALUE">
                                                 <block type="variables_get" id="ME}sOV}Kh}+K+|TvMu=E">
                                                   <field name="VAR" id="43M!).Z=m=7SbhCJ0PR7">ct</field>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="control" id="qKv$`19TYKeN05R74=7Y">
                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                   <field name="OID">alias.0.Licht.Flur.Deckenlampe_Flur</field>
                                                   <field name="WITH_DELAY">FALSE</field>
                                                   <value name="VALUE">
                                                     <block type="logic_boolean" id="?a2capuBWyh$zJU(u%Xr">
                                                       <field name="BOOL">TRUE</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                               <statement name="ELSE">
                                 <block type="timeouts_settimeout" id="EWUG;n=f.[20rin0,hE9">
                                   <field name="NAME">timeout</field>
                                   <field name="DELAY">3</field>
                                   <field name="UNIT">min</field>
                                   <statement name="STATEMENT">
                                     <block type="control" id="H[A{jz0[.Mvj%H7h(gW^">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">alias.0.Licht.Flur.Deckenlampe_Flur</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="logic_boolean" id=";NZ=bc({k|F;n{%dcYa}">
                                           <field name="BOOL">FALSE</field>
                                         </block>
                                       </value>
                                     </block>
                                   </statement>
                                 </block>
                               </statement>
                             </block>
                           </statement>
                         </block>
                       </statement>
                       <next>
                         <block type="on_ext" id="Kg6m`;VxfJ,iWYG6m6vl">
                           <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="Huz,enH*$,(K(Q2~6Iyi">
                               <field name="oid">alias.0.Licht.Flur.Deckenlampe_Flur</field>
                             </shadow>
                           </value>
                           <statement name="STATEMENT">
                             <block type="variables_set" id="H.X]pVt-[.SG*mSo2%;G">
                               <field name="VAR" id="$A5sBj~`{HnEyT{S,,zX">manuell</field>
                               <value name="VALUE">
                                 <block type="logic_operation" id="5X;VDBZ5|G0)6[t;_Ill" inline="false">
                                   <field name="OP">AND</field>
                                   <value name="A">
                                     <block type="on_source" id="o4-9,(o#HTx:}]|7zyCy">
                                       <field name="ATTR">state.val</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="logic_compare" id="g,4XFQ{VIRAB~u$kAFec">
                                       <field name="OP">NEQ</field>
                                       <value name="A">
                                         <block type="on_source" id="avL^M)Ct_sI32]4a1]X.">
                                           <field name="ATTR">state.from</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="text" id="g%jGCj+)5XnCikl8P}Ni">
                                           <field name="TEXT">system.adapter.javascript.0</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                             </block>
                           </statement>
                         </block>
                       </next>
                     </block>
                    </xml>
                    

                    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

                    S 2 Antworten Letzte Antwort
                    0
                    • paul53P paul53

                      @sandro_gera sagte:

                      so meinst du?

                      Eigentlich nicht, aber so geht es auch. Habe korrigiert:

                      <xml xmlns="https://developers.google.com/blockly/xml">
                       <variables>
                         <variable id="$A5sBj~`{HnEyT{S,,zX">manuell</variable>
                         <variable type="timeout" id="timeout">timeout</variable>
                         <variable id="wvB)ss3.ucMJXeJk!`Nw">level</variable>
                         <variable id="43M!).Z=m=7SbhCJ0PR7">ct</variable>
                       </variables>
                       <block type="on_ext" id="YM.#/9w.1y~Z9?XJhnN5" x="-463" y="-337">
                         <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="%jTnyCDn%PgYB{8*.0lt">
                             <field name="oid">alias.0.Bewegungsmelder.Flur.Philips_Hue_motion_Flur_Presence_presence</field>
                           </shadow>
                         </value>
                         <statement name="STATEMENT">
                           <block type="controls_if" id="f`]_ZnrJPO+/s2gj8/sr">
                             <value name="IF0">
                               <block type="logic_negate" id="[-C5S33I3Q{{u@3~+E`s">
                                 <value name="BOOL">
                                   <block type="variables_get" id="k9`-[bG6-ZPqt$}C4,!`">
                                     <field name="VAR" id="$A5sBj~`{HnEyT{S,,zX">manuell</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <statement name="DO0">
                               <block type="controls_if" id="NH=-h0lX^4/=9@l*M@AR">
                                 <mutation else="1"></mutation>
                                 <value name="IF0">
                                   <block type="logic_operation" id="Yy~I1gw@#1s|eb*^QU]s" inline="false">
                                     <field name="OP">AND</field>
                                     <value name="A">
                                       <block type="on_source" id=",?sb*{!q|?vcfgqoJR^D">
                                         <field name="ATTR">state.val</field>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="logic_compare" id="%YGQ;ENgMFDy/{+4))4`">
                                         <field name="OP">LT</field>
                                         <value name="A">
                                           <block type="get_value" id="wIdF:8b9kA*~F/qff=5Z">
                                             <field name="ATTR">val</field>
                                             <field name="OID">alias.0.Bewegungsmelder.Flur.Philips_Hue_motion_Flur_LightLevel_lux</field>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <block type="math_number" id="r@hhmCSZfyq;E~yWe[7[">
                                             <field name="NUM">20</field>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <statement name="DO0">
                                   <block type="timeouts_cleartimeout" id="7rw,zduV-62(pcZLAR4;">
                                     <field name="NAME">timeout</field>
                                     <next>
                                       <block type="controls_if" id="3fj!d?TBRKep-,c|*lQj">
                                         <mutation else="1"></mutation>
                                         <value name="IF0">
                                           <block type="time_compare" id="eH5pwmI/c8:YbF7GW]sC">
                                             <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
                                             <field name="OPTION">between</field>
                                             <field name="START_TIME">07:00</field>
                                             <field name="END_TIME">22:00</field>
                                           </block>
                                         </value>
                                         <statement name="DO0">
                                           <block type="variables_set" id="Scu~MVz4F@OM%mFcE~KX">
                                             <field name="VAR" id="wvB)ss3.ucMJXeJk!`Nw">level</field>
                                             <value name="VALUE">
                                               <block type="math_number" id="_EpOy)y6a0$sp/sIba,.">
                                                 <field name="NUM">30</field>
                                               </block>
                                             </value>
                                             <next>
                                               <block type="variables_set" id="E4Q*^fQ6+C/n4N@M!m$[">
                                                 <field name="VAR" id="43M!).Z=m=7SbhCJ0PR7">ct</field>
                                                 <value name="VALUE">
                                                   <block type="math_number" id="H_Z*fxFw(#jSs)7Wd8YX">
                                                     <field name="NUM">200</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </next>
                                           </block>
                                         </statement>
                                         <statement name="ELSE">
                                           <block type="variables_set" id="tWx:S(byeyltmOeQ-?]M">
                                             <field name="VAR" id="wvB)ss3.ucMJXeJk!`Nw">level</field>
                                             <value name="VALUE">
                                               <block type="math_number" id="babJi+Cy8jxk=04m3X{2">
                                                 <field name="NUM">10</field>
                                               </block>
                                             </value>
                                             <next>
                                               <block type="variables_set" id="SiHG^!%c/k%y?Af[iQo!">
                                                 <field name="VAR" id="43M!).Z=m=7SbhCJ0PR7">ct</field>
                                                 <value name="VALUE">
                                                   <block type="math_number" id="ln?v`wnB*8uYuFnHLZyN">
                                                     <field name="NUM">340</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </next>
                                           </block>
                                         </statement>
                                         <next>
                                           <block type="control" id="fn32UPV8!EY@LVl@l441">
                                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                             <field name="OID">alias.0.Licht.Flur.Deckenlampe_Flur_Dimmwert</field>
                                             <field name="WITH_DELAY">FALSE</field>
                                             <value name="VALUE">
                                               <block type="variables_get" id="5qj76%LX)ir}oZ/6QU8K">
                                                 <field name="VAR" id="wvB)ss3.ucMJXeJk!`Nw">level</field>
                                               </block>
                                             </value>
                                             <next>
                                               <block type="control" id="B)IfBUKu~Bwh#Oo%=N!E">
                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                 <field name="OID">alias.0.Licht.Flur.Deckenlampe_Flur_Farbtemperatur</field>
                                                 <field name="WITH_DELAY">FALSE</field>
                                                 <value name="VALUE">
                                                   <block type="variables_get" id="ME}sOV}Kh}+K+|TvMu=E">
                                                     <field name="VAR" id="43M!).Z=m=7SbhCJ0PR7">ct</field>
                                                   </block>
                                                 </value>
                                                 <next>
                                                   <block type="control" id="qKv$`19TYKeN05R74=7Y">
                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                     <field name="OID">alias.0.Licht.Flur.Deckenlampe_Flur</field>
                                                     <field name="WITH_DELAY">FALSE</field>
                                                     <value name="VALUE">
                                                       <block type="logic_boolean" id="?a2capuBWyh$zJU(u%Xr">
                                                         <field name="BOOL">TRUE</field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </next>
                                               </block>
                                             </next>
                                           </block>
                                         </next>
                                       </block>
                                     </next>
                                   </block>
                                 </statement>
                                 <statement name="ELSE">
                                   <block type="timeouts_settimeout" id="EWUG;n=f.[20rin0,hE9">
                                     <field name="NAME">timeout</field>
                                     <field name="DELAY">3</field>
                                     <field name="UNIT">min</field>
                                     <statement name="STATEMENT">
                                       <block type="control" id="H[A{jz0[.Mvj%H7h(gW^">
                                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                         <field name="OID">alias.0.Licht.Flur.Deckenlampe_Flur</field>
                                         <field name="WITH_DELAY">FALSE</field>
                                         <value name="VALUE">
                                           <block type="logic_boolean" id=";NZ=bc({k|F;n{%dcYa}">
                                             <field name="BOOL">FALSE</field>
                                           </block>
                                         </value>
                                       </block>
                                     </statement>
                                   </block>
                                 </statement>
                               </block>
                             </statement>
                           </block>
                         </statement>
                         <next>
                           <block type="on_ext" id="Kg6m`;VxfJ,iWYG6m6vl">
                             <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="Huz,enH*$,(K(Q2~6Iyi">
                                 <field name="oid">alias.0.Licht.Flur.Deckenlampe_Flur</field>
                               </shadow>
                             </value>
                             <statement name="STATEMENT">
                               <block type="variables_set" id="H.X]pVt-[.SG*mSo2%;G">
                                 <field name="VAR" id="$A5sBj~`{HnEyT{S,,zX">manuell</field>
                                 <value name="VALUE">
                                   <block type="logic_operation" id="5X;VDBZ5|G0)6[t;_Ill" inline="false">
                                     <field name="OP">AND</field>
                                     <value name="A">
                                       <block type="on_source" id="o4-9,(o#HTx:}]|7zyCy">
                                         <field name="ATTR">state.val</field>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="logic_compare" id="g,4XFQ{VIRAB~u$kAFec">
                                         <field name="OP">NEQ</field>
                                         <value name="A">
                                           <block type="on_source" id="avL^M)Ct_sI32]4a1]X.">
                                             <field name="ATTR">state.from</field>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <block type="text" id="g%jGCj+)5XnCikl8P}Ni">
                                             <field name="TEXT">system.adapter.javascript.0</field>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                               </block>
                             </statement>
                           </block>
                         </next>
                       </block>
                      </xml>
                      

                      S Offline
                      S Offline
                      sandro_gera
                      schrieb am zuletzt editiert von
                      #33

                      @paul53

                      Vielen Dank aber mit der Korrektur tut sich nichts ich glaube ohne den Baustein der bei mir am und steht geht es nicht

                      Master RPI4 8GB, Slave RPI3 1GB
                      Node.js v18.17.1, npm: 9.6.7,
                      JS-Controller: 5.0.16

                      1 Antwort Letzte Antwort
                      0
                      • paul53P paul53

                        @sandro_gera sagte:

                        so meinst du?

                        Eigentlich nicht, aber so geht es auch. Habe korrigiert:

                        <xml xmlns="https://developers.google.com/blockly/xml">
                         <variables>
                           <variable id="$A5sBj~`{HnEyT{S,,zX">manuell</variable>
                           <variable type="timeout" id="timeout">timeout</variable>
                           <variable id="wvB)ss3.ucMJXeJk!`Nw">level</variable>
                           <variable id="43M!).Z=m=7SbhCJ0PR7">ct</variable>
                         </variables>
                         <block type="on_ext" id="YM.#/9w.1y~Z9?XJhnN5" x="-463" y="-337">
                           <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="%jTnyCDn%PgYB{8*.0lt">
                               <field name="oid">alias.0.Bewegungsmelder.Flur.Philips_Hue_motion_Flur_Presence_presence</field>
                             </shadow>
                           </value>
                           <statement name="STATEMENT">
                             <block type="controls_if" id="f`]_ZnrJPO+/s2gj8/sr">
                               <value name="IF0">
                                 <block type="logic_negate" id="[-C5S33I3Q{{u@3~+E`s">
                                   <value name="BOOL">
                                     <block type="variables_get" id="k9`-[bG6-ZPqt$}C4,!`">
                                       <field name="VAR" id="$A5sBj~`{HnEyT{S,,zX">manuell</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <statement name="DO0">
                                 <block type="controls_if" id="NH=-h0lX^4/=9@l*M@AR">
                                   <mutation else="1"></mutation>
                                   <value name="IF0">
                                     <block type="logic_operation" id="Yy~I1gw@#1s|eb*^QU]s" inline="false">
                                       <field name="OP">AND</field>
                                       <value name="A">
                                         <block type="on_source" id=",?sb*{!q|?vcfgqoJR^D">
                                           <field name="ATTR">state.val</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="logic_compare" id="%YGQ;ENgMFDy/{+4))4`">
                                           <field name="OP">LT</field>
                                           <value name="A">
                                             <block type="get_value" id="wIdF:8b9kA*~F/qff=5Z">
                                               <field name="ATTR">val</field>
                                               <field name="OID">alias.0.Bewegungsmelder.Flur.Philips_Hue_motion_Flur_LightLevel_lux</field>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <block type="math_number" id="r@hhmCSZfyq;E~yWe[7[">
                                               <field name="NUM">20</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <statement name="DO0">
                                     <block type="timeouts_cleartimeout" id="7rw,zduV-62(pcZLAR4;">
                                       <field name="NAME">timeout</field>
                                       <next>
                                         <block type="controls_if" id="3fj!d?TBRKep-,c|*lQj">
                                           <mutation else="1"></mutation>
                                           <value name="IF0">
                                             <block type="time_compare" id="eH5pwmI/c8:YbF7GW]sC">
                                               <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
                                               <field name="OPTION">between</field>
                                               <field name="START_TIME">07:00</field>
                                               <field name="END_TIME">22:00</field>
                                             </block>
                                           </value>
                                           <statement name="DO0">
                                             <block type="variables_set" id="Scu~MVz4F@OM%mFcE~KX">
                                               <field name="VAR" id="wvB)ss3.ucMJXeJk!`Nw">level</field>
                                               <value name="VALUE">
                                                 <block type="math_number" id="_EpOy)y6a0$sp/sIba,.">
                                                   <field name="NUM">30</field>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="variables_set" id="E4Q*^fQ6+C/n4N@M!m$[">
                                                   <field name="VAR" id="43M!).Z=m=7SbhCJ0PR7">ct</field>
                                                   <value name="VALUE">
                                                     <block type="math_number" id="H_Z*fxFw(#jSs)7Wd8YX">
                                                       <field name="NUM">200</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </next>
                                             </block>
                                           </statement>
                                           <statement name="ELSE">
                                             <block type="variables_set" id="tWx:S(byeyltmOeQ-?]M">
                                               <field name="VAR" id="wvB)ss3.ucMJXeJk!`Nw">level</field>
                                               <value name="VALUE">
                                                 <block type="math_number" id="babJi+Cy8jxk=04m3X{2">
                                                   <field name="NUM">10</field>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="variables_set" id="SiHG^!%c/k%y?Af[iQo!">
                                                   <field name="VAR" id="43M!).Z=m=7SbhCJ0PR7">ct</field>
                                                   <value name="VALUE">
                                                     <block type="math_number" id="ln?v`wnB*8uYuFnHLZyN">
                                                       <field name="NUM">340</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </next>
                                             </block>
                                           </statement>
                                           <next>
                                             <block type="control" id="fn32UPV8!EY@LVl@l441">
                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                               <field name="OID">alias.0.Licht.Flur.Deckenlampe_Flur_Dimmwert</field>
                                               <field name="WITH_DELAY">FALSE</field>
                                               <value name="VALUE">
                                                 <block type="variables_get" id="5qj76%LX)ir}oZ/6QU8K">
                                                   <field name="VAR" id="wvB)ss3.ucMJXeJk!`Nw">level</field>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="control" id="B)IfBUKu~Bwh#Oo%=N!E">
                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                   <field name="OID">alias.0.Licht.Flur.Deckenlampe_Flur_Farbtemperatur</field>
                                                   <field name="WITH_DELAY">FALSE</field>
                                                   <value name="VALUE">
                                                     <block type="variables_get" id="ME}sOV}Kh}+K+|TvMu=E">
                                                       <field name="VAR" id="43M!).Z=m=7SbhCJ0PR7">ct</field>
                                                     </block>
                                                   </value>
                                                   <next>
                                                     <block type="control" id="qKv$`19TYKeN05R74=7Y">
                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                       <field name="OID">alias.0.Licht.Flur.Deckenlampe_Flur</field>
                                                       <field name="WITH_DELAY">FALSE</field>
                                                       <value name="VALUE">
                                                         <block type="logic_boolean" id="?a2capuBWyh$zJU(u%Xr">
                                                           <field name="BOOL">TRUE</field>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </statement>
                                   <statement name="ELSE">
                                     <block type="timeouts_settimeout" id="EWUG;n=f.[20rin0,hE9">
                                       <field name="NAME">timeout</field>
                                       <field name="DELAY">3</field>
                                       <field name="UNIT">min</field>
                                       <statement name="STATEMENT">
                                         <block type="control" id="H[A{jz0[.Mvj%H7h(gW^">
                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                           <field name="OID">alias.0.Licht.Flur.Deckenlampe_Flur</field>
                                           <field name="WITH_DELAY">FALSE</field>
                                           <value name="VALUE">
                                             <block type="logic_boolean" id=";NZ=bc({k|F;n{%dcYa}">
                                               <field name="BOOL">FALSE</field>
                                             </block>
                                           </value>
                                         </block>
                                       </statement>
                                     </block>
                                   </statement>
                                 </block>
                               </statement>
                             </block>
                           </statement>
                           <next>
                             <block type="on_ext" id="Kg6m`;VxfJ,iWYG6m6vl">
                               <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="Huz,enH*$,(K(Q2~6Iyi">
                                   <field name="oid">alias.0.Licht.Flur.Deckenlampe_Flur</field>
                                 </shadow>
                               </value>
                               <statement name="STATEMENT">
                                 <block type="variables_set" id="H.X]pVt-[.SG*mSo2%;G">
                                   <field name="VAR" id="$A5sBj~`{HnEyT{S,,zX">manuell</field>
                                   <value name="VALUE">
                                     <block type="logic_operation" id="5X;VDBZ5|G0)6[t;_Ill" inline="false">
                                       <field name="OP">AND</field>
                                       <value name="A">
                                         <block type="on_source" id="o4-9,(o#HTx:}]|7zyCy">
                                           <field name="ATTR">state.val</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="logic_compare" id="g,4XFQ{VIRAB~u$kAFec">
                                           <field name="OP">NEQ</field>
                                           <value name="A">
                                             <block type="on_source" id="avL^M)Ct_sI32]4a1]X.">
                                               <field name="ATTR">state.from</field>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <block type="text" id="g%jGCj+)5XnCikl8P}Ni">
                                               <field name="TEXT">system.adapter.javascript.0</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                 </block>
                               </statement>
                             </block>
                           </next>
                         </block>
                        </xml>
                        

                        S Offline
                        S Offline
                        sandro_gera
                        schrieb am zuletzt editiert von
                        #34

                        @paul53

                        Ich meine Wert von Objekt ID = wahr

                        Master RPI4 8GB, Slave RPI3 1GB
                        Node.js v18.17.1, npm: 9.6.7,
                        JS-Controller: 5.0.16

                        paul53P 1 Antwort Letzte Antwort
                        0
                        • S sandro_gera

                          @paul53

                          Ich meine Wert von Objekt ID = wahr

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

                          @sandro_gera sagte:

                          Ich meine Wert von Objekt ID = wahr

                          Wert enthält das gleiche, nämlich den Wert des Trigger-Datenpunktes.

                          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

                          S 1 Antwort Letzte Antwort
                          0
                          • paul53P paul53

                            @sandro_gera sagte:

                            Ich meine Wert von Objekt ID = wahr

                            Wert enthält das gleiche, nämlich den Wert des Trigger-Datenpunktes.

                            S Offline
                            S Offline
                            sandro_gera
                            schrieb am zuletzt editiert von
                            #36

                            @paul53

                            sorry ich bin ja kein Experte. Ich hab nur gefagt weil mit der anderen Version das Licht an geht

                            Master RPI4 8GB, Slave RPI3 1GB
                            Node.js v18.17.1, npm: 9.6.7,
                            JS-Controller: 5.0.16

                            paul53P 1 Antwort Letzte Antwort
                            0
                            • S sandro_gera

                              @paul53

                              sorry ich bin ja kein Experte. Ich hab nur gefagt weil mit der anderen Version das Licht an geht

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

                              @sandro_gera

                              Habe gerade gesehen: Es fehlt das "nicht" vor manuell !

                              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

                              S 1 Antwort Letzte Antwort
                              0
                              • paul53P paul53

                                @sandro_gera

                                Habe gerade gesehen: Es fehlt das "nicht" vor manuell !

                                Blockly_temp.JPG

                                S Offline
                                S Offline
                                sandro_gera
                                schrieb am zuletzt editiert von
                                #38

                                @paul53

                                Was doch so ein kleines Wörtchen "nicht" alles ausmachen kann.

                                73ab5dc6-8f86-4c36-a5ab-03768340c5f5-image.png

                                Das Licht geht an!

                                Ich glaube jetzt gehts vielen vielen Dank

                                Master RPI4 8GB, Slave RPI3 1GB
                                Node.js v18.17.1, npm: 9.6.7,
                                JS-Controller: 5.0.16

                                paul53P 1 Antwort Letzte Antwort
                                0
                                • S sandro_gera

                                  @paul53

                                  Was doch so ein kleines Wörtchen "nicht" alles ausmachen kann.

                                  73ab5dc6-8f86-4c36-a5ab-03768340c5f5-image.png

                                  Das Licht geht an!

                                  Ich glaube jetzt gehts vielen vielen Dank

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

                                  @sandro_gera sagte:

                                  Was doch so ein kleines Wörtchen "nicht" alles ausmachen kann.

                                  Ja, es bewirkt halt das Gegenteil.

                                  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

                                  S 2 Antworten Letzte Antwort
                                  0
                                  • paul53P paul53

                                    @sandro_gera sagte:

                                    Was doch so ein kleines Wörtchen "nicht" alles ausmachen kann.

                                    Ja, es bewirkt halt das Gegenteil.

                                    S Offline
                                    S Offline
                                    sandro_gera
                                    schrieb am zuletzt editiert von
                                    #40

                                    @paul53

                                    Jap logisch. Ok dann beobachte ich jetzt mal ob alles funktioniert.
                                    Sollte etwas nicht klappen melde ich mich.
                                    Nochmals vielen Dank und sorry das ich mich manchmal so dumm angestellt habe.

                                    Master RPI4 8GB, Slave RPI3 1GB
                                    Node.js v18.17.1, npm: 9.6.7,
                                    JS-Controller: 5.0.16

                                    1 Antwort Letzte Antwort
                                    0
                                    • paul53P paul53

                                      @sandro_gera sagte:

                                      Was doch so ein kleines Wörtchen "nicht" alles ausmachen kann.

                                      Ja, es bewirkt halt das Gegenteil.

                                      S Offline
                                      S Offline
                                      sandro_gera
                                      schrieb am zuletzt editiert von
                                      #41

                                      @paul53

                                      Hallo Paul, ich hab nochmal eine Frage zu einem anderen Blockly das ich erstellen möchte.
                                      Ich hab einen Osram Motion+ Bewegungsmelder und möchte, dass wenn dieser eine Bewegung erfasst zwei Lampe geschalten werden, allerdings nur nach Sonnenuntergang und vor Sonnenaufgang und wenn diese nicht schon durch einen Sonoff Schalter eingeschaltet wurden.

                                      2550cd34-71d8-4281-9a16-975089ab31ac-image.png

                                      <xml xmlns="https://developers.google.com/blockly/xml">
                                        <variables>
                                          <variable id="Ik?`;_^3$2,9W6VQSQ~3">manuell</variable>
                                        </variables>
                                        <block type="on_ext" id="m^ctya_*xjD8-KQUH,61" x="-387" y="-312">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                          <field name="CONDITION">true</field>
                                          <field name="ACK_CONDITION"></field>
                                          <value name="OID0">
                                            <shadow type="field_oid" id="_T7NQNq|6_KL]8~#AmPL">
                                              <field name="oid">alias.0.Bewegungsmelder.Küche.OSRAM_Smart_plus_Motion_presence</field>
                                            </shadow>
                                          </value>
                                          <statement name="STATEMENT">
                                            <block type="controls_if" id="AjIawNtDhM8SXPVhw{e`">
                                              <value name="IF0">
                                                <block type="logic_negate" id="Hjw[|jxFGlaK+tB[Xzic">
                                                  <value name="BOOL">
                                                    <block type="variables_get" id="}CE3k{LCn40h(vIrYV=x">
                                                      <field name="VAR" id="Ik?`;_^3$2,9W6VQSQ~3">manuell</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <statement name="DO0">
                                                <block type="controls_if" id="vQFC4G#mtRRlX.VWnqrI">
                                                  <value name="IF0">
                                                    <block type="logic_operation" id="Yy~I1gw@#1s|eb*^QU]s" inline="false">
                                                      <field name="OP">AND</field>
                                                      <value name="A">
                                                        <block type="on_source" id=",?sb*{!q|?vcfgqoJR^D">
                                                          <field name="ATTR">state.val</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="time_compare_ex" id="ey-,zU=|GQ~-lu2{d?05">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                                          <field name="USE_ACTUAL_TIME">TRUE</field>
                                                          <field name="OPTION">between</field>
                                                          <value name="START_TIME">
                                                            <shadow type="text" id="CW1)M1p;$JsM:Cj5%}.p">
                                                              <field name="TEXT">12:00</field>
                                                            </shadow>
                                                            <block type="time_astro" id="Q?9@xZ*n9t/b-X?z:FKX">
                                                              <field name="TYPE">sunset</field>
                                                              <field name="OFFSET">0</field>
                                                            </block>
                                                          </value>
                                                          <value name="END_TIME">
                                                            <shadow type="text" id="Lrv[#^v+EiYT/RyF-38]">
                                                              <field name="TEXT">18:00</field>
                                                            </shadow>
                                                            <block type="time_astro" id="?M!.Ij2q~S:14)nF3-B5">
                                                              <field name="TYPE">sunrise</field>
                                                              <field name="OFFSET">0</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <statement name="DO0">
                                                    <block type="control" id="j{iYD3~l*zpr@KNEtMr[">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                      <field name="OID">alias.0.Licht.Kueche.Sitzecke_Küche</field>
                                                      <field name="WITH_DELAY">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="logic_boolean" id="gNB|jW2JqpYR-b@gT~z:">
                                                          <field name="BOOL">TRUE</field>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="control" id="`={{)Zg80|j]CRJ(JS]]">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                          <field name="OID">alias.0.Licht.Kueche.Spuele_Kueche</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="logic_boolean" id="f(oqs-6ORlXavV(2OF+8">
                                                              <field name="BOOL">TRUE</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </statement>
                                                </block>
                                              </statement>
                                            </block>
                                          </statement>
                                          <next>
                                            <block type="on_ext" id="Cc5FGM]lHd;8*-vEl(87">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                              <field name="CONDITION">true</field>
                                              <field name="ACK_CONDITION"></field>
                                              <value name="OID0">
                                                <shadow type="field_oid" id="J82_w$aysD(,n#TfjKi$">
                                                  <field name="oid">alias.0.Steckdosen.Kueche.Fernseher-Kueche</field>
                                                </shadow>
                                              </value>
                                              <statement name="STATEMENT">
                                                <block type="controls_if" id="kI2O[+^*EQe-N6{_73pC">
                                                  <value name="IF0">
                                                    <block type="time_compare_ex" id="6is|BuqK]*6m-aPwb/@U">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                                      <field name="USE_ACTUAL_TIME">TRUE</field>
                                                      <field name="OPTION">between</field>
                                                      <value name="START_TIME">
                                                        <shadow type="text" id="];F}z@vB:nYR+}[8e-G?">
                                                          <field name="TEXT">12:00</field>
                                                        </shadow>
                                                        <block type="time_astro" id="GwzCWWG4p:b:!@RlUvDM">
                                                          <field name="TYPE">sunset</field>
                                                          <field name="OFFSET">0</field>
                                                        </block>
                                                      </value>
                                                      <value name="END_TIME">
                                                        <shadow type="text" id="sWBH}U%x5Sqx#y@V3iaI">
                                                          <field name="TEXT">18:00</field>
                                                        </shadow>
                                                        <block type="time_astro" id="0DjcAfg98o6D]UOHKB4!">
                                                          <field name="TYPE">sunrise</field>
                                                          <field name="OFFSET">0</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <statement name="DO0">
                                                    <block type="control" id=";7,M0kAz=I9`8,J[ExVE">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                      <field name="OID">alias.0.Licht.Kueche.Sitzecke_Küche</field>
                                                      <field name="WITH_DELAY">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="logic_boolean" id="VgHRkw8$KYyY]:/Mu[1s">
                                                          <field name="BOOL">FALSE</field>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="control" id="7Rz9IM61s?Uy?Q!t7v1U">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                          <field name="OID">alias.0.Licht.Kueche.Spuele_Kueche</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="logic_boolean" id="vEgYr##hR+SBQasU|zU`">
                                                              <field name="BOOL">FALSE</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </statement>
                                                  <next>
                                                    <block type="variables_set" id="H.X]pVt-[.SG*mSo2%;G">
                                                      <field name="VAR" id="Ik?`;_^3$2,9W6VQSQ~3">manuell</field>
                                                      <value name="VALUE">
                                                        <block type="logic_operation" id="5X;VDBZ5|G0)6[t;_Ill" inline="false">
                                                          <field name="OP">AND</field>
                                                          <value name="A">
                                                            <block type="on_source" id="o4-9,(o#HTx:}]|7zyCy">
                                                              <field name="ATTR">state.val</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="logic_compare" id="g,4XFQ{VIRAB~u$kAFec">
                                                              <field name="OP">NEQ</field>
                                                              <value name="A">
                                                                <block type="on_source" id="avL^M)Ct_sI32]4a1]X.">
                                                                  <field name="ATTR">state.from</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="text" id="g%jGCj+)5XnCikl8P}Ni">
                                                                  <field name="TEXT">system.adapter.javascript.0</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </next>
                                                </block>
                                              </statement>
                                            </block>
                                          </next>
                                        </block>
                                      </xml>
                                      

                                      Das Problem ist, wenn ich zum Beispiel am Küchentisch sitze erkennt der Bewegungsmelder manche Bewegungen nicht und schaltet die Lampe dann sofort ab. Hast du eine idee ob ich das irgendwie lösen kann oder funktioniert das nur mit einem Präsenzmelder?

                                      Master RPI4 8GB, Slave RPI3 1GB
                                      Node.js v18.17.1, npm: 9.6.7,
                                      JS-Controller: 5.0.16

                                      paul53P 1 Antwort Letzte Antwort
                                      0
                                      • S sandro_gera

                                        @paul53

                                        Hallo Paul, ich hab nochmal eine Frage zu einem anderen Blockly das ich erstellen möchte.
                                        Ich hab einen Osram Motion+ Bewegungsmelder und möchte, dass wenn dieser eine Bewegung erfasst zwei Lampe geschalten werden, allerdings nur nach Sonnenuntergang und vor Sonnenaufgang und wenn diese nicht schon durch einen Sonoff Schalter eingeschaltet wurden.

                                        2550cd34-71d8-4281-9a16-975089ab31ac-image.png

                                        <xml xmlns="https://developers.google.com/blockly/xml">
                                          <variables>
                                            <variable id="Ik?`;_^3$2,9W6VQSQ~3">manuell</variable>
                                          </variables>
                                          <block type="on_ext" id="m^ctya_*xjD8-KQUH,61" x="-387" y="-312">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                            <field name="CONDITION">true</field>
                                            <field name="ACK_CONDITION"></field>
                                            <value name="OID0">
                                              <shadow type="field_oid" id="_T7NQNq|6_KL]8~#AmPL">
                                                <field name="oid">alias.0.Bewegungsmelder.Küche.OSRAM_Smart_plus_Motion_presence</field>
                                              </shadow>
                                            </value>
                                            <statement name="STATEMENT">
                                              <block type="controls_if" id="AjIawNtDhM8SXPVhw{e`">
                                                <value name="IF0">
                                                  <block type="logic_negate" id="Hjw[|jxFGlaK+tB[Xzic">
                                                    <value name="BOOL">
                                                      <block type="variables_get" id="}CE3k{LCn40h(vIrYV=x">
                                                        <field name="VAR" id="Ik?`;_^3$2,9W6VQSQ~3">manuell</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO0">
                                                  <block type="controls_if" id="vQFC4G#mtRRlX.VWnqrI">
                                                    <value name="IF0">
                                                      <block type="logic_operation" id="Yy~I1gw@#1s|eb*^QU]s" inline="false">
                                                        <field name="OP">AND</field>
                                                        <value name="A">
                                                          <block type="on_source" id=",?sb*{!q|?vcfgqoJR^D">
                                                            <field name="ATTR">state.val</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="time_compare_ex" id="ey-,zU=|GQ~-lu2{d?05">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                                            <field name="USE_ACTUAL_TIME">TRUE</field>
                                                            <field name="OPTION">between</field>
                                                            <value name="START_TIME">
                                                              <shadow type="text" id="CW1)M1p;$JsM:Cj5%}.p">
                                                                <field name="TEXT">12:00</field>
                                                              </shadow>
                                                              <block type="time_astro" id="Q?9@xZ*n9t/b-X?z:FKX">
                                                                <field name="TYPE">sunset</field>
                                                                <field name="OFFSET">0</field>
                                                              </block>
                                                            </value>
                                                            <value name="END_TIME">
                                                              <shadow type="text" id="Lrv[#^v+EiYT/RyF-38]">
                                                                <field name="TEXT">18:00</field>
                                                              </shadow>
                                                              <block type="time_astro" id="?M!.Ij2q~S:14)nF3-B5">
                                                                <field name="TYPE">sunrise</field>
                                                                <field name="OFFSET">0</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <statement name="DO0">
                                                      <block type="control" id="j{iYD3~l*zpr@KNEtMr[">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                        <field name="OID">alias.0.Licht.Kueche.Sitzecke_Küche</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="logic_boolean" id="gNB|jW2JqpYR-b@gT~z:">
                                                            <field name="BOOL">TRUE</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="control" id="`={{)Zg80|j]CRJ(JS]]">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                            <field name="OID">alias.0.Licht.Kueche.Spuele_Kueche</field>
                                                            <field name="WITH_DELAY">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="logic_boolean" id="f(oqs-6ORlXavV(2OF+8">
                                                                <field name="BOOL">TRUE</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </statement>
                                                  </block>
                                                </statement>
                                              </block>
                                            </statement>
                                            <next>
                                              <block type="on_ext" id="Cc5FGM]lHd;8*-vEl(87">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                                <field name="CONDITION">true</field>
                                                <field name="ACK_CONDITION"></field>
                                                <value name="OID0">
                                                  <shadow type="field_oid" id="J82_w$aysD(,n#TfjKi$">
                                                    <field name="oid">alias.0.Steckdosen.Kueche.Fernseher-Kueche</field>
                                                  </shadow>
                                                </value>
                                                <statement name="STATEMENT">
                                                  <block type="controls_if" id="kI2O[+^*EQe-N6{_73pC">
                                                    <value name="IF0">
                                                      <block type="time_compare_ex" id="6is|BuqK]*6m-aPwb/@U">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                                        <field name="USE_ACTUAL_TIME">TRUE</field>
                                                        <field name="OPTION">between</field>
                                                        <value name="START_TIME">
                                                          <shadow type="text" id="];F}z@vB:nYR+}[8e-G?">
                                                            <field name="TEXT">12:00</field>
                                                          </shadow>
                                                          <block type="time_astro" id="GwzCWWG4p:b:!@RlUvDM">
                                                            <field name="TYPE">sunset</field>
                                                            <field name="OFFSET">0</field>
                                                          </block>
                                                        </value>
                                                        <value name="END_TIME">
                                                          <shadow type="text" id="sWBH}U%x5Sqx#y@V3iaI">
                                                            <field name="TEXT">18:00</field>
                                                          </shadow>
                                                          <block type="time_astro" id="0DjcAfg98o6D]UOHKB4!">
                                                            <field name="TYPE">sunrise</field>
                                                            <field name="OFFSET">0</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <statement name="DO0">
                                                      <block type="control" id=";7,M0kAz=I9`8,J[ExVE">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                        <field name="OID">alias.0.Licht.Kueche.Sitzecke_Küche</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="logic_boolean" id="VgHRkw8$KYyY]:/Mu[1s">
                                                            <field name="BOOL">FALSE</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="control" id="7Rz9IM61s?Uy?Q!t7v1U">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                            <field name="OID">alias.0.Licht.Kueche.Spuele_Kueche</field>
                                                            <field name="WITH_DELAY">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="logic_boolean" id="vEgYr##hR+SBQasU|zU`">
                                                                <field name="BOOL">FALSE</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </statement>
                                                    <next>
                                                      <block type="variables_set" id="H.X]pVt-[.SG*mSo2%;G">
                                                        <field name="VAR" id="Ik?`;_^3$2,9W6VQSQ~3">manuell</field>
                                                        <value name="VALUE">
                                                          <block type="logic_operation" id="5X;VDBZ5|G0)6[t;_Ill" inline="false">
                                                            <field name="OP">AND</field>
                                                            <value name="A">
                                                              <block type="on_source" id="o4-9,(o#HTx:}]|7zyCy">
                                                                <field name="ATTR">state.val</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="logic_compare" id="g,4XFQ{VIRAB~u$kAFec">
                                                                <field name="OP">NEQ</field>
                                                                <value name="A">
                                                                  <block type="on_source" id="avL^M)Ct_sI32]4a1]X.">
                                                                    <field name="ATTR">state.from</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="text" id="g%jGCj+)5XnCikl8P}Ni">
                                                                    <field name="TEXT">system.adapter.javascript.0</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </statement>
                                              </block>
                                            </next>
                                          </block>
                                        </xml>
                                        

                                        Das Problem ist, wenn ich zum Beispiel am Küchentisch sitze erkennt der Bewegungsmelder manche Bewegungen nicht und schaltet die Lampe dann sofort ab. Hast du eine idee ob ich das irgendwie lösen kann oder funktioniert das nur mit einem Präsenzmelder?

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

                                        @sandro_gera sagte:

                                        nur nach Sonnenuntergang und vor Sonnenaufgang

                                        Bei Astrozeiten muss Beginn vor Ende liegen (funktioniert nicht Tag übergreifend), also für nachts: nicht zwischen SA und SU

                                        @sandro_gera sagte in Bewegungsmelder blockly nach Zeit:

                                        wenn diese nicht schon durch einen Sonoff Schalter eingeschaltet wurden.

                                        Ich sehe nur, dass der Fernseher das Licht ausschalten soll ?

                                        Anstelle der Trigger auf "wahr" nimm besser "ist größer als letztes", die nur bei Änderung von false --> true triggern. Soll der BWM das Licht dauerhaft einschalten ?

                                        @sandro_gera sagte in Bewegungsmelder blockly nach Zeit:

                                        funktioniert das nur mit einem Präsenzmelder?

                                        Da ich weder BWM noch Präsenzmelder habe, kenne ich das Verhalten nicht.

                                        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

                                        S 1 Antwort Letzte Antwort
                                        0
                                        • paul53P paul53

                                          @sandro_gera sagte:

                                          nur nach Sonnenuntergang und vor Sonnenaufgang

                                          Bei Astrozeiten muss Beginn vor Ende liegen (funktioniert nicht Tag übergreifend), also für nachts: nicht zwischen SA und SU

                                          @sandro_gera sagte in Bewegungsmelder blockly nach Zeit:

                                          wenn diese nicht schon durch einen Sonoff Schalter eingeschaltet wurden.

                                          Ich sehe nur, dass der Fernseher das Licht ausschalten soll ?

                                          Anstelle der Trigger auf "wahr" nimm besser "ist größer als letztes", die nur bei Änderung von false --> true triggern. Soll der BWM das Licht dauerhaft einschalten ?

                                          @sandro_gera sagte in Bewegungsmelder blockly nach Zeit:

                                          funktioniert das nur mit einem Präsenzmelder?

                                          Da ich weder BWM noch Präsenzmelder habe, kenne ich das Verhalten nicht.

                                          S Offline
                                          S Offline
                                          sandro_gera
                                          schrieb am zuletzt editiert von sandro_gera
                                          #43

                                          @paul53 said in Bewegungsmelder blockly nach Zeit:

                                          @sandro_gera sagte:

                                          nur nach Sonnenuntergang und vor Sonnenaufgang

                                          Bei Astrozeiten muss Beginn vor Ende liegen (funktioniert nicht Tag übergreifend), also für nachts: nicht zwischen SA und SU

                                          Also muß ich ein Blockly für Sonnenuntergang erstellen und ein 2. für vor dem Sonnenaufgang? und wie stelle ich das ein mit - Minuten?

                                          @sandro_gera sagte in Bewegungsmelder blockly nach Zeit:

                                          wenn diese nicht schon durch einen Sonoff Schalter eingeschaltet wurden.

                                          Ich sehe nur, dass der Fernseher das Licht ausschalten soll ?

                                          sorrry ich hatte vergessen das auf Bewegungsmelder umzustellen.

                                          Anstelle der Trigger auf "wahr" nimm besser "ist größer als letztes", die nur bei Änderung von false --> true triggern. Soll der BWM das Licht dauerhaft einschalten ?

                                          Das Licht soll so lange an bleiben bis ich das Zimmer länger Zeit verlasse.

                                          @sandro_gera sagte in Bewegungsmelder blockly nach Zeit:

                                          funktioniert das nur mit einem Präsenzmelder?

                                          Da ich weder BWM noch Präsenzmelder habe, kenne ich das Verhalten nicht.

                                          Der Unterschied ist, das ein Präsenzmelder nicht über die Bewegung steuert, sonder die Anwesenheit über die Wärmequelle erkennt.
                                          Der wäre also eigentlich ideal. Den Bewegungsmelder habe ich aber noch zu Hause und dachte ich kann ihn trotzdem irgendwie verwenden.

                                          026ad43a-adc2-4a57-a435-bbb886420b8f-image.png

                                          Master RPI4 8GB, Slave RPI3 1GB
                                          Node.js v18.17.1, npm: 9.6.7,
                                          JS-Controller: 5.0.16

                                          paul53P 1 Antwort Letzte Antwort
                                          0
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          485

                                          Online

                                          32.7k

                                          Benutzer

                                          82.5k

                                          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