Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Alexa Playlist per Script

    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

    Alexa Playlist per Script

    This topic has been deleted. Only users with topic management privileges can see it.
    • haselchen
      haselchen Most Active @lucajordi last edited by

      @lucajordi

      Ich hatte das schonmal gefragt, was ist denn der Auslöser, dass dein Skript schaltet?

      L 1 Reply Last reply Reply Quote 0
      • L
        lucajordi @haselchen last edited by

        @haselchen
        Also das Script soll über einen Button in Vis gestartet werden. Aber auch wenn ich das Script manuell starte, dann funktioniert es auch nicht!

        1 Reply Last reply Reply Quote 0
        • M
          MCU last edited by MCU

          @lucajordi Setze mal die ACK=true:

          setState('alexa2.0.Echo-Devices.G090LF1180360GTN.Music-Provider.Amazon-Music-Playlist',
                   'Spiele Playlist Thorsten',true );
          
          on({id: '0_userdata.0.Datenpunkte.ScriptPlaylistThorsten', val: true}, script1());
          

          script1() ist eine Funktion

          L 1 Reply Last reply Reply Quote 0
          • L
            lucajordi @MCU last edited by lucajordi

            @mcu said in Alexa Playlist per Script:

            on({id: '0_userdata.0.Datenpunkte.ScriptPlaylistThorsten', val: true}, script1());

            Leider nein...
            es änderte sich nichts am state:
            a996735a-fcd6-4529-8c37-ea6b9c43d124-image.png

            So sieht die Funktion jetzt aus:

            function script1() 
            {
            setState('alexa2.0.Echo-Devices.G090LF1180360GTN.Music-Provider.Amazon-Music-Playlist',
                     'Spiele Playlist Thorsten',true );
            setState('alexa2.0.Echo-Devices.G090LF1180360GTN.Player.volume', 10 );}
            on({id: '0_userdata.0.Datenpunkte.ScriptPlaylistThorsten', val: true}, script1()); // Triggert auf Wert 1
             
            
            M 1 Reply Last reply Reply Quote 0
            • M
              MCU @lucajordi last edited by MCU

              @lucajordi sagte in Alexa Playlist per Script:

              on({id: '0_userdata.0.Datenpunkte.ScriptPlaylistThorsten', val: true}, script1());

              on({id: '0_userdata.0.Datenpunkte.ScriptPlaylistThorsten', change: "any"}, script1());
              

              Versuch mal so:

              on({id: '0_userdata.0.Datenpunkte.ScriptPlaylistThorsten', vaL:true}, function() {
                 script1();
              });
              
              L 1 Reply Last reply Reply Quote 0
              • L
                lucajordi @MCU last edited by

                @mcu
                Hallo,
                funktioniert leider auch nicht...
                jetzt klappt auch das manuelle stellen auf true nicht mehr...
                ich verzweifele so langsam...

                Ronny Gerndt 1 Reply Last reply Reply Quote 0
                • Ronny Gerndt
                  Ronny Gerndt @lucajordi last edited by

                  @lucajordi Sorry hatte die letzten Tage kaum Zeit. Hier mal mein Code:

                  on({id: "Ronny.0.FromAlexa.MusikAn"/*MusikAn*/, val: true}, async function (obj) {
                    setState("alexa2.0.Echo-Devices.xxx.Player.controlShuffle"/*controlShuffle*/, true);
                    setState("alexa2.0.Echo-Devices.xxx.Music-Provider.Amazon-Music"/*Phrase to play with Amazon Music*/, 'Spiele Playlist BEST OF 2020: DANCE');
                    setState("Ronny.0.FromAlexa.MusikAn"/*MusikAn*/, false);
                  });
                  

                  Und das funzt immer

                  L 1 Reply Last reply Reply Quote 0
                  • L
                    lucajordi @Ronny Gerndt last edited by

                    @ronny-gerndt
                    Tja, irgendetwas ist dann krumm bei mir...

                    Er ändert einfach den State nicht...

                    61ce66c0-f378-491f-80e3-436d00951a35-image.png

                    Wie ist denn euer Datenpunkt angelegt?

                    Danke und Gruß
                    Thorsten

                    Ronny Gerndt 1 Reply Last reply Reply Quote 0
                    • Ronny Gerndt
                      Ronny Gerndt @lucajordi last edited by

                      @lucajordi Screenshot_20210325-202348.jpg
                      So sieht das bei mir aus

                      L 1 Reply Last reply Reply Quote 0
                      • L
                        lucajordi @Ronny Gerndt last edited by

                        @ronny-gerndt
                        Genau wie bei mir...
                        Also irgendetwas scheint mit der Funktion nicht zu passen.
                        Wenn ich die set state Kommandos im Script ohne Funktion starte, funktioniert es..

                        Ronny Gerndt 1 Reply Last reply Reply Quote 0
                        • Ronny Gerndt
                          Ronny Gerndt @lucajordi last edited by

                          @lucajordi hm sehr seltsam....kannst du Mal ein console.log("Test"); in vor den setstates einfügen? Dann müsstest du im Log ein Test sehen.

                          L 1 Reply Last reply Reply Quote 0
                          • L
                            lucajordi @Ronny Gerndt last edited by

                            @ronny-gerndt
                            Sorry für die späte Rückmeldung...
                            Habe nochmal alles neu gemacht und gestern lief alles einwandfrei!
                            Werde morgen nachmal testen, ob immernoch alles ok ist und nochmal
                            Rückmeldung geben!
                            Vielen Dank schonmal für die Hlfe!
                            Gruß
                            Thorsten

                            L 1 Reply Last reply Reply Quote 1
                            • L
                              lucajordi @lucajordi last edited by

                              so, nochmal durchgetestet und funktioniert immer noch!

                              Vielen Dank an euch!

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

                              Support us

                              ioBroker
                              Community Adapters
                              Donate
                              FAQ Cloud / IOT
                              HowTo: Node.js-Update
                              HowTo: Backup/Restore
                              Downloads
                              BLOG

                              453
                              Online

                              31.9k
                              Users

                              80.1k
                              Topics

                              1.3m
                              Posts

                              4
                              39
                              1682
                              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