Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Steuerung der Außenleuchte funktioniert nicht (Shelly)

    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

    Steuerung der Außenleuchte funktioniert nicht (Shelly)

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

      Moin Leute,

      ich hab lange versucht, mir selbst zu helfen, aber irgendwie kriege ich das nicht hin und brauche euren Rat.

      Zum Aufbau:
      Meine Außenleuchten sind in 3 Bereiche aufgeteilt. (Wintergarten, Garage, Keller). Die Lampen sind mit Shellys verbunden. Wintergarten und Keller haben einen klassischen Bewegungsmelder der am Shelly als Switch angeschlossen ist. Den Hue Motion Sensor nutze ich für die Einfahrt.

      Ich möchte das alle Lampen für 150 Sek angehen. Egal ob der Hue Sensor eine Bewegung erkennt oder am der klassischen Bewegungsmelder.

      Aktuell habe ich 3 Scripts die die jeweiligen Breiche Steuern.
      Leider gehen die Lampen aber teilweise nicht aus und teilweise auch garnicht erst an.
      Habt ihr eine Idee?

      Anbei das Script

      Garage
      Bildschirmfoto 2021-01-13 um 22.15.15.png

      Keller
      Bildschirmfoto 2021-01-13 um 22.29.51.png

      Wintergarten
      Bildschirmfoto 2021-01-13 um 22.30.34.png

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable type="timeout" id="timeout">timeout</variable>
        </variables>
        <block type="on_ext" id="JFjZ]H()up?+=F_f.@G0" x="429" y="-353">
          <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=",aDDT$r/v*~h$zfN`_p5">
              <field name="oid">shelly.0.SHSW-1#8CAAB555AD50#1.Relay0.Switch</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="controls_if" id=":3Nc5xK^#U1%Q(xoh:$1">
              <value name="IF0">
                <block type="logic_operation" id="RoWg/R)(D$J_cwUqNAd(">
                  <field name="OP">AND</field>
                  <value name="A">
                    <block type="logic_compare" id="mEUq+8q~nPaP29Mg]s;t">
                      <field name="OP">LT</field>
                      <value name="A">
                        <block type="get_value" id="K@8]BtywbiaHV2UVa2nj">
                          <field name="ATTR">val</field>
                          <field name="OID">hue.0.Hue_outdoor_ambient_light_sensor.lightlevel</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="math_number" id="kC(JU~+6yL|}%~yugaEs">
                          <field name="NUM">60</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_compare" id="KNP0*dpbrm~Y(v?_ID9z">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="get_value" id="FGg9mrGL)WV{P0jHy)9,">
                          <field name="ATTR">val</field>
                          <field name="OID">shelly.0.SHSW-1#8CAAB555AD50#1.Relay0.Switch</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_boolean" id="TnXxyicSrE$ab%.%ymUX">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="control" id="5$R(sOz6Oo_AFU2`5dKb">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">shelly.0.SHSW-1#8CAAB555AD50#1.Relay0.Switch</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="logic_boolean" id=")87R/#z?4;E(U1p`k|2m">
                      <field name="BOOL">TRUE</field>
                    </block>
                  </value>
                  <next>
                    <block type="control" id="M|JQrQSU4#~eF?+ziXSJ">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">shelly.0.SHSW-25#690EE0#1.Relay0.Switch</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="_r`tPWj_9juv|$Zj`~#J">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                      <next>
                        <block type="control" id="eXz*d.F$Ec/QCa!#}^[D">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">shelly.0.SHSW-1#1155DF#1.Relay0.Switch</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="$ZUpP$NY8YE1,gyZxQO.">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                          <next>
                            <block type="timeouts_settimeout" id="i9!|p@vTBM~I_mPzmFH#">
                              <field name="NAME">timeout</field>
                              <field name="DELAY">150</field>
                              <field name="UNIT">sec</field>
                              <statement name="STATEMENT">
                                <block type="control" id="~=?:h9p#{,-y1U-eHal4">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">shelly.0.SHSW-1#8CAAB555AD50#1.Relay0.Switch</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id="d$68NMd!=z8,MVNJ[CZ`">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="control" id="Cz@hkP~VeY9WyxI=@6v;">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">shelly.0.SHSW-25#690EE0#1.Relay0.Switch</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="k46J6REvXBus=Onm;,C,">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id="8c:U[h~Z/~.`19`i.s)N">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">shelly.0.SHSW-1#1155DF#1.Relay0.Switch</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id="T].x$+X=j_0upMi5*48V">
                                              <field name="BOOL">FALSE</field>
                                            </block>
                                          </value>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
            </block>
          </statement>
        </block>
      </xml>
      
      da_Woody P 2 Replies Last reply Reply Quote 0
      • da_Woody
        da_Woody @abuaz01 last edited by

        @abubaz01 versuchs mal mit SmartControl dann brauchst du dich nicht mit blockly rumärgern.

        1 Reply Last reply Reply Quote 0
        • P
          perry @abuaz01 last edited by

          @abubaz01 said in Steuerung der Außenleuchte funktioniert nicht (Shelly):

          Habt ihr eine Idee?

          hallo abubaz01
          versuche es mal so
          cu perry

          Trigger.jpg

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

          Support us

          ioBroker
          Community Adapters
          Donate

          944
          Online

          31.9k
          Users

          80.2k
          Topics

          1.3m
          Posts

          3
          3
          204
          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