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. [gelöst] Aufzählung Fensterstatus - Anzeige in VIS

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    17
    1
    529

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

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

[gelöst] Aufzählung Fensterstatus - Anzeige in VIS

Geplant Angeheftet Gesperrt Verschoben Blockly
31 Beiträge 7 Kommentatoren 3.0k Aufrufe 5 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.
  • I IceD112

    Hallo

    Ich komme grade irgendwie nicht weiter. Ich möchte in meiner VIS auf der Übersichtsseite ein Widget platzieren, was mir Anzeigt, ob noch irgendwo ein Fenster offen ist.
    Screenshot 2022-03-15 at 11-53-19 Edit vis.png

    Dazu habe ich zunächst einen Datenpunkt "Fenster_Status" erstellt
    Screenshot 2022-03-15 at 11-59-07 objects - ioBroker.png
    und eine Aufzählung aller Sensoren gemacht
    Screenshot 2022-03-15 at 11-55-15 enums - ioBroker.png
    anschließend habe ich folgendes Script erstellt
    Screenshot 2022-03-15 at 12-02-03 javascript - ioBroker.png

    <xml xmlns="https://developers.google.com/blockly/xml">
      <block type="on_ext" id="NrfSUMnJ7Y4uvl4h-%s|" x="785" y="-2036">
        <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
        <field name="CONDITION">any</field>
        <field name="ACK_CONDITION"></field>
        <value name="OID0">
          <shadow type="field_oid" id="DP_?-0]Sbn7{yphGOa)j">
            <field name="oid">shelly.0.SHDW-2#483FDA81FA81#1.sensor.door</field>
          </shadow>
          <block type="selector" id="Vv^EwA#ukKW2/M{tNK,{">
            <field name="TEXT">state[id=*](functions=window)</field>
          </block>
        </value>
        <statement name="STATEMENT">
          <block type="controls_if" id="^J0!h]4}KtP6#U0dE]=D">
            <mutation elseif="1"></mutation>
            <value name="IF0">
              <block type="on_source" id="{d.A@A#XV|);%qf/P!,!">
                <field name="ATTR">id</field>
              </block>
            </value>
            <statement name="DO0">
              <block type="control" id="|-#}3J]!a4GWW]E@`NLx">
                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                <field name="OID">0_userdata.0.Routinen.Fenster_Status</field>
                <field name="WITH_DELAY">FALSE</field>
                <value name="VALUE">
                  <block type="logic_boolean" id="aB]46:jyob,J+f%=VbwP">
                    <field name="BOOL">TRUE</field>
                  </block>
                </value>
              </block>
            </statement>
            <value name="IF1">
              <block type="on_source" id="ja8jyMEdZWebdGA(Uy$@">
                <field name="ATTR">id</field>
              </block>
            </value>
            <statement name="DO1">
              <block type="control" id=";LP0=_%RalZ9UGX/gz5$">
                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                <field name="OID">0_userdata.0.Routinen.Fenster_Status</field>
                <field name="WITH_DELAY">FALSE</field>
                <value name="VALUE">
                  <block type="logic_boolean" id="L3t@nllc4}U0ZQ#.~G3d">
                    <field name="BOOL">FALSE</field>
                  </block>
                </value>
              </block>
            </statement>
          </block>
        </statement>
      </block>
    </xml>
    

    Leider passiert aber nichts. Wo hab ich einen Fehler?

    amg_666A Offline
    amg_666A Offline
    amg_666
    schrieb am zuletzt editiert von
    #6

    @iced112 im Blockly hast du id "window" aber deine Aufzählung heißt Fenster, ich glaube nicht, dass das passt

    iobroker auf proxmox container

    I 1 Antwort Letzte Antwort
    0
    • amg_666A amg_666

      @iced112 im Blockly hast du id "window" aber deine Aufzählung heißt Fenster, ich glaube nicht, dass das passt

      I Offline
      I Offline
      IceD112
      schrieb am zuletzt editiert von
      #7

      @amg_666
      Das ist, bzw sollte korrekt sein. window ist ja die ID und Fenster der Name
      Screenshot 2022-03-15 at 16-21-12 enums - ioBroker.png

      1 Antwort Letzte Antwort
      0
      • I IceD112

        Hallo

        Ich komme grade irgendwie nicht weiter. Ich möchte in meiner VIS auf der Übersichtsseite ein Widget platzieren, was mir Anzeigt, ob noch irgendwo ein Fenster offen ist.
        Screenshot 2022-03-15 at 11-53-19 Edit vis.png

        Dazu habe ich zunächst einen Datenpunkt "Fenster_Status" erstellt
        Screenshot 2022-03-15 at 11-59-07 objects - ioBroker.png
        und eine Aufzählung aller Sensoren gemacht
        Screenshot 2022-03-15 at 11-55-15 enums - ioBroker.png
        anschließend habe ich folgendes Script erstellt
        Screenshot 2022-03-15 at 12-02-03 javascript - ioBroker.png

        <xml xmlns="https://developers.google.com/blockly/xml">
          <block type="on_ext" id="NrfSUMnJ7Y4uvl4h-%s|" x="785" y="-2036">
            <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
            <field name="CONDITION">any</field>
            <field name="ACK_CONDITION"></field>
            <value name="OID0">
              <shadow type="field_oid" id="DP_?-0]Sbn7{yphGOa)j">
                <field name="oid">shelly.0.SHDW-2#483FDA81FA81#1.sensor.door</field>
              </shadow>
              <block type="selector" id="Vv^EwA#ukKW2/M{tNK,{">
                <field name="TEXT">state[id=*](functions=window)</field>
              </block>
            </value>
            <statement name="STATEMENT">
              <block type="controls_if" id="^J0!h]4}KtP6#U0dE]=D">
                <mutation elseif="1"></mutation>
                <value name="IF0">
                  <block type="on_source" id="{d.A@A#XV|);%qf/P!,!">
                    <field name="ATTR">id</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="control" id="|-#}3J]!a4GWW]E@`NLx">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">0_userdata.0.Routinen.Fenster_Status</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="aB]46:jyob,J+f%=VbwP">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                  </block>
                </statement>
                <value name="IF1">
                  <block type="on_source" id="ja8jyMEdZWebdGA(Uy$@">
                    <field name="ATTR">id</field>
                  </block>
                </value>
                <statement name="DO1">
                  <block type="control" id=";LP0=_%RalZ9UGX/gz5$">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">0_userdata.0.Routinen.Fenster_Status</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="L3t@nllc4}U0ZQ#.~G3d">
                        <field name="BOOL">FALSE</field>
                      </block>
                    </value>
                  </block>
                </statement>
              </block>
            </statement>
          </block>
        </xml>
        

        Leider passiert aber nichts. Wo hab ich einen Fehler?

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

        @iced112 sagte: Dazu habe ich zunächst einen Datenpunkt "Fenster_Status" erstellt

        Der muss vom Typ "Logikwert" sein.

        common_Fenster.JPG

        @iced112 sagte in Aufzählung Fensterstatus - Anzeige in VIS:

        folgendes Script erstellt

        Man benötigt eine ODER-Verknüpfung aller Datenpunktwerte, um festzustellen, ob mindestens ein Fenster offen ist. Das kann man mit einer Schleife erledigen.

        Bild_2022-03-15_191153.png

        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

        I 1 Antwort Letzte Antwort
        0
        • paul53P paul53

          @iced112 sagte: Dazu habe ich zunächst einen Datenpunkt "Fenster_Status" erstellt

          Der muss vom Typ "Logikwert" sein.

          common_Fenster.JPG

          @iced112 sagte in Aufzählung Fensterstatus - Anzeige in VIS:

          folgendes Script erstellt

          Man benötigt eine ODER-Verknüpfung aller Datenpunktwerte, um festzustellen, ob mindestens ein Fenster offen ist. Das kann man mit einer Schleife erledigen.

          Bild_2022-03-15_191153.png

          I Offline
          I Offline
          IceD112
          schrieb am zuletzt editiert von
          #9

          @paul53
          Ich habe bisher noch nie mit Variablen gearbeitet. Ich gehe mal davon aus, dass das Erstellen der Variablen "id", "ids" und "offen" alleine nicht aussreicht?

          Hab nämlich mal versucht dein Blockly nach zu bauen aber so funktioniert es noch nicht

          B paul53P 2 Antworten Letzte Antwort
          0
          • I IceD112

            @paul53
            Ich habe bisher noch nie mit Variablen gearbeitet. Ich gehe mal davon aus, dass das Erstellen der Variablen "id", "ids" und "offen" alleine nicht aussreicht?

            Hab nämlich mal versucht dein Blockly nach zu bauen aber so funktioniert es noch nicht

            B Offline
            B Offline
            badsnoopy667
            schrieb am zuletzt editiert von
            #10

            @iced112
            Nimm doch einfach meinen Export von oben, der sollte funktionieren. Da musst du dann ggf. nur noch ein: Wenn Anzahl Fenster = 0 Dann Fenster Status = geschlossen einfügen am Ende. Fertig

            amg_666A I 2 Antworten Letzte Antwort
            0
            • I IceD112

              @paul53
              Ich habe bisher noch nie mit Variablen gearbeitet. Ich gehe mal davon aus, dass das Erstellen der Variablen "id", "ids" und "offen" alleine nicht aussreicht?

              Hab nämlich mal versucht dein Blockly nach zu bauen aber so funktioniert es noch nicht

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

              @iced112 sagte: versucht dein Blockly nach zu bauen aber so funktioniert es noch nicht

              Datenpunkt "Fenster Status" austauschen!

              <xml xmlns="https://developers.google.com/blockly/xml">
               <variables>
                 <variable id="sa{l1~ORe0j$HLuZ5N%!">ids</variable>
                 <variable id="kT%nX!]Jo^`}k%/`k?Gq">offen</variable>
                 <variable id=":nd$CvGxF5#~Ll%,n#b2">id</variable>
               </variables>
               <block type="variables_set" id="i(tPYLv;RbKHg~i@a0{/" x="38" y="38">
                 <field name="VAR" id="sa{l1~ORe0j$HLuZ5N%!">ids</field>
                 <value name="VALUE">
                   <block type="selector" id="}ukVNv/ei7Qs4LavaT+0">
                     <field name="TEXT">*(functions=window)</field>
                   </block>
                 </value>
                 <next>
                   <block type="on_ext" id="Yr}xw(F4N,5fxKcZ:vaA">
                     <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="H6rjU$rO8@g6Lgk:jv9f">
                         <field name="oid">default</field>
                       </shadow>
                       <block type="variables_get" id="WDNWJnP.L:dRO2.H3gFM">
                         <field name="VAR" id="sa{l1~ORe0j$HLuZ5N%!">ids</field>
                       </block>
                     </value>
                     <statement name="STATEMENT">
                       <block type="variables_set" id="fiT;40M9XwH-IB;dai$*">
                         <field name="VAR" id="kT%nX!]Jo^`}k%/`k?Gq">offen</field>
                         <value name="VALUE">
                           <block type="logic_boolean" id="D}!bGj=1]X5!.KmIss,#">
                             <field name="BOOL">FALSE</field>
                           </block>
                         </value>
                         <next>
                           <block type="controls_forEach" id="hZm%QED(q{qqF9Qt_4zV">
                             <field name="VAR" id=":nd$CvGxF5#~Ll%,n#b2">id</field>
                             <value name="LIST">
                               <block type="variables_get" id="W?h4_#I[DjCw!DD`F47g">
                                 <field name="VAR" id="sa{l1~ORe0j$HLuZ5N%!">ids</field>
                               </block>
                             </value>
                             <statement name="DO">
                               <block type="controls_if" id="z})86Cf$,3q!)/4/%c_V">
                                 <value name="IF0">
                                   <block type="get_value_var" id="A4]d*E-i6@qDI3SUpZqx">
                                     <field name="ATTR">val</field>
                                     <value name="OID">
                                       <shadow type="text" id="iJar`blbRA6G?|%Gx#Po">
                                         <field name="TEXT"></field>
                                       </shadow>
                                       <block type="variables_get" id="*JdI$y).=mPIbq)_%f@?">
                                         <field name="VAR" id=":nd$CvGxF5#~Ll%,n#b2">id</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <statement name="DO0">
                                   <block type="variables_set" id="Fq.`IT_ELmfwRP@:9=fo">
                                     <field name="VAR" id="kT%nX!]Jo^`}k%/`k?Gq">offen</field>
                                     <value name="VALUE">
                                       <block type="logic_boolean" id="XAR!D%*in|Fp8/pJ/8x?">
                                         <field name="BOOL">TRUE</field>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="controls_flow_statements" id=":b34uz=#:?=ZHl=pLEUL">
                                         <field name="FLOW">BREAK</field>
                                       </block>
                                     </next>
                                   </block>
                                 </statement>
                               </block>
                             </statement>
                             <next>
                               <block type="update" id="QKP7Y`XWPrhAR@*2qMM`">
                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                 <field name="OID">0_userdata.0.Blockly.Fenster</field>
                                 <field name="WITH_DELAY">FALSE</field>
                                 <value name="VALUE">
                                   <block type="variables_get" id="nxH}!Z]j_(5pFwh+`utV">
                                     <field name="VAR" id="kT%nX!]Jo^`}k%/`k?Gq">offen</field>
                                   </block>
                                 </value>
                               </block>
                             </next>
                           </block>
                         </next>
                       </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

              1 Antwort Letzte Antwort
              0
              • B badsnoopy667

                @iced112
                Nimm doch einfach meinen Export von oben, der sollte funktionieren. Da musst du dann ggf. nur noch ein: Wenn Anzahl Fenster = 0 Dann Fenster Status = geschlossen einfügen am Ende. Fertig

                amg_666A Offline
                amg_666A Offline
                amg_666
                schrieb am zuletzt editiert von
                #12

                @badsnoopy667 sagte in Aufzählung Fensterstatus - Anzeige in VIS:

                @iced112
                Nimm doch einfach meinen Export von oben

                Den hab ich eben auch mal zum Testen genommen, läuft ohne Probleme :-) :+1: Und Anzahl offene Fenster finde ich auch besser, man kann das nutzen aber eben auch bei ungleich Null mit "Logikwerten" arbeiten.

                iobroker auf proxmox container

                1 Antwort Letzte Antwort
                1
                • B badsnoopy667

                  @iced112
                  Nimm doch einfach meinen Export von oben, der sollte funktionieren. Da musst du dann ggf. nur noch ein: Wenn Anzahl Fenster = 0 Dann Fenster Status = geschlossen einfügen am Ende. Fertig

                  I Offline
                  I Offline
                  IceD112
                  schrieb am zuletzt editiert von
                  #13

                  @badsnoopy667 said in Aufzählung Fensterstatus - Anzeige in VIS:

                  @iced112
                  Da musst du dann ggf. nur noch ein: Wenn Anzahl Fenster = 0 Dann Fenster Status = geschlossen einfügen am Ende. Fertig

                  Ok, dein Export alleine funktioniert noch nicht. Helf mir mal bitte auf die Sprünge was du mit dem letzten Satz meintest? Das raff ich grade nicht:astonished:

                  paul53P amg_666A 2 Antworten Letzte Antwort
                  0
                  • I IceD112

                    @badsnoopy667 said in Aufzählung Fensterstatus - Anzeige in VIS:

                    @iced112
                    Da musst du dann ggf. nur noch ein: Wenn Anzahl Fenster = 0 Dann Fenster Status = geschlossen einfügen am Ende. Fertig

                    Ok, dein Export alleine funktioniert noch nicht. Helf mir mal bitte auf die Sprünge was du mit dem letzten Satz meintest? Das raff ich grade nicht:astonished:

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

                    @iced112 sagte: was du mit dem letzten Satz meintest?

                    Wandlung der Anzahl offener Fenster in Logikwert "mind. ein Fenster offen".

                    Bild_2022-03-16_114045.png

                    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

                    B 1 Antwort Letzte Antwort
                    1
                    • paul53P paul53

                      @iced112 sagte: was du mit dem letzten Satz meintest?

                      Wandlung der Anzahl offener Fenster in Logikwert "mind. ein Fenster offen".

                      Bild_2022-03-16_114045.png

                      B Offline
                      B Offline
                      badsnoopy667
                      schrieb am zuletzt editiert von
                      #15

                      @paul53 Danke, so schnell war ich nicht ;)

                      1 Antwort Letzte Antwort
                      0
                      • I IceD112

                        @badsnoopy667 said in Aufzählung Fensterstatus - Anzeige in VIS:

                        @iced112
                        Da musst du dann ggf. nur noch ein: Wenn Anzahl Fenster = 0 Dann Fenster Status = geschlossen einfügen am Ende. Fertig

                        Ok, dein Export alleine funktioniert noch nicht. Helf mir mal bitte auf die Sprünge was du mit dem letzten Satz meintest? Das raff ich grade nicht:astonished:

                        amg_666A Offline
                        amg_666A Offline
                        amg_666
                        schrieb am zuletzt editiert von
                        #16

                        @iced112 sagte in Aufzählung Fensterstatus - Anzeige in VIS:

                        ein Export alleine funktioniert noch nicht

                        Also bei mir läuft das einwandfrei mit dem Blockly von @badsnoopy667
                        Kann es sein, dass du in deiner Aufzählung die Objekte (also z.B. einen Sensor mit Bezeichnung Wohnzimmer1) gezogen hast? Ich hab bei mir in der Aufzählung nur den Datenpunkt des jeweiligen Sensors aufgenommen, z.B. "state" (bei Homematic) bzw "is_open" (bei zigbee).
                        Bei dem Blockly muss die Variable vom Typ Zahl sein. Oder du passt das wie von @paul53 beschrieben ein, dann muss es eine Logik-Variable sein

                        iobroker auf proxmox container

                        I 1 Antwort Letzte Antwort
                        0
                        • amg_666A amg_666

                          @iced112 sagte in Aufzählung Fensterstatus - Anzeige in VIS:

                          ein Export alleine funktioniert noch nicht

                          Also bei mir läuft das einwandfrei mit dem Blockly von @badsnoopy667
                          Kann es sein, dass du in deiner Aufzählung die Objekte (also z.B. einen Sensor mit Bezeichnung Wohnzimmer1) gezogen hast? Ich hab bei mir in der Aufzählung nur den Datenpunkt des jeweiligen Sensors aufgenommen, z.B. "state" (bei Homematic) bzw "is_open" (bei zigbee).
                          Bei dem Blockly muss die Variable vom Typ Zahl sein. Oder du passt das wie von @paul53 beschrieben ein, dann muss es eine Logik-Variable sein

                          I Offline
                          I Offline
                          IceD112
                          schrieb am zuletzt editiert von
                          #17

                          @amg_666
                          Meine Aufzählung schaut so aus
                          Screenshot 2022-03-16 at 11-57-06 enums - ioBroker.png

                          Hab ich da ggf ein Fehler? Also der Name in der Aufzählung kommt vom State door

                          paul53P 1 Antwort Letzte Antwort
                          0
                          • I IceD112

                            @amg_666
                            Meine Aufzählung schaut so aus
                            Screenshot 2022-03-16 at 11-57-06 enums - ioBroker.png

                            Hab ich da ggf ein Fehler? Also der Name in der Aufzählung kommt vom State door

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

                            @iced112 sagte: Hab ich da ggf ein Fehler? Also der Name in der Aufzählung kommt vom State door

                            Nein, das ist so in Ordnung. Es sind 12 Datenpunkte "door" zu functions=window zugeordnet.

                            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

                            amg_666A 1 Antwort Letzte Antwort
                            0
                            • paul53P paul53

                              @iced112 sagte: Hab ich da ggf ein Fehler? Also der Name in der Aufzählung kommt vom State door

                              Nein, das ist so in Ordnung. Es sind 12 Datenpunkte "door" zu functions=window zugeordnet.

                              amg_666A Offline
                              amg_666A Offline
                              amg_666
                              schrieb am zuletzt editiert von
                              #19

                              @paul53 ok, Datenpunkt "door" sagte mir nix. Bei mir sieht das so aus und läuft wie gesagt:
                              7beb8432-7eb8-42c5-b4c6-520a04c12b82-grafik.png

                              und in der Aufzählung dann nur DP "State"
                              7faa3f37-53a6-4072-b696-8237663db49e-grafik.png

                              iobroker auf proxmox container

                              I 1 Antwort Letzte Antwort
                              0
                              • amg_666A amg_666

                                @paul53 ok, Datenpunkt "door" sagte mir nix. Bei mir sieht das so aus und läuft wie gesagt:
                                7beb8432-7eb8-42c5-b4c6-520a04c12b82-grafik.png

                                und in der Aufzählung dann nur DP "State"
                                7faa3f37-53a6-4072-b696-8237663db49e-grafik.png

                                I Offline
                                I Offline
                                IceD112
                                schrieb am zuletzt editiert von
                                #20

                                @amg_666
                                Das sind Sensoren von Shelly. Der Datenpunkt door gibt true oder flase aus wenn offen oder geschlossen.

                                Ja, was mach ich denn falsch?

                                amg_666A paul53P 2 Antworten Letzte Antwort
                                0
                                • I IceD112

                                  @amg_666
                                  Das sind Sensoren von Shelly. Der Datenpunkt door gibt true oder flase aus wenn offen oder geschlossen.

                                  Ja, was mach ich denn falsch?

                                  amg_666A Offline
                                  amg_666A Offline
                                  amg_666
                                  schrieb am zuletzt editiert von
                                  #21

                                  @iced112 dann poste doch mal bitte dein blockly, hast du da irgendwas modifiziert?

                                  iobroker auf proxmox container

                                  I 1 Antwort Letzte Antwort
                                  0
                                  • amg_666A amg_666

                                    @iced112 dann poste doch mal bitte dein blockly, hast du da irgendwas modifiziert?

                                    I Offline
                                    I Offline
                                    IceD112
                                    schrieb am zuletzt editiert von IceD112
                                    #22

                                    @amg_666
                                    Screenshot 2022-03-16 at 13-19-40 javascript - ioBroker.png

                                    <xml xmlns="https://developers.google.com/blockly/xml">
                                      <variables>
                                        <variable id="sa{l1~ORe0j$HLuZ5N%!">ids</variable>
                                        <variable id="kT%nX!]Jo^`}k%/`k?Gq">offen</variable>
                                        <variable id=":nd$CvGxF5#~Ll%,n#b2">id</variable>
                                        <variable id="xu-:vrDF`H;M_fGe2]b4">x</variable>
                                      </variables>
                                      <block type="variables_set" id="i(tPYLv;RbKHg~i@a0{/" x="-412" y="-237">
                                        <field name="VAR" id="sa{l1~ORe0j$HLuZ5N%!">ids</field>
                                        <value name="VALUE">
                                          <block type="selector" id="}ukVNv/ei7Qs4LavaT+0">
                                            <field name="TEXT">*(functions=window)</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="on_ext" id="Yr}xw(F4N,5fxKcZ:vaA">
                                            <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="H6rjU$rO8@g6Lgk:jv9f">
                                                <field name="oid">default</field>
                                              </shadow>
                                              <block type="variables_get" id="WDNWJnP.L:dRO2.H3gFM">
                                                <field name="VAR" id="sa{l1~ORe0j$HLuZ5N%!">ids</field>
                                              </block>
                                            </value>
                                            <statement name="STATEMENT">
                                              <block type="variables_set" id="fiT;40M9XwH-IB;dai$*">
                                                <field name="VAR" id="kT%nX!]Jo^`}k%/`k?Gq">offen</field>
                                                <value name="VALUE">
                                                  <block type="logic_boolean" id="D}!bGj=1]X5!.KmIss,#">
                                                    <field name="BOOL">FALSE</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="controls_forEach" id="hZm%QED(q{qqF9Qt_4zV">
                                                    <field name="VAR" id=":nd$CvGxF5#~Ll%,n#b2">id</field>
                                                    <value name="LIST">
                                                      <block type="variables_get" id="W?h4_#I[DjCw!DD`F47g">
                                                        <field name="VAR" id="sa{l1~ORe0j$HLuZ5N%!">ids</field>
                                                      </block>
                                                    </value>
                                                    <statement name="DO">
                                                      <block type="controls_if" id="z})86Cf$,3q!)/4/%c_V">
                                                        <value name="IF0">
                                                          <block type="get_value_var" id="A4]d*E-i6@qDI3SUpZqx">
                                                            <field name="ATTR">val</field>
                                                            <value name="OID">
                                                              <shadow type="text" id="iJar`blbRA6G?|%Gx#Po">
                                                                <field name="TEXT"></field>
                                                              </shadow>
                                                              <block type="variables_get" id="*JdI$y).=mPIbq)_%f@?">
                                                                <field name="VAR" id=":nd$CvGxF5#~Ll%,n#b2">id</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <statement name="DO0">
                                                          <block type="variables_set" id="Fq.`IT_ELmfwRP@:9=fo">
                                                            <field name="VAR" id="kT%nX!]Jo^`}k%/`k?Gq">offen</field>
                                                            <value name="VALUE">
                                                              <block type="logic_boolean" id="XAR!D%*in|Fp8/pJ/8x?">
                                                                <field name="BOOL">TRUE</field>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="controls_flow_statements" id=":b34uz=#:?=ZHl=pLEUL">
                                                                <field name="FLOW">BREAK</field>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </statement>
                                                      </block>
                                                    </statement>
                                                    <next>
                                                      <block type="update" id="QKP7Y`XWPrhAR@*2qMM`">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                        <field name="OID">0_userdata.0.Routinen.Fenster_Status</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="logic_compare" id="pK*Xb]J~V:d47jSa)5$b">
                                                            <field name="OP">GT</field>
                                                            <value name="A">
                                                              <block type="variables_get" id="OIv|$ewMBS:u!+T72:D)">
                                                                <field name="VAR" id="xu-:vrDF`H;M_fGe2]b4">x</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="math_number" id="Avy%3uPr5m{lU:pjUzqZ">
                                                                <field name="NUM">0</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                          </block>
                                        </next>
                                      </block>
                                    </xml>
                                    
                                    amg_666A 1 Antwort Letzte Antwort
                                    0
                                    • I IceD112

                                      @amg_666
                                      Screenshot 2022-03-16 at 13-19-40 javascript - ioBroker.png

                                      <xml xmlns="https://developers.google.com/blockly/xml">
                                        <variables>
                                          <variable id="sa{l1~ORe0j$HLuZ5N%!">ids</variable>
                                          <variable id="kT%nX!]Jo^`}k%/`k?Gq">offen</variable>
                                          <variable id=":nd$CvGxF5#~Ll%,n#b2">id</variable>
                                          <variable id="xu-:vrDF`H;M_fGe2]b4">x</variable>
                                        </variables>
                                        <block type="variables_set" id="i(tPYLv;RbKHg~i@a0{/" x="-412" y="-237">
                                          <field name="VAR" id="sa{l1~ORe0j$HLuZ5N%!">ids</field>
                                          <value name="VALUE">
                                            <block type="selector" id="}ukVNv/ei7Qs4LavaT+0">
                                              <field name="TEXT">*(functions=window)</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="on_ext" id="Yr}xw(F4N,5fxKcZ:vaA">
                                              <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="H6rjU$rO8@g6Lgk:jv9f">
                                                  <field name="oid">default</field>
                                                </shadow>
                                                <block type="variables_get" id="WDNWJnP.L:dRO2.H3gFM">
                                                  <field name="VAR" id="sa{l1~ORe0j$HLuZ5N%!">ids</field>
                                                </block>
                                              </value>
                                              <statement name="STATEMENT">
                                                <block type="variables_set" id="fiT;40M9XwH-IB;dai$*">
                                                  <field name="VAR" id="kT%nX!]Jo^`}k%/`k?Gq">offen</field>
                                                  <value name="VALUE">
                                                    <block type="logic_boolean" id="D}!bGj=1]X5!.KmIss,#">
                                                      <field name="BOOL">FALSE</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="controls_forEach" id="hZm%QED(q{qqF9Qt_4zV">
                                                      <field name="VAR" id=":nd$CvGxF5#~Ll%,n#b2">id</field>
                                                      <value name="LIST">
                                                        <block type="variables_get" id="W?h4_#I[DjCw!DD`F47g">
                                                          <field name="VAR" id="sa{l1~ORe0j$HLuZ5N%!">ids</field>
                                                        </block>
                                                      </value>
                                                      <statement name="DO">
                                                        <block type="controls_if" id="z})86Cf$,3q!)/4/%c_V">
                                                          <value name="IF0">
                                                            <block type="get_value_var" id="A4]d*E-i6@qDI3SUpZqx">
                                                              <field name="ATTR">val</field>
                                                              <value name="OID">
                                                                <shadow type="text" id="iJar`blbRA6G?|%Gx#Po">
                                                                  <field name="TEXT"></field>
                                                                </shadow>
                                                                <block type="variables_get" id="*JdI$y).=mPIbq)_%f@?">
                                                                  <field name="VAR" id=":nd$CvGxF5#~Ll%,n#b2">id</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <statement name="DO0">
                                                            <block type="variables_set" id="Fq.`IT_ELmfwRP@:9=fo">
                                                              <field name="VAR" id="kT%nX!]Jo^`}k%/`k?Gq">offen</field>
                                                              <value name="VALUE">
                                                                <block type="logic_boolean" id="XAR!D%*in|Fp8/pJ/8x?">
                                                                  <field name="BOOL">TRUE</field>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="controls_flow_statements" id=":b34uz=#:?=ZHl=pLEUL">
                                                                  <field name="FLOW">BREAK</field>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </statement>
                                                        </block>
                                                      </statement>
                                                      <next>
                                                        <block type="update" id="QKP7Y`XWPrhAR@*2qMM`">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                          <field name="OID">0_userdata.0.Routinen.Fenster_Status</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="logic_compare" id="pK*Xb]J~V:d47jSa)5$b">
                                                              <field name="OP">GT</field>
                                                              <value name="A">
                                                                <block type="variables_get" id="OIv|$ewMBS:u!+T72:D)">
                                                                  <field name="VAR" id="xu-:vrDF`H;M_fGe2]b4">x</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="math_number" id="Avy%3uPr5m{lU:pjUzqZ">
                                                                  <field name="NUM">0</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </statement>
                                            </block>
                                          </next>
                                        </block>
                                      </xml>
                                      
                                      amg_666A Offline
                                      amg_666A Offline
                                      amg_666
                                      schrieb am zuletzt editiert von
                                      #23

                                      @iced112 Du verwendest das Blockly von @badsnoopy667 und hast die "Logikzeile" von @paul53 drangehängt.
                                      Das kann nix werden, weil du in den Schleifen die Variable x überhaupt nicht verwendest, die du dann abprüfst...
                                      Mach mal unten aktualisiere "Fenster Status" mit "offen". Oder du sparst dir die letzte Zeile und ersetzt im Blockly "offen" mit "Fenster Status"

                                      iobroker auf proxmox container

                                      1 Antwort Letzte Antwort
                                      0
                                      • I IceD112

                                        @amg_666
                                        Das sind Sensoren von Shelly. Der Datenpunkt door gibt true oder flase aus wenn offen oder geschlossen.

                                        Ja, was mach ich denn falsch?

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

                                        @iced112 sagte: was mach ich denn falsch?

                                        Bild_2022-03-16_133025.png

                                        Überprüfe, ob der Selektor funktioniert:

                                        Bild_2022-03-16_133235.png

                                        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

                                        I 1 Antwort Letzte Antwort
                                        0
                                        • paul53P paul53

                                          @iced112 sagte: was mach ich denn falsch?

                                          Bild_2022-03-16_133025.png

                                          Überprüfe, ob der Selektor funktioniert:

                                          Bild_2022-03-16_133235.png

                                          I Offline
                                          I Offline
                                          IceD112
                                          schrieb am zuletzt editiert von IceD112
                                          #25

                                          @paul53 said in Aufzählung Fensterstatus - Anzeige in VIS:

                                          @iced112 sagte: was mach ich denn falsch?

                                          Bild_2022-03-16_133025.png

                                          So hatte ich es ja auch bereits versucht.

                                          16.3.2022, 13:30:27.422	[info ]: javascript.0 (32658) Stop script script.js.Routinen.Fenster_Status
                                          16.3.2022, 13:30:27.445	[info ]: javascript.0 (32658) Start javascript script.js.Routinen.Fenster_Status
                                          16.3.2022, 13:30:27.537	[info ]: javascript.0 (32658) script.js.Routinen.Fenster_Status: registered 0 subscriptions and 0 schedules
                                          16.3.2022, 13:31:16.091	[info ]: javascript.0 (32658) Stop script script.js.Routinen.Fenster_Status
                                          16.3.2022, 13:31:18.043	[info ]: javascript.0 (32658) Start javascript script.js.Routinen.Fenster_Status
                                          16.3.2022, 13:31:18.098	[info ]: javascript.0 (32658) script.js.Routinen.Fenster_Status: registered 0 subscriptions and 0 schedules
                                          16.3.2022, 13:32:40.103	[info ]: javascript.0 (32658) Stop script script.js.Routinen.Fenster_Status
                                          16.3.2022, 13:32:40.127	[info ]: javascript.0 (32658) Start javascript script.js.Routinen.Fenster_Status
                                          16.3.2022, 13:32:40.168	[info ]: javascript.0 (32658) script.js.Routinen.Fenster_Status: registered 0 subscriptions and 0 schedules
                                          16.3.2022, 13:33:04.268	[info ]: javascript.0 (32658) Stop script script.js.Routinen.Fenster_Status
                                          16.3.2022, 13:33:04.279	[info ]: javascript.0 (32658) Start javascript script.js.Routinen.Fenster_Status
                                          16.3.2022, 13:33:04.302	[info ]: javascript.0 (32658) script.js.Routinen.Fenster_Status: registered 0 subscriptions and 0 schedules
                                          16.3.2022, 13:34:13.461	[info ]: javascript.0 (32658) Stop script script.js.Routinen.Fenster_Status
                                          16.3.2022, 13:34:13.483	[info ]: javascript.0 (32658) Start javascript script.js.Routinen.Fenster_Status
                                          16.3.2022, 13:34:13.551	[info ]: javascript.0 (32658) script.js.Routinen.Fenster_Status: []
                                          16.3.2022, 13:34:13.551	[info ]: javascript.0 (32658) script.js.Routinen.Fenster_Status: registered 0 subscriptions and 0 schedules
                                          
                                          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

                                          579

                                          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