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.
  • 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
          • S sandro_gera

            @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

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

            @sandro_gera sagte in Bewegungsmelder blockly nach Zeit:

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

            Hat der BWM eine eigene Ausschaltverzögerung ? Dann sollte es so funktionieren:

            Blockly_temp.JPG

            <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">ne</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_operation" id="np6DF~Z57YL_4:oC@ot6" inline="false">
                       <field name="OP">AND</field>
                       <value name="A">
                         <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>
                       <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">not 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">sunrise</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">sunset</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="on_source" id="c(.$0bbY@%eg$Ft*!+(3">
                           <field name="ATTR">state.val</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="on_source" id="}|}r{Tsv9nSt4uM.8TcG">
                               <field name="ATTR">state.val</field>
                             </block>
                           </value>
                         </block>
                       </next>
                     </block>
                   </statement>
                 </block>
               </statement>
               <next>
                 <block type="on_ext" id="bC{yAAD)cQ4#p29#C@#_">
                   <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                   <field name="CONDITION">ne</field>
                   <field name="ACK_CONDITION"></field>
                   <value name="OID0">
                     <shadow type="field_oid" id=";n6#=sBC`|uZj*^.+N3j">
                       <field name="oid">default</field>
                     </shadow>
                     <block type="text" id="X0_^|HM$QaYHn,*+W%`h">
                       <field name="TEXT">alias.0.Licht.Kueche.Sitzecke_Küche</field>
                     </block>
                   </value>
                   <value name="OID1">
                     <shadow type="field_oid" id="cCX-Z1VJNG9*RN;paA1M">
                       <field name="oid">default</field>
                     </shadow>
                     <block type="text" id="aXD=w(l=78}W$Q!7%g/0">
                       <field name="TEXT">alias.0.Licht.Kueche.Spuele_Kueche</field>
                     </block>
                   </value>
                   <statement name="STATEMENT">
                     <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="logic_operation" id="w02V0-,Xdr^{n-JYU{ia" inline="false">
                               <field name="OP">OR</field>
                               <value name="A">
                                 <block type="get_value_var" id="#3!yRfmWIjb^~=F87f}J">
                                   <field name="ATTR">val</field>
                                   <value name="OID">
                                     <shadow type="text" id="g)?W76,0dY|I8sIuL~(h">
                                       <field name="TEXT">alias.0.Licht.Kueche.Sitzecke_Küche</field>
                                     </shadow>
                                   </value>
                                 </block>
                               </value>
                               <value name="B">
                                 <block type="get_value_var" id="m%{V/b4yi]7q$9z-#CB7">
                                   <field name="ATTR">val</field>
                                   <value name="OID">
                                     <shadow type="text" id="[Od,*@MTq]#Uy9Jh+K%)">
                                       <field name="TEXT">alias.0.Licht.Kueche.Spuele_Kueche</field>
                                     </shadow>
                                   </value>
                                 </block>
                               </value>
                             </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 3 Antworten Letzte Antwort
            0
            • paul53P paul53

              @sandro_gera sagte in Bewegungsmelder blockly nach Zeit:

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

              Hat der BWM eine eigene Ausschaltverzögerung ? Dann sollte es so funktionieren:

              Blockly_temp.JPG

              <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">ne</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_operation" id="np6DF~Z57YL_4:oC@ot6" inline="false">
                         <field name="OP">AND</field>
                         <value name="A">
                           <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>
                         <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">not 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">sunrise</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">sunset</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="on_source" id="c(.$0bbY@%eg$Ft*!+(3">
                             <field name="ATTR">state.val</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="on_source" id="}|}r{Tsv9nSt4uM.8TcG">
                                 <field name="ATTR">state.val</field>
                               </block>
                             </value>
                           </block>
                         </next>
                       </block>
                     </statement>
                   </block>
                 </statement>
                 <next>
                   <block type="on_ext" id="bC{yAAD)cQ4#p29#C@#_">
                     <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                     <field name="CONDITION">ne</field>
                     <field name="ACK_CONDITION"></field>
                     <value name="OID0">
                       <shadow type="field_oid" id=";n6#=sBC`|uZj*^.+N3j">
                         <field name="oid">default</field>
                       </shadow>
                       <block type="text" id="X0_^|HM$QaYHn,*+W%`h">
                         <field name="TEXT">alias.0.Licht.Kueche.Sitzecke_Küche</field>
                       </block>
                     </value>
                     <value name="OID1">
                       <shadow type="field_oid" id="cCX-Z1VJNG9*RN;paA1M">
                         <field name="oid">default</field>
                       </shadow>
                       <block type="text" id="aXD=w(l=78}W$Q!7%g/0">
                         <field name="TEXT">alias.0.Licht.Kueche.Spuele_Kueche</field>
                       </block>
                     </value>
                     <statement name="STATEMENT">
                       <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="logic_operation" id="w02V0-,Xdr^{n-JYU{ia" inline="false">
                                 <field name="OP">OR</field>
                                 <value name="A">
                                   <block type="get_value_var" id="#3!yRfmWIjb^~=F87f}J">
                                     <field name="ATTR">val</field>
                                     <value name="OID">
                                       <shadow type="text" id="g)?W76,0dY|I8sIuL~(h">
                                         <field name="TEXT">alias.0.Licht.Kueche.Sitzecke_Küche</field>
                                       </shadow>
                                     </value>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <block type="get_value_var" id="m%{V/b4yi]7q$9z-#CB7">
                                     <field name="ATTR">val</field>
                                     <value name="OID">
                                       <shadow type="text" id="[Od,*@MTq]#Uy9Jh+K%)">
                                         <field name="TEXT">alias.0.Licht.Kueche.Spuele_Kueche</field>
                                       </shadow>
                                     </value>
                                   </block>
                                 </value>
                               </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
              #45

              @paul53

              das sind die datenpunkte des Bewegungsmelders

              915aaaf2-f896-49d1-9d51-7e4693c340c1-image.png

              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 in Bewegungsmelder blockly nach Zeit:

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

                Hat der BWM eine eigene Ausschaltverzögerung ? Dann sollte es so funktionieren:

                Blockly_temp.JPG

                <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">ne</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_operation" id="np6DF~Z57YL_4:oC@ot6" inline="false">
                           <field name="OP">AND</field>
                           <value name="A">
                             <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>
                           <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">not 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">sunrise</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">sunset</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="on_source" id="c(.$0bbY@%eg$Ft*!+(3">
                               <field name="ATTR">state.val</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="on_source" id="}|}r{Tsv9nSt4uM.8TcG">
                                   <field name="ATTR">state.val</field>
                                 </block>
                               </value>
                             </block>
                           </next>
                         </block>
                       </statement>
                     </block>
                   </statement>
                   <next>
                     <block type="on_ext" id="bC{yAAD)cQ4#p29#C@#_">
                       <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                       <field name="CONDITION">ne</field>
                       <field name="ACK_CONDITION"></field>
                       <value name="OID0">
                         <shadow type="field_oid" id=";n6#=sBC`|uZj*^.+N3j">
                           <field name="oid">default</field>
                         </shadow>
                         <block type="text" id="X0_^|HM$QaYHn,*+W%`h">
                           <field name="TEXT">alias.0.Licht.Kueche.Sitzecke_Küche</field>
                         </block>
                       </value>
                       <value name="OID1">
                         <shadow type="field_oid" id="cCX-Z1VJNG9*RN;paA1M">
                           <field name="oid">default</field>
                         </shadow>
                         <block type="text" id="aXD=w(l=78}W$Q!7%g/0">
                           <field name="TEXT">alias.0.Licht.Kueche.Spuele_Kueche</field>
                         </block>
                       </value>
                       <statement name="STATEMENT">
                         <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="logic_operation" id="w02V0-,Xdr^{n-JYU{ia" inline="false">
                                   <field name="OP">OR</field>
                                   <value name="A">
                                     <block type="get_value_var" id="#3!yRfmWIjb^~=F87f}J">
                                       <field name="ATTR">val</field>
                                       <value name="OID">
                                         <shadow type="text" id="g)?W76,0dY|I8sIuL~(h">
                                           <field name="TEXT">alias.0.Licht.Kueche.Sitzecke_Küche</field>
                                         </shadow>
                                       </value>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="get_value_var" id="m%{V/b4yi]7q$9z-#CB7">
                                       <field name="ATTR">val</field>
                                       <value name="OID">
                                         <shadow type="text" id="[Od,*@MTq]#Uy9Jh+K%)">
                                           <field name="TEXT">alias.0.Licht.Kueche.Spuele_Kueche</field>
                                         </shadow>
                                       </value>
                                     </block>
                                   </value>
                                 </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
                #46

                @paul53

                Danke nochmals, aber orgendwo muß ich nen Fehler habe, das Licht bleibt aus wenn ich in den Raum komme.

                Ich habe auch noch ein 2. Blockly erstellt bei dem eine Wandlampe im Arbeitszimmer angehen sollte, wenn der Computer angeschaltet ist und wenn die sonne untergeht. Das funktioniert leider auch nicht.

                32f19255-b655-4fb4-91c5-8ba63528de45-image.png

                <xml xmlns="https://developers.google.com/blockly/xml">
                  <variables>
                    <variable id="Ik?`;_^3$2,9W6VQSQ~3">manuell</variable>
                    <variable id="BBlob__c0O4~vBzD]b(?">Wert</variable>
                  </variables>
                  <block type="on_ext" id="m^ctya_*xjD8-KQUH,61" x="-887" y="-512">
                    <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.Steckdosen.Arbeitszimmer.Computer_1_Arbeitszimmer</field>
                      </shadow>
                    </value>
                    <statement name="STATEMENT">
                      <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="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>
                            <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">not 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">sunrise</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">sunset</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.Arbeitszimmer.Wandlampe_Arbeitszimmer</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="variables_get" id="VN}?Y*5!:[PlA6u|23xm">
                                <field name="VAR" id="BBlob__c0O4~vBzD]b(?">Wert</field>
                              </block>
                            </value>
                          </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.Licht.Arbeitszimmer.Wandlampe_Arbeitszimmer</field>
                          </shadow>
                        </value>
                        <statement name="STATEMENT">
                          <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="get_value" id="@+/Xwx$oMqUW?R;Y3SRF">
                                    <field name="ATTR">val</field>
                                    <field name="OID">alias.0.Licht.Arbeitszimmer.Wandlampe_Arbeitszimmer</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>
                

                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

                  Danke nochmals, aber orgendwo muß ich nen Fehler habe, das Licht bleibt aus wenn ich in den Raum komme.

                  Ich habe auch noch ein 2. Blockly erstellt bei dem eine Wandlampe im Arbeitszimmer angehen sollte, wenn der Computer angeschaltet ist und wenn die sonne untergeht. Das funktioniert leider auch nicht.

                  32f19255-b655-4fb4-91c5-8ba63528de45-image.png

                  <xml xmlns="https://developers.google.com/blockly/xml">
                    <variables>
                      <variable id="Ik?`;_^3$2,9W6VQSQ~3">manuell</variable>
                      <variable id="BBlob__c0O4~vBzD]b(?">Wert</variable>
                    </variables>
                    <block type="on_ext" id="m^ctya_*xjD8-KQUH,61" x="-887" y="-512">
                      <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.Steckdosen.Arbeitszimmer.Computer_1_Arbeitszimmer</field>
                        </shadow>
                      </value>
                      <statement name="STATEMENT">
                        <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="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>
                              <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">not 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">sunrise</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">sunset</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.Arbeitszimmer.Wandlampe_Arbeitszimmer</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="variables_get" id="VN}?Y*5!:[PlA6u|23xm">
                                  <field name="VAR" id="BBlob__c0O4~vBzD]b(?">Wert</field>
                                </block>
                              </value>
                            </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.Licht.Arbeitszimmer.Wandlampe_Arbeitszimmer</field>
                            </shadow>
                          </value>
                          <statement name="STATEMENT">
                            <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="get_value" id="@+/Xwx$oMqUW?R;Y3SRF">
                                      <field name="ATTR">val</field>
                                      <field name="OID">alias.0.Licht.Arbeitszimmer.Wandlampe_Arbeitszimmer</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>
                  
                  paul53P Offline
                  paul53P Offline
                  paul53
                  schrieb am zuletzt editiert von paul53
                  #47

                  @sandro_gera sagte:

                  wenn die sonne untergeht. Das funktioniert leider auch nicht.

                  Stimmt die Zeitzone im OS ? Log-Ausgabe rechts:

                  Blockly_Uhrzeit.JPG

                  Sind die richtigen Ortskoordinaten in der Konfiguration der Javascript-Instanz eingetragen ?

                  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:

                    wenn die sonne untergeht. Das funktioniert leider auch nicht.

                    Stimmt die Zeitzone im OS ? Log-Ausgabe rechts:

                    Blockly_Uhrzeit.JPG

                    Sind die richtigen Ortskoordinaten in der Konfiguration der Javascript-Instanz eingetragen ?

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

                    @paul53

                    javascript.0	2020-11-25 17:28:02.139	info	(5105) script.js.common.Test.Zeit: registered 0 subscriptions and 0 schedules
                    javascript.0	2020-11-25 17:28:02.138	info	(5105) script.js.common.Test.Zeit: 17:28:02
                    javascript.0	2020-11-25 17:28:02.100	info	(5105) Start javascript script.js.common.Test.Zeit
                    

                    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
                    • paul53P paul53

                      @sandro_gera sagte:

                      wenn die sonne untergeht. Das funktioniert leider auch nicht.

                      Stimmt die Zeitzone im OS ? Log-Ausgabe rechts:

                      Blockly_Uhrzeit.JPG

                      Sind die richtigen Ortskoordinaten in der Konfiguration der Javascript-Instanz eingetragen ?

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

                      @paul53 said in Bewegungsmelder blockly nach Zeit:

                      @sandro_gera sagte:

                      wenn die sonne untergeht. Das funktioniert leider auch nicht.

                      Stimmt die Zeitzone im OS ? Log-Ausgabe rechts:

                      Blockly_Uhrzeit.JPG

                      Sind die richtigen Ortskoordinaten in der Konfiguration der Javascript-Instanz eingetragen ?

                      Der Standort wird auf der Karte richtig angezeigt

                      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
                      • S sandro_gera

                        @paul53

                        javascript.0	2020-11-25 17:28:02.139	info	(5105) script.js.common.Test.Zeit: registered 0 subscriptions and 0 schedules
                        javascript.0	2020-11-25 17:28:02.138	info	(5105) script.js.common.Test.Zeit: 17:28:02
                        javascript.0	2020-11-25 17:28:02.100	info	(5105) Start javascript script.js.common.Test.Zeit
                        
                        paul53P Offline
                        paul53P Offline
                        paul53
                        schrieb am zuletzt editiert von paul53
                        #50

                        @sandro_gera
                        Wert darf keine selbst erstellte Variable sein !!

                        Blockly_DP_Props.JPG

                        Ändere die Trigger auf "wurde geändert" !

                        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
                          Wert darf keine selbst erstellte Variable sein !!

                          Blockly_DP_Props.JPG

                          Ändere die Trigger auf "wurde geändert" !

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

                          @paul53

                          Wo bekomme ich das "Wert" denn sonst her? Ich hab es nirgends gefunden.
                          Wenn ich das auf "wurde geändert" stelle, schaltet sich die Lampe dann auch an, wenn der Computer bei sonnenuntergang bereits an ist?

                          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

                            Wo bekomme ich das "Wert" denn sonst her? Ich hab es nirgends gefunden.
                            Wenn ich das auf "wurde geändert" stelle, schaltet sich die Lampe dann auch an, wenn der Computer bei sonnenuntergang bereits an ist?

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

                            @sandro_gera sagte:

                            Wo bekomme ich das "Wert" denn sonst her? Ich hab es nirgends gefunden.

                            Unter Blöcke "Trigger" (siehe Bild).

                            @sandro_gera sagte:

                            schaltet sich die Lampe dann auch an, wenn der Computer bei sonnenuntergang bereits an ist?

                            Nein. Dazu benötigt man einen Astro-Trigger. Etwa so:

                            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 2 Antworten Letzte Antwort
                            1
                            • paul53P paul53

                              @sandro_gera sagte:

                              Wo bekomme ich das "Wert" denn sonst her? Ich hab es nirgends gefunden.

                              Unter Blöcke "Trigger" (siehe Bild).

                              @sandro_gera sagte:

                              schaltet sich die Lampe dann auch an, wenn der Computer bei sonnenuntergang bereits an ist?

                              Nein. Dazu benötigt man einen Astro-Trigger. Etwa so:

                              Blockly_temp.JPG

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

                              @paul53

                              Vielen Dank das das so kompliziert ist hätte ich nicht gedacht.
                              Darauf wäre ich nie gekommen.

                              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:

                                Wo bekomme ich das "Wert" denn sonst her? Ich hab es nirgends gefunden.

                                Unter Blöcke "Trigger" (siehe Bild).

                                @sandro_gera sagte:

                                schaltet sich die Lampe dann auch an, wenn der Computer bei sonnenuntergang bereits an ist?

                                Nein. Dazu benötigt man einen Astro-Trigger. Etwa so:

                                Blockly_temp.JPG

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

                                @paul53

                                ich hab das jetzt mal so erstellt

                                381a7004-372b-40e4-b7bd-ef89038cecd2-image.png

                                <xml xmlns="https://developers.google.com/blockly/xml">
                                  <variables>
                                    <variable id="bgX:Wxxn%S[O^9f,wDcC">computer</variable>
                                    <variable id="Ik?`;_^3$2,9W6VQSQ~3">manuell</variable>
                                  </variables>
                                  <block type="procedures_defnoreturn" id="li@;?QwWuFbHVeb0uMoX" x="-813" y="-562">
                                    <field name="NAME">wandlampe</field>
                                    <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                                    <statement name="STACK">
                                      <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="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>
                                            <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">not 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">sunrise</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">sunset</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.Arbeitszimmer.Wandlampe_Arbeitszimmer</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="variables_get" id="Zeh(oy7gF`2K[w|gV%fs">
                                                <field name="VAR" id="bgX:Wxxn%S[O^9f,wDcC">computer</field>
                                              </block>
                                            </value>
                                          </block>
                                        </statement>
                                      </block>
                                    </statement>
                                  </block>
                                  <block type="astro" id=";As25$]xOo`YtG[bxc^R" x="-813" y="-387">
                                    <field name="TYPE">sunset</field>
                                    <field name="OFFSET">0</field>
                                    <statement name="STATEMENT">
                                      <block type="procedures_callnoreturn" id="Zedx!5eNEb4Piu^Zg*%;">
                                        <mutation name="wandlampe"></mutation>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="on_ext" id="m^ctya_*xjD8-KQUH,61">
                                        <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="_T7NQNq|6_KL]8~#AmPL">
                                            <field name="oid">alias.0.Steckdosen.Arbeitszimmer.Computer_1_Arbeitszimmer</field>
                                          </shadow>
                                        </value>
                                        <statement name="STATEMENT">
                                          <block type="variables_set" id="0s5m=A-i`}%1M~;LoAg;">
                                            <field name="VAR" id="bgX:Wxxn%S[O^9f,wDcC">computer</field>
                                            <value name="VALUE">
                                              <block type="on_source" id="7[bt@dS+Kz?Lxlo-dOGP">
                                                <field name="ATTR">state.val</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="procedures_callnoreturn" id="vGo?PRoGS~,Qg8tE26#e">
                                                <mutation name="wandlampe"></mutation>
                                              </block>
                                            </next>
                                          </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">ne</field>
                                            <field name="ACK_CONDITION"></field>
                                            <value name="OID0">
                                              <shadow type="field_oid" id="J82_w$aysD(,n#TfjKi$">
                                                <field name="oid">alias.0.Licht.Arbeitszimmer.Wandlampe_Arbeitszimmer</field>
                                              </shadow>
                                            </value>
                                            <statement name="STATEMENT">
                                              <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=";,DoXcaNX$3MumBC`(t%">
                                                        <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>
                                    </next>
                                  </block>
                                </xml>
                                

                                Ich hab die Wandlampe manuell ausgeschaltet und dann das skirp gestartet. Leider bleibt sie aus.

                                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 hab das jetzt mal so erstellt

                                  381a7004-372b-40e4-b7bd-ef89038cecd2-image.png

                                  <xml xmlns="https://developers.google.com/blockly/xml">
                                    <variables>
                                      <variable id="bgX:Wxxn%S[O^9f,wDcC">computer</variable>
                                      <variable id="Ik?`;_^3$2,9W6VQSQ~3">manuell</variable>
                                    </variables>
                                    <block type="procedures_defnoreturn" id="li@;?QwWuFbHVeb0uMoX" x="-813" y="-562">
                                      <field name="NAME">wandlampe</field>
                                      <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                                      <statement name="STACK">
                                        <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="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>
                                              <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">not 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">sunrise</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">sunset</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.Arbeitszimmer.Wandlampe_Arbeitszimmer</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="variables_get" id="Zeh(oy7gF`2K[w|gV%fs">
                                                  <field name="VAR" id="bgX:Wxxn%S[O^9f,wDcC">computer</field>
                                                </block>
                                              </value>
                                            </block>
                                          </statement>
                                        </block>
                                      </statement>
                                    </block>
                                    <block type="astro" id=";As25$]xOo`YtG[bxc^R" x="-813" y="-387">
                                      <field name="TYPE">sunset</field>
                                      <field name="OFFSET">0</field>
                                      <statement name="STATEMENT">
                                        <block type="procedures_callnoreturn" id="Zedx!5eNEb4Piu^Zg*%;">
                                          <mutation name="wandlampe"></mutation>
                                        </block>
                                      </statement>
                                      <next>
                                        <block type="on_ext" id="m^ctya_*xjD8-KQUH,61">
                                          <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="_T7NQNq|6_KL]8~#AmPL">
                                              <field name="oid">alias.0.Steckdosen.Arbeitszimmer.Computer_1_Arbeitszimmer</field>
                                            </shadow>
                                          </value>
                                          <statement name="STATEMENT">
                                            <block type="variables_set" id="0s5m=A-i`}%1M~;LoAg;">
                                              <field name="VAR" id="bgX:Wxxn%S[O^9f,wDcC">computer</field>
                                              <value name="VALUE">
                                                <block type="on_source" id="7[bt@dS+Kz?Lxlo-dOGP">
                                                  <field name="ATTR">state.val</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="procedures_callnoreturn" id="vGo?PRoGS~,Qg8tE26#e">
                                                  <mutation name="wandlampe"></mutation>
                                                </block>
                                              </next>
                                            </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">ne</field>
                                              <field name="ACK_CONDITION"></field>
                                              <value name="OID0">
                                                <shadow type="field_oid" id="J82_w$aysD(,n#TfjKi$">
                                                  <field name="oid">alias.0.Licht.Arbeitszimmer.Wandlampe_Arbeitszimmer</field>
                                                </shadow>
                                              </value>
                                              <statement name="STATEMENT">
                                                <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=";,DoXcaNX$3MumBC`(t%">
                                                          <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>
                                      </next>
                                    </block>
                                  </xml>
                                  

                                  Ich hab die Wandlampe manuell ausgeschaltet und dann das skirp gestartet. Leider bleibt sie aus.

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

                                  @sandro_gera sagte:

                                  Ich hab die Wandlampe manuell ausgeschaltet und dann das skirp gestartet. Leider bleibt sie aus.

                                  Bei Skripstart passiert nichts, sondern nur beim Computer-Ein-/Ausschalten oder Sonnenuntergang.

                                  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 hab die Wandlampe manuell ausgeschaltet und dann das skirp gestartet. Leider bleibt sie aus.

                                    Bei Skripstart passiert nichts, sondern nur beim Computer-Ein-/Ausschalten oder Sonnenuntergang.

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

                                    @paul53

                                    ok dann werd ich morgen mal sehen obs klapptDanke dir dann kann ich meine anderen Skripte nach dem Muster erstellen. du bist der Beste!!

                                    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 werd ich morgen mal sehen obs klapptDanke dir dann kann ich meine anderen Skripte nach dem Muster erstellen. du bist der Beste!!

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

                                      @sandro_gera sagte:

                                      dann werd ich morgen mal sehen obs klappt

                                      Damit es bei Skriptstart klappt erweitere es um 2 Befehle:

                                      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
                                      1
                                      • paul53P paul53

                                        @sandro_gera sagte:

                                        dann werd ich morgen mal sehen obs klappt

                                        Damit es bei Skriptstart klappt erweitere es um 2 Befehle:

                                        Blockly_temp.JPG

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

                                        @paul53

                                        Danke nochmal hat super geklappt

                                        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 in Bewegungsmelder blockly nach Zeit:

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

                                          Hat der BWM eine eigene Ausschaltverzögerung ? Dann sollte es so funktionieren:

                                          Blockly_temp.JPG

                                          <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">ne</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_operation" id="np6DF~Z57YL_4:oC@ot6" inline="false">
                                                     <field name="OP">AND</field>
                                                     <value name="A">
                                                       <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>
                                                     <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">not 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">sunrise</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">sunset</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="on_source" id="c(.$0bbY@%eg$Ft*!+(3">
                                                         <field name="ATTR">state.val</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="on_source" id="}|}r{Tsv9nSt4uM.8TcG">
                                                             <field name="ATTR">state.val</field>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </next>
                                                   </block>
                                                 </statement>
                                               </block>
                                             </statement>
                                             <next>
                                               <block type="on_ext" id="bC{yAAD)cQ4#p29#C@#_">
                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                                                 <field name="CONDITION">ne</field>
                                                 <field name="ACK_CONDITION"></field>
                                                 <value name="OID0">
                                                   <shadow type="field_oid" id=";n6#=sBC`|uZj*^.+N3j">
                                                     <field name="oid">default</field>
                                                   </shadow>
                                                   <block type="text" id="X0_^|HM$QaYHn,*+W%`h">
                                                     <field name="TEXT">alias.0.Licht.Kueche.Sitzecke_Küche</field>
                                                   </block>
                                                 </value>
                                                 <value name="OID1">
                                                   <shadow type="field_oid" id="cCX-Z1VJNG9*RN;paA1M">
                                                     <field name="oid">default</field>
                                                   </shadow>
                                                   <block type="text" id="aXD=w(l=78}W$Q!7%g/0">
                                                     <field name="TEXT">alias.0.Licht.Kueche.Spuele_Kueche</field>
                                                   </block>
                                                 </value>
                                                 <statement name="STATEMENT">
                                                   <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="logic_operation" id="w02V0-,Xdr^{n-JYU{ia" inline="false">
                                                             <field name="OP">OR</field>
                                                             <value name="A">
                                                               <block type="get_value_var" id="#3!yRfmWIjb^~=F87f}J">
                                                                 <field name="ATTR">val</field>
                                                                 <value name="OID">
                                                                   <shadow type="text" id="g)?W76,0dY|I8sIuL~(h">
                                                                     <field name="TEXT">alias.0.Licht.Kueche.Sitzecke_Küche</field>
                                                                   </shadow>
                                                                 </value>
                                                               </block>
                                                             </value>
                                                             <value name="B">
                                                               <block type="get_value_var" id="m%{V/b4yi]7q$9z-#CB7">
                                                                 <field name="ATTR">val</field>
                                                                 <value name="OID">
                                                                   <shadow type="text" id="[Od,*@MTq]#Uy9Jh+K%)">
                                                                     <field name="TEXT">alias.0.Licht.Kueche.Spuele_Kueche</field>
                                                                   </shadow>
                                                                 </value>
                                                               </block>
                                                             </value>
                                                           </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
                                          #59

                                          @paul53 said in Bewegungsmelder blockly nach Zeit:

                                          @sandro_gera sagte in Bewegungsmelder blockly nach Zeit:

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

                                          Hat der BWM eine eigene Ausschaltverzögerung ? Dann sollte es so funktionieren:

                                          Blockly_temp.JPG

                                          <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">ne</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_operation" id="np6DF~Z57YL_4:oC@ot6" inline="false">
                                                     <field name="OP">AND</field>
                                                     <value name="A">
                                                       <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>
                                                     <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">not 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">sunrise</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">sunset</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="on_source" id="c(.$0bbY@%eg$Ft*!+(3">
                                                         <field name="ATTR">state.val</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="on_source" id="}|}r{Tsv9nSt4uM.8TcG">
                                                             <field name="ATTR">state.val</field>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </next>
                                                   </block>
                                                 </statement>
                                               </block>
                                             </statement>
                                             <next>
                                               <block type="on_ext" id="bC{yAAD)cQ4#p29#C@#_">
                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                                                 <field name="CONDITION">ne</field>
                                                 <field name="ACK_CONDITION"></field>
                                                 <value name="OID0">
                                                   <shadow type="field_oid" id=";n6#=sBC`|uZj*^.+N3j">
                                                     <field name="oid">default</field>
                                                   </shadow>
                                                   <block type="text" id="X0_^|HM$QaYHn,*+W%`h">
                                                     <field name="TEXT">alias.0.Licht.Kueche.Sitzecke_Küche</field>
                                                   </block>
                                                 </value>
                                                 <value name="OID1">
                                                   <shadow type="field_oid" id="cCX-Z1VJNG9*RN;paA1M">
                                                     <field name="oid">default</field>
                                                   </shadow>
                                                   <block type="text" id="aXD=w(l=78}W$Q!7%g/0">
                                                     <field name="TEXT">alias.0.Licht.Kueche.Spuele_Kueche</field>
                                                   </block>
                                                 </value>
                                                 <statement name="STATEMENT">
                                                   <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="logic_operation" id="w02V0-,Xdr^{n-JYU{ia" inline="false">
                                                             <field name="OP">OR</field>
                                                             <value name="A">
                                                               <block type="get_value_var" id="#3!yRfmWIjb^~=F87f}J">
                                                                 <field name="ATTR">val</field>
                                                                 <value name="OID">
                                                                   <shadow type="text" id="g)?W76,0dY|I8sIuL~(h">
                                                                     <field name="TEXT">alias.0.Licht.Kueche.Sitzecke_Küche</field>
                                                                   </shadow>
                                                                 </value>
                                                               </block>
                                                             </value>
                                                             <value name="B">
                                                               <block type="get_value_var" id="m%{V/b4yi]7q$9z-#CB7">
                                                                 <field name="ATTR">val</field>
                                                                 <value name="OID">
                                                                   <shadow type="text" id="[Od,*@MTq]#Uy9Jh+K%)">
                                                                     <field name="TEXT">alias.0.Licht.Kueche.Spuele_Kueche</field>
                                                                   </shadow>
                                                                 </value>
                                                               </block>
                                                             </value>
                                                           </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>
                                          

                                          Dann muß ich das hier aber auch noch anpassen oder?

                                          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

                                          408

                                          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