Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Szene über KNX und Zigbee Leuchten

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Szene über KNX und Zigbee Leuchten

    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      nowi03 last edited by nowi03

      Hallo zusammen,

      ich habe ein Problem beim ausschalten von Zigbee Leuchten, wenn ich diese mit einer Szene über einen KNX-Taster via Blockly anschalte.

      Beim ausschalten dieser Leuchten muss ich den Taster drei mal drücken bis diese ausgehen.

      Aber diesen Fehler habe ich nur, wenn ich diese über die Szene anschalte.

      Der Status für Leuchten wird auch korrekt auf den KNX Bus gesendet und der Glastaster hat zeigt immer den richtigen Status der Leuchte.

      Den Status der Leuchten erfasse ich in einem extra Blockly Script.

      Habt Ihr eine Idee woran das liegen könnte?

      Ich Benutzer den openKNX Adapter und den Zigbee Adapter.

      Szenen Script
      67b05e82-5562-4daf-8813-ba559adca7ba-image.png
      Status für KNX Glastaster
      f7046e54-cfbb-407d-a327-100c3edfeb7f-image.png

      Export Szenenscript:

      <xml xmlns="https://developers.google.com/blockly/xml">
        <block type="on" id="bMk4Ma@|0NTf@%%L2yUC" x="-2162" y="-1287">
          <field name="OID">openknx.0.Szenen.Obergeschoss.Szene-OG-Kinder-Schlafen</field>
          <field name="CONDITION">any</field>
          <field name="ACK_CONDITION"></field>
          <statement name="STATEMENT">
            <block type="control" id="RF~1`L3I`i/PW4$6)zh_">
              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
              <field name="OID">openknx.0.Status.Tag-Nacht.Emily-Tag-Nacht-Status</field>
              <field name="WITH_DELAY">FALSE</field>
              <value name="VALUE">
                <block type="on_source" id=";7SEF,t~.`e5_y@L@GKh">
                  <field name="ATTR">state.val</field>
                </block>
              </value>
              <next>
                <block type="control" id="KCk1oQTIJCgk]9bW`LTj">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">openknx.0.Status.Tag-Nacht.Sophia-Tag-Nacht-Status</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="on_source" id="GvkPZlfR$44`^Y_w[1yP">
                      <field name="ATTR">state.val</field>
                    </block>
                  </value>
                  <next>
                    <block type="control" id="7??)%:_s^ixD5]#_Q=-l">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">openknx.0.Status.Tag-Nacht.Bad-Tag-Nacht-Status</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="on_source" id="-}(9TnM14]3c+qzZJ@q[">
                          <field name="ATTR">state.val</field>
                        </block>
                      </value>
                      <next>
                        <block type="control" id="tlNK65JBSxkq{p-f@_jk">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">openknx.0.Szenen.Obergeschoss.Szene-OG-Kinder-Schlafen-Status</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="on_source" id=")okr5OGHR%H`)eGzb^N4">
                              <field name="ATTR">state.val</field>
                            </block>
                          </value>
                          <next>
                            <block type="controls_if" id="snxK}x#`%xq|cy$s7tdd">
                              <mutation else="1"></mutation>
                              <value name="IF0">
                                <block type="logic_compare" id="K|IUO~},v{fLD%i`5M~y">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="on_source" id="APk*T6cq+bOyAo#,xo$;">
                                      <field name="ATTR">state.val</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_boolean" id="05#F.^8^0$rzf$5=V`4V">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="control" id="`%f.`I@]@Xc3O[O8oqm7">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">openknx.0.Rollos.Absolute_Position_(1_Byte).AZ-Rollo-Absolute-Position</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="Uu9P~}[110U!qw`wE7fj">
                                      <field name="NUM">100</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="control" id="N./|PTkQr#6K_oY,jF%|">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">openknx.0.Rollos.Absolute_Position_(1_Byte).AZ-Rollo-Dachfenster-Absolute-Position</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="math_number" id="cA$4:0[6y#!Z!pdCFcWJ">
                                          <field name="NUM">100</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id="}KIp]q#j$*34VEI3?On;">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">openknx.0.Rollos.Absolute_Position_(1_Byte).KZ-Rollo-Absolute-Position</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="math_number" id="OXGyQ6@_caxAPox*JaiA">
                                              <field name="NUM">100</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="control" id="`NiuyITMAo=@U6PiT_A*">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">openknx.0.Rollos.Absolute_Position_(1_Byte).Bad-Rollo-Absolute-Position</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="math_number" id="e:`yrQ2nDsxZ:*GJ?=QO">
                                                  <field name="NUM">100</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="control" id="8i30KkTl@W.XbrI8,Ef=">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">zigbee.0.804b50fffe590e04.state</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="logic_boolean" id="idIpr*:!3LzgzA1J:0JV">
                                                      <field name="BOOL">TRUE</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="control" id="Xrd_CMMUMm*oh(8}*]LB">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                      <field name="OID">zigbee.0.588e81fffe155617.state</field>
                                                      <field name="WITH_DELAY">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="logic_boolean" id="GQ*pLS,Qm9@|WPfcL12r">
                                                          <field name="BOOL">TRUE</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                              <statement name="ELSE">
                                <block type="control" id="IE.ow7UPt/TaA=vWfP}r">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">openknx.0.Rollos.Absolute_Position_(1_Byte).AZ-Rollo-Absolute-Position</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="CG`.$rfwwV-{P.IdboY;">
                                      <field name="NUM">0</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="control" id="nVS1nA6x.!$p;d`%/^Bd">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">openknx.0.Rollos.Absolute_Position_(1_Byte).AZ-Rollo-Dachfenster-Absolute-Position</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="math_number" id=":={#]*/m8aBdu:)]V2C^">
                                          <field name="NUM">0</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id="QPkod{.X$`8IeXqI}7m(">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">openknx.0.Rollos.Absolute_Position_(1_Byte).KZ-Rollo-Absolute-Position</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="math_number" id="]T)JoW!}pLR4}zUW?ixE">
                                              <field name="NUM">0</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="control" id="~I+=3/5bxt!1~l^OgrpP">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">openknx.0.Rollos.Absolute_Position_(1_Byte).Bad-Rollo-Absolute-Position</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="math_number" id="ud3Mx~h}lNDL3;Ru(W$M">
                                                  <field name="NUM">0</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="control" id="Nwy8Zl.:aLnU@uSP#j38">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">zigbee.0.588e81fffe155617.state</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="logic_boolean" id="zeC_0R3rqBTHmyDyM3(q">
                                                      <field name="BOOL">FALSE</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="control" id="LVc`Gq@o^^)J([p87RJ3">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                      <field name="OID">zigbee.0.804b50fffe590e04.state</field>
                                                      <field name="WITH_DELAY">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="logic_boolean" id="tO`KK98L4=,QXOMRWP_d">
                                                          <field name="BOOL">FALSE</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </statement>
          <next>
            <block type="schedule" id="[FV:,/K;L9nf/fO@!lLA">
              <field name="SCHEDULE">{"time":{"exactTime":true,"start":"08:00"},"period":{"days":1}}</field>
              <statement name="STATEMENT">
                <block type="control" id="kL}aO(3.6LKeuXpU4kM!">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">openknx.0.Szenen.Obergeschoss.Szene-OG-Kinder-Schlafen-Status</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="logic_boolean" id="wcQfCz7pFb?oP]z]2DjM">
                      <field name="BOOL">TRUE</field>
                    </block>
                  </value>
                </block>
              </statement>
            </block>
          </next>
        </block>
      </xml>
      
      S E 1 Reply Last reply Reply Quote 0
      • S E
        S E @nowi03 last edited by

        @nowi03 Guten Morgen,
        ich hab zwar ad hoc keine Idee, warum die Sache bei dir hakt. Klingt aber tatsächlich so, als würde der Status nicht sauber am Schalter bekannt sein.

        Warum steuerst du die 4 Status-DP denn mit dem Wert der Szene? Der entspricht doch einer Zahl. Hast du die Zigbee Lampen denn per Zigbee oder Hue angebunden? Ich kann dir ansonsten den Szenen-Adapter empfehlen, mit dem lassen sich solche Dinge sehr übersichtlich umsetzen. Als Auslösedatenpunkt setzt du deine KNX-GA ein und das entsprechend erwartete Telegramm; über ein Blockly könntest du sogar die Szenensteuerung (also speichern der momentanen Einstellung als Szene) wie im KNX realisieren.

        N 1 Reply Last reply Reply Quote 0
        • N
          nowi03 @S E last edited by nowi03

          Hi @s-e,

          also in dem Fall möchte ich keine Typische KNX Szene über Zahlen.

          In meinen Fall ist es eine Tag/Nacht Szene die ich mit true = Tag oder false = Nacht steuere.

          Abends gehen die Rollos runter und das Nachtlicht an und Tags gehen die Rollos hoch und das Licht aus.

          Hier einmal der DP für die Szene.
          Auffällig ist schon mal, dass das "false" von den Status der Szene und den Tastern nicht bestätigt also rot ist.

          621c5c8c-e7ec-46da-85d7-44f6a9ff7478-image.png

          95a5aa57-b370-4248-9bd6-b6f55835eca7-image.png

          cb9e57fc-414f-4d94-880e-012261b7bf05-image.png

          Hier mal ein Auszug aus einem DP:

          {
            "_id": "openknx.0.Beleuchtung.Rückmeldung_Schalten_Dimmen_.Sophias-Nachtlicht-Status",
            "type": "state",
            "common": {
              "type": "boolean",
              "read": true,
              "write": true,
              "desc": "",
              "name": "Sophias-Nachtlicht-Status",
              "role": "switch",
              "states": {
                "0": "Off",
                "1": "On"
              }
            },
            "native": {
              "address": "0/1/0",
              "answer_groupValueResponse": false,
              "autoread": true,
              "bitlength": 1,
              "desc": "Basetype: 1-bit value",
              "dpt": "DPT1.001",
              "valuetype": "basic"
            },
            "from": "system.adapter.openknx.0",
            "user": "system.user.admin",
            "ts": 1714048400514,
            "acl": {
              "object": 1636,
              "state": 1636,
              "owner": "system.user.admin",
              "ownerGroup": "system.group.administrator"
            }
          }
          

          Die Leuchten sind via Zigbee angebunden und nicht über Hue.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Support us

          ioBroker
          Community Adapters
          Donate

          1.0k
          Online

          31.7k
          Users

          79.7k
          Topics

          1.3m
          Posts

          2
          3
          175
          Loading More Posts
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes
          Reply
          • Reply as topic
          Log in to reply
          Community
          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
          The ioBroker Community 2014-2023
          logo