Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • 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

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Radio soll Beleuchtung steuern

NEWS

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

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

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.3k

Radio soll Beleuchtung steuern

Scheduled Pinned Locked Moved Blockly
15 Posts 3 Posters 990 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Dominik_neu

    @paul53 Hallo und Danke für deine Hilfe.
    Leider funktioniert es nicht. Ich glaube du hasst mich falsch verstanden. Also es geht auch Licht mit Radio an und aus. Mein Problem ist bei Senderwechsel geht das Radio kurz auf Pause(false) und dann wieder auf play(true) und in dem Zustand geht der Effekt wieder los.
    Weil dann der Status wieder lange auf true ist geht der Effekt los. Es muss so sein das wenn der Status länger wie die angeben zeit z.b. 1500ms ändert ist und so bleibt. dann darf erst an oder aus sein.
    also :
    true -licht an
    false -licht aus
    kurz false und wieder true nichts soll passieren

    paul53P Offline
    paul53P Offline
    paul53
    wrote on last edited by
    #5

    @dominik_neu sagte: in dem Zustand geht der Effekt wieder los.

    Versuche es mal so:

    Blockly_temp.JPG

    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

    D 1 Reply Last reply
    0
    • DJMarc75D DJMarc75

      @dominik_neu

      Ist das ein Sonos System ? Sowas gehört wie alle Infos immer in den Startbeitrag !

      D Offline
      D Offline
      Dominik_neu
      wrote on last edited by
      #6

      @djmarc75 ja ein Sonos one und steuere ein WLED Controller

      DJMarc75D 1 Reply Last reply
      0
      • D Dominik_neu

        @djmarc75 ja ein Sonos one und steuere ein WLED Controller

        DJMarc75D Offline
        DJMarc75D Offline
        DJMarc75
        wrote on last edited by
        #7

        @dominik_neu

        @paul53 hat ein gutes Skript gepostet - wie immer ;)

        Hier ist meines - beide mal testen:

        Screenshot 2023-12-26 224531.png

        Lehrling seit 1975 !!!
        Beitrag geholfen ? dann gerne ein upvote rechts unten im Beitrag klicken ;)
        https://forum.iobroker.net/topic/51555/hinweise-f%C3%BCr-gute-forenbeitr%C3%A4ge

        D 1 Reply Last reply
        0
        • paul53P paul53

          @dominik_neu sagte: in dem Zustand geht der Effekt wieder los.

          Versuche es mal so:

          Blockly_temp.JPG

          D Offline
          D Offline
          Dominik_neu
          wrote on last edited by
          #8

          @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.

          paul53P 1 Reply Last reply
          0
          • DJMarc75D DJMarc75

            @dominik_neu

            @paul53 hat ein gutes Skript gepostet - wie immer ;)

            Hier ist meines - beide mal testen:

            Screenshot 2023-12-26 224531.png

            D Offline
            D Offline
            Dominik_neu
            wrote on last edited by
            #9

            @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)

            DJMarc75D 1 Reply Last reply
            0
            • D Dominik_neu

              @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)

              DJMarc75D Offline
              DJMarc75D Offline
              DJMarc75
              wrote on last edited by DJMarc75
              #10

              @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 ;)

              Lehrling seit 1975 !!!
              Beitrag geholfen ? dann gerne ein upvote rechts unten im Beitrag klicken ;)
              https://forum.iobroker.net/topic/51555/hinweise-f%C3%BCr-gute-forenbeitr%C3%A4ge

              D 1 Reply Last reply
              0
              • D Dominik_neu

                @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.

                paul53P Offline
                paul53P Offline
                paul53
                wrote on last edited by paul53
                #11

                @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.

                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

                D 1 Reply Last reply
                0
                • paul53P 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 Offline
                  D Offline
                  Dominik_neu
                  wrote on last edited by
                  #12

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

                  paul53P 1 Reply Last reply
                  0
                  • DJMarc75D 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 Offline
                    D Offline
                    Dominik_neu
                    wrote on last edited by
                    #13

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

                    1 Reply Last reply
                    0
                    • D Dominik_neu

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

                      paul53P Offline
                      paul53P Offline
                      paul53
                      wrote on last edited by paul53
                      #14

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

                      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

                      D 1 Reply Last reply
                      0
                      • paul53P paul53

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

                        D Offline
                        D Offline
                        Dominik_neu
                        wrote on last edited by
                        #15

                        @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
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        680

                        Online

                        32.6k

                        Users

                        82.2k

                        Topics

                        1.3m

                        Posts
                        Community
                        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                        ioBroker Community 2014-2025
                        logo
                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Home
                        • Recent
                        • Tags
                        • Unread 0
                        • Categories
                        • Unreplied
                        • Popular
                        • GitHub
                        • Docu
                        • Hilfe