Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Radio soll Beleuchtung steuern

    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

    Radio soll Beleuchtung steuern

    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      Dominik_neu @DJMarc75 last edited by

      @djmarc75 ja ein Sonos one und steuere ein WLED Controller

      DJMarc75 1 Reply Last reply Reply Quote 0
      • DJMarc75
        DJMarc75 @Dominik_neu last edited by

        @dominik_neu

        @paul53 hat ein gutes Skript gepostet - wie immer 😉

        Hier ist meines - beide mal testen:

        Screenshot 2023-12-26 224531.png

        D 1 Reply Last reply Reply Quote 0
        • D
          Dominik_neu @paul53 last edited by

          @paul53 Immer noch nicht 100%
          Radio geht jetzt an, bei Senderwechsel geht es auch.
          Aber wenn ich Radio Ausschalte dann geht der Licht Effekt nochmal los und bleibt an.

          paul53 1 Reply Last reply Reply Quote 0
          • D
            Dominik_neu @DJMarc75 last edited by

            @djmarc75 ich versteh es gerade gar nicht. Ich habe kein Datenpunkt mit playing und mir scheint das so, dass ich das Radio damit steuere. Ich will nur das Licht steuern und den Befehl vom Radio dafür nutzen. (vielleicht auch mein denk Fehler aber da stehe ich auf dem Schlauch)

            DJMarc75 1 Reply Last reply Reply Quote 0
            • DJMarc75
              DJMarc75 @Dominik_neu last edited by DJMarc75

              @dominik_neu sagte in Radio soll Beleuchtung steuern:

              Ich habe kein Datenpunkt mit playing

              Das ist eine Variable welche man erstellen muss

              <xml xmlns="https://developers.google.com/blockly/xml">
               <variables>
                 <variable type="timeout" id="timeout">timeout</variable>
                 <variable id="w*D`w9XS7)C:kW*sG1WA">playing</variable>
               </variables>
               <block type="on_ext" id="^:z0QmH+E]P5s:F!|gqD" x="-104" y="-101">
                 <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="cQOl-EzOo7?3(obVRIY0">
                     <field name="oid">sonos.0.root.xxx.state_simple</field>
                   </shadow>
                 </value>
                 <statement name="STATEMENT">
                   <block type="timeouts_cleartimeout" id="[Ln3xyRMc9U(c[R@)NlP">
                     <field name="NAME">timeout</field>
                     <next>
                       <block type="controls_if" id="2X^@}zetWWseDhhrFMyw">
                         <mutation else="1"></mutation>
                         <value name="IF0">
                           <block type="logic_operation" id="Y6w3?S?q/gN/=%7o$I.v" inline="false">
                             <field name="OP">AND</field>
                             <value name="A">
                               <block type="on_source" id="N{4_(]%1zj):LF+$1~VO">
                                 <field name="ATTR">state.val</field>
                               </block>
                             </value>
                             <value name="B">
                               <block type="logic_negate" id="dc5S*j%8/-NQs^A*M}sl">
                                 <value name="BOOL">
                                   <block type="variables_get" id=".^SvX6:]9sd#y16k9N=C">
                                     <field name="VAR" id="w*D`w9XS7)C:kW*sG1WA">playing</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                           </block>
                         </value>
                         <statement name="DO0">
                           <block type="comment" id="qWMkfe-Y#0SY*SS9D3hP">
                             <field name="COMMENT">starte Aktionen</field>
                             <next>
                               <block type="variables_set" id="]rQ`H63Iq-11ri+acznt">
                                 <field name="VAR" id="w*D`w9XS7)C:kW*sG1WA">playing</field>
                                 <value name="VALUE">
                                   <block type="logic_boolean" id="naP[oVC.q962D.0LF2AL">
                                     <field name="BOOL">TRUE</field>
                                   </block>
                                 </value>
                               </block>
                             </next>
                           </block>
                         </statement>
                         <statement name="ELSE">
                           <block type="timeouts_settimeout" id="C2B_h8e7}lKm2^L%o~+5">
                             <field name="NAME">timeout</field>
                             <field name="DELAY">5</field>
                             <field name="UNIT">sec</field>
                             <statement name="STATEMENT">
                               <block type="controls_if" id="~bgTZ?8UgYiY7p[0!`j0">
                                 <value name="IF0">
                                   <block type="logic_negate" id="31j~}gxz^oS*todI+EDP">
                                     <value name="BOOL">
                                       <block type="on_source" id="f/5/G(ax{k=Gw5j%iVBI">
                                         <field name="ATTR">state.val</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <statement name="DO0">
                                   <block type="comment" id="6Yr{vB+g}4H?ybN[}1!o">
                                     <field name="COMMENT">stoppe Aktionen</field>
                                     <next>
                                       <block type="variables_set" id="(B,1!(dof*Roq#xqvt9l">
                                         <field name="VAR" id="w*D`w9XS7)C:kW*sG1WA">playing</field>
                                         <value name="VALUE">
                                           <block type="logic_boolean" id="nqYieh=kI)Ghw6Mb,[e?">
                                             <field name="BOOL">FALSE</field>
                                           </block>
                                         </value>
                                       </block>
                                     </next>
                                   </block>
                                 </statement>
                               </block>
                             </statement>
                           </block>
                         </statement>
                       </block>
                     </next>
                   </block>
                 </statement>
               </block>
              </xml>
              

              Datenpunkt zum Sonos musste anpassen 😉

              D 1 Reply Last reply Reply Quote 0
              • paul53
                paul53 @Dominik_neu last edited by paul53

                @dominik_neu sagte: wenn ich Radio Ausschalte dann geht der Licht Effekt nochmal los und bleibt an.

                Geht dann "play/pause" nicht auf false und bleibt false?
                Falls doch, poste bitte dein Blockly.

                D 1 Reply Last reply Reply Quote 0
                • D
                  Dominik_neu @paul53 last edited by

                  @paul53 Wenn ich das Radio ausschalte geht es auf false und bleibt auf false!
                  Bildschirmfoto 2023-12-26 um 23.16.43.png

                  paul53 1 Reply Last reply Reply Quote 0
                  • D
                    Dominik_neu @DJMarc75 last edited by

                    @djmarc75 ich schaue morgen mal danach da steige ich gerade noch nicht durch. Aber ich baue es einfach mal.

                    1 Reply Last reply Reply Quote 0
                    • paul53
                      paul53 @Dominik_neu last edited by paul53

                      @dominik_neu
                      Es fehlt die Prüfung von Wert für das Lichtszenario. Vergleiche mit meinem Vorschlag.

                      D 1 Reply Last reply Reply Quote 0
                      • D
                        Dominik_neu @paul53 last edited by

                        @paul53 Ja stimmt mein Fehler und dann geht es auch
                        @DJMarc75 deins scheint auch zu funktionieren

                        Vielen Dank ihr beiden es gehen anscheinend beide Scripte kann ich mir eins aus suchen.

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

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        932
                        Online

                        31.9k
                        Users

                        80.1k
                        Topics

                        1.3m
                        Posts

                        3
                        15
                        607
                        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