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

                        452
                        Online

                        31.9k
                        Users

                        80.2k
                        Topics

                        1.3m
                        Posts

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