Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Aqara Wandschalter

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    Aqara Wandschalter

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

      Hi, ich habe leider keine direkte Lösung gefunden und mir fehlt noch das Logik-Verständnis…

      Ich möchte den Aqara Wandschalter, der ja von True auf False wechselt mit einer Logikschaltung in Blockly zusammenschrauben.

      Gesteuert werden soll das Objekt Yeelight Power Switch On oder Off(oder eine Routine) wenn man den Schalter drückt, eben halt der Status der gerade nicht anliegt..

      Kann hier mal jemand drüber schauen und vielleicht ein Wort dazu verlieren? Danke...

      9945_unbenannt.jpg

      ` > <xml 1999/xmlns="<URL url=" http:/www.w3.org/xhtml"="">http://www.w3.org/1999/xhtml">

      <block type="on" id="|=hlNxvm0TXlNLEVsT|@" x="-1862" y="-212"><field name="OID">zigbee.0.00158d0002c41348.left_click</field>

      <field name="CONDITION">any</field>

      <statement name="STATEMENT"><block type="controls_if" id="`!*B3R:Yr;]OknH~WC5-"><mutation else="1"></mutation>

      <value name="IF0"><block type="get_value" id="yl~yEWnlVMv(0%IpnnCL"><field name="ATTR">ack</field>

      <field name="OID">yeelight-2.0.Wohnzimmer_Decke.control.power</field></block></value>

      <statement name="DO0"><block type="control" id="?Pr(Ul1;/fKO(y!y=#;7"><mutation delay_input="false"></mutation>

      <field name="OID">yeelight-2.0.Wohnzimmer_Decke.control.power</field>

      <field name="WITH_DELAY">FALSE</field>

      <value name="VALUE"><block type="logic_boolean" id="y.igRc`;a9%b3qGZm.:t"><field name="BOOL">TRUE</field></block></value></block></statement>

      <statement name="ELSE"><block type="control" id="ZX+LEYC!e7Cn}@kXurP|"><mutation delay_input="false"></mutation>

      <field name="OID">yeelight-2.0.Wohnzimmer_Decke.control.power</field>

      <field name="WITH_DELAY">FALSE</field>

      <value name="VALUE"><block type="logic_boolean" id="yKUck@:bK?.8mF~;5HH-"><field name="BOOL">FALSE</field></block></value></block></statement></block></statement></block></xml> `

      1 Reply Last reply Reply Quote 0
      • iomountain
        iomountain last edited by

        bin auch noch Anfänger, aber versuch mal:

         <block xmlns="http://www.w3.org/1999/xhtml" type="on" id="|=hlNxvm0TXlNLEVsT|@" x="337.0001220703125" y="-962.3333740234375"><field name="OID">zigbee.0.00158d0002c41348.left_click</field>
          <field name="CONDITION">any</field>
        
          <statement name="STATEMENT"><block type="controls_if" id="`!*B3R:Yr;]OknH~WC5-"><mutation else="1"></mutation>
              <value name="IF0"><block type="logic_compare" id="qW-k?PHf0NVAn9BE!Xwr"><field name="OP">EQ</field>
                  <value name="A"><block type="get_value" id="yl~yEWnlVMv(0%IpnnCL"><field name="ATTR">val</field>
                      <field name="OID">yeelight-2.0.Wohnzimmer_Decke.control.power</field></block></value> 
                  <value name="B"><block type="logic_boolean" id="|^ZpFI(t[faEE3)WRs)6"><field name="BOOL">TRUE</field></block></value></block></value> 
              <statement name="DO0"><block type="control" id="?Pr(Ul1;/fKO(y!y=#;7"><mutation delay_input="false"></mutation>
                  <field name="OID">yeelight-2.0.Wohnzimmer_Decke.control.power</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE"><block type="logic_boolean" id="y.igRc`;a9%b3qGZm.:t"><field name="BOOL">TRUE</field></block></value></block></statement> 
              <statement name="ELSE"><block type="control" id="ZX+LEYC!e7Cn}@kXurP|"><mutation delay_input="false"></mutation>
                  <field name="OID">yeelight-2.0.Wohnzimmer_Decke.control.power</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE"><block type="logic_boolean" id="yKUck@:bK?.8mF~;5HH-"><field name="BOOL">FALSE</field></block></value></block></statement></block></statement></block> 
        
        1 Reply Last reply Reply Quote 0
        • BigWumpus
          BigWumpus last edited by

          Hi,

          ich denke mal, daß Du den Switch an einem cc2531 betreibst.

          Diese Taster werden wohl bei jedem Drücken "true" liefern und beim Loslassen "false", also 2 Events je Druck.

          Da triggere ich den Datenpunkt auf "ist größer als letztes", das bewirkt, daß bei jedem "true" = Drücken etwas passiert…
          6814_switch.gif

          1 Reply Last reply Reply Quote 0
          • flendorianer
            flendorianer last edited by

            @BigWumpus:

            Hi,

            ich denke mal, daß Du den Switch an einem cc2531 betreibst.

            Diese Taster werden wohl bei jedem Drücken "true" liefern und beim Loslassen "false", also 2 Events je Druck.

            Da triggere ich den Datenpunkt auf "ist größer als letztes", das bewirkt, daß bei jedem "true" = Drücken etwas passiert… `

            Wow, du hattest recht, hätte ich nicht gedacht…ist das der richtige Weg oder kann ich nach der Logik auch skalieren.

            Die andere Lösung hatte nicht funktioniert.

            1 Reply Last reply Reply Quote 0
            • flendorianer
              flendorianer last edited by

              Für alle die es interessiert…

              > <block 1999/xmlns="<URL url=" http:/www.w3.org/xhtml"="">http://www.w3.org/1999/xhtml" type="on" id="zLtYZR:2#{8O1oQt+r(" x="-337.08594512939464" y="-887">

              <field name="OID">zigbee.0.00158d0002c41348.left_click</field>

              <field name="CONDITION">gt</field>

              <field name="ACK_CONDITION">true</field>

              <statement name="STATEMENT"><block type="toggle" id="(h~LZI_#Rt#z2:]orZ19"><mutation delay_input="false"></mutation>

              <field name="OID">yeelight-2.0.Wohnzimmer_Decke.control.power</field>

              <field name="WITH_DELAY">FALSE</field></block></statement></block> `

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

              Support us

              ioBroker
              Community Adapters
              Donate

              744
              Online

              31.9k
              Users

              80.2k
              Topics

              1.3m
              Posts

              3
              5
              592
              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