Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. SayIT über Sonos?

    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

    SayIT über Sonos?

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

      @derAuge:

      Wie hast du den Adapter angesteuert?

      kannst du hier eine kurze Info zur einstellung geben?

      Gruß

      derAuge `

      Du meinst, wie die Ansagen aufgerufen werden?

      In meiner Umgebung über ein kleines Script, siehe:

      http://forum.iobroker.org/viewtopic.php … =438#p3125

      Das Script wird in dem Fall ausgeführt bei Statusänderung einer Homematic Komponente.

      Bei dem kurzen Script (im letzten Post aufklappen) habe ich noch das Problem, dass die Ansagen zweimal abgespielt werden.

      Bluefox hatte dann ein Workaround-Script gepostet, mit dem die Ansgage nur einmal abgespielt wird.

      Über den Browser (chrome, ich meine Safari geht nicht, habe ich aber nicht getestet) klappt das Prima.

      Bei Dashui hatte ich es auch über den Medienplayer am Android-Tablet probiert, in ioBroker noch nciht.

      Über Sonos wäre es perfekt 😉

      1 Reply Last reply Reply Quote 0
      • Bluefox
        Bluefox last edited by

        Ich habe jetzt eine neue Version, aber ich habe auch mit der alten Version ausprobiert und es ging.

        Falls jetzt nicht gehen wird, dann werden wir weiter untersuchen.

        1 Reply Last reply Reply Quote 0
        • derAuge
          derAuge last edited by

          Habe es getestet

          mit :

          var idSayIt     = "sayit.0.tts.text";               // Hier die entsprechende SayIt Text ID
          var idButton    = "hm-rpc.0.KEQ1092089.1.MOTION"; //*Bewegung innen.MOTION*/
          var lastSay     = null;
          
          // Bei Bewegung wird folgender Text gesprochen
          subscribe({id: idButton, val: true}, function (obj) {
                   if (!lastSay || ((new Date()).getTime() - lastSay) > 3000) {
                            lastSay = (new Date()).getTime();
                            setState (idSayIt, "de;40;Bewegung im Flur festgestellt");
                   }
          
                  });
          
          

          Mit einem Lautsprecher

          sonos.0	2015-03-16 23:02:55	info	sonos.0 try to control id sonos.0.root.192_168_28_232.tts with {"val":"40;http://192.168.28.77:8082/state/sayit.0.tts.mp3","ack":false,"ts":1426543375,"from":"system.adapter.sayit.0","lc":1426528833}
          sayit.0	2015-03-16 23:02:55	info	sayit.0 Copied file '/mnt/ioBroker/iobroker.Pi2/node_modules/iobroker.sayit/say.mp3' to '/mnt/ioBroker/iobroker.Pi2/node_modules/iobroker.sayit/../../cache/36659845bdb87502a47974721be216f1.mp3'
          sayit.0	2015-03-16 23:02:54	info	sayit.0 saying: de;40;Bewegung im Flur festgestellt
          sayit-0	2015-03-16 23:01:37	info	starting. Version 0.3.2 in /mnt/ioBroker/iobroker.Pi2/node_modules/iobroker.sayit
          	2015-03-16 23:01:35	info	info
          host-pi2	2015-03-16 23:01:33	info	instance system.adapter.sayit.0 started with pid 26738
          
          

          Mit allen (2) Lautsprechern.

          sayit.0	2015-03-16 23:11:31	info	sayit.0 sendTo "send" to system.adapter.sonos from system.adapter.sayit.0: "40;http://192.168.28.77:8082/state/sayit.0.tts.mp3"
          sayit.0	2015-03-16 23:11:31	info	sayit.0 Copied file '/mnt/ioBroker/iobroker.Pi2/node_modules/iobroker.sayit/../../cache/36659845bdb87502a47974721be216f1.mp3' to '/mnt/ioBroker/iobroker.Pi2/node_modules/iobroker.sayit/say.mp3'
          sayit.0	2015-03-16 23:11:31	info	sayit.0 saying: de;40;Bewegung im Flur festgestellt
          sayit.0	2015-03-16 23:05:47	info	sayit.0 starting. Version 0.3.2 in /mnt/ioBroker/iobroker.Pi2/node_modules/iobroker.sayit
          pi2	2015-03-16 23:05:43	info	host.pi2 instance system.adapter.sayit.0 started with pid 26993
          pi2	2015-03-16 23:05:43	info	host.pi2 instance system.adapter.sayit.0 started with pid 26993
          host-pi2	2015-03-16 23:05:41	info	instance system.adapter.sayit.0 terminated with code 0 (OK)
          
          

          es wird "nur" die Playliste (einmal) gestartet

          1 Reply Last reply Reply Quote 0
          • ruhr70
            ruhr70 last edited by

            Guten Morgen,

            bei mir ist das Verhalten auch noch so.

            Sonos startet die Playlist, sobald das Script greift.

            Das mp3 hört man nicht.

            • Raum 1: Ein Sonos (Play 5 spielt die zuvor gestoppte Playlist).

            • Raum 2: Ein Sonos Stereo-Pärchen (2x Play 5 zeigt zwar im Controller an, dass die Playlist aktiv ist (hört man für eine Sekunde), beim Play 5 leuchtet dann aber die Stummtaste).

            • Raum 3: Ein ZP-90: die Playliste wird gestartet

            • Raum 1 und 2 sind im Sonos vorher in einer Gruppe gewesen. Trotzdem ist das Verhalten unterschiedlich.
              Gruß

            Michael

            [sonos] 2015-03-17 06:53:43 info emitting group-volume

            [sonos] 2015-03-17 06:53:43 info emitting group-volume

            [sonos] 2015-03-17 06:53:40 info emitting group-volume

            sonos-0 2015-03-17 06:53:40 warn Play text2speech during another still playing

            sayit-1 2015-03-17 06:53:40 info sendTo "send" to system.adapter.sonos from system.adapter.sayit.1: "40;http://172.16.130.122:8082/state/sayit.1.tts.mp3"

            sayit-1 2015-03-17 06:53:40 info saying: de;40;Dies ist nur ein kleiner Text, lalalala. Ein Test hurra.

            [sonos] 2015-03-17 06:53:35 info emitting group-volume

            sonos-0 2015-03-17 06:53:35 warn Play text2speech during another still playing

            sayit-1 2015-03-17 06:53:35 info Copied file '/opt/iobroker/node_modules/iobroker.sayit/say.mp3' to '/opt/iobroker/node_modules/iobroker.sayit/../../cache/49ab244625b03a98d12ceecb343c6620.mp3'

            sayit-1 2015-03-17 06:53:35 info sendTo "send" to system.adapter.sonos from system.adapter.sayit.1: "40;http://172.16.130.122:8082/state/sayit.1.tts.mp3"

            sayit-1 2015-03-17 06:53:35 info saying: de;40;Dies ist nur ein kleiner Text, lalalala. Ein Test hurra.

            1 Reply Last reply Reply Quote 0
            • Bluefox
              Bluefox last edited by

              @ruhr70:

              Guten Morgen,

              bei mir ist das Verhalten auch noch so.

              Sonos startet die Playlist, sobald das Script greift.

              Das mp3 hört man nicht.

              • Raum 1: Ein Sonos (Play 5 spielt die zuvor gestoppte Playlist).

              • Raum 2: Ein Sonos Stereo-Pärchen (2x Play 5 zeigt zwar im Controller an, dass die Playlist aktiv ist (hört man für eine Sekunde), beim Play 5 leuchtet dann aber die Stummtaste).

              • Raum 3: Ein ZP-90: die Playliste wird gestartet

              • Raum 1 und 2 sind im Sonos vorher in einer Gruppe gewesen. Trotzdem ist das Verhalten unterschiedlich.
                Gruß

              Michael

              [sonos] 2015-03-17 06:53:43 info emitting group-volume

              [sonos] 2015-03-17 06:53:43 info emitting group-volume

              [sonos] 2015-03-17 06:53:40 info emitting group-volume

              sonos-0 2015-03-17 06:53:40 warn Play text2speech during another still playing

              sayit-1 2015-03-17 06:53:40 info sendTo "send" to system.adapter.sonos from system.adapter.sayit.1: "40;http://172.16.130.122:8082/state/sayit.1.tts.mp3"

              sayit-1 2015-03-17 06:53:40 info saying: de;40;Dies ist nur ein kleiner Text, lalalala. Ein Test hurra.

              [sonos] 2015-03-17 06:53:35 info emitting group-volume

              sonos-0 2015-03-17 06:53:35 warn Play text2speech during another still playing

              sayit-1 2015-03-17 06:53:35 info Copied file '/opt/iobroker/node_modules/iobroker.sayit/say.mp3' to '/opt/iobroker/node_modules/iobroker.sayit/../../cache/49ab244625b03a98d12ceecb343c6620.mp3'

              sayit-1 2015-03-17 06:53:35 info sendTo "send" to system.adapter.sonos from system.adapter.sayit.1: "40;http://172.16.130.122:8082/state/sayit.1.tts.mp3"

              sayit-1 2015-03-17 06:53:35 info saying: de;40;Dies ist nur ein kleiner Text, lalalala. Ein Test hurra. `
              "text2speech during another still playing" bedeuted, dass letzte Auftrag noch nicht fertig ist.

              Kannst du folgende Datei auf iobroker/node_modules/iobroker.sonos/sonos.js kopieren und sonos restarten. Ich habe da ein paar logs eingebaut. Ich habe nur ein SONOS ZP80

              Am besten nur einen SONOS lassen und auf Pause stellen.
              48_sonos.js
              Die Logs dann hier posten.

              Danke.

              1 Reply Last reply Reply Quote 0
              • ruhr70
                ruhr70 last edited by

                @Bluefox:

                "text2speech during another still playing" bedeuted, dass letzte Auftrag noch nicht fertig ist.

                Kannst du folgende Datei auf iobroker/node_modules/iobroker.sonos/sonos.js kopieren und sonos restarten. Ich habe da ein paar logs eingebaut. Ich habe nur ein SONOS ZP80

                Am besten nur einen SONOS lassen und auf Pause stellen.
                filename="sonos.js" index="0">~~
                Die Logs dann hier posten.

                Danke. `

                • Datei sonos.js ins Verzeichnis kopieren

                • bis auf einen Player alle stromlos gemacht

                • im SayIT Adapter von alle Player nur einen Player rausgesucht

                • Sonos Adapter neu gestartet

                • SayIT Adapter neu gestartet (nur die Instanz 1)

                Ausgangssituation:

                • im aktivierten Player wird ein Radiostream angezeigt, der gestoppt ist

                • (ein Radiostream Auftrag wird nie fertig 😉 )

                Script über einen Homematic-Kontakt aktiviert.

                • man hört im Sonos Player ganz kurz den Radiostream, danach ist es wieder still

                • zweiter Versuch (nicht im Log): man hört gar nichts

                Log:

                sonos.0	2015-03-17 08:05:24	info	sonos.0 Set old track number 1
                sonos.0	2015-03-17 08:05:24	info	sonos.0 Restore volume 0
                sonos.0	2015-03-17 08:05:24	info	sonos.0 Restore state before TTS. Remove 73
                sonos.0	2015-03-17 08:05:24	info	sonos.0 New sonos state: STOPPED, time elapsed - 1222
                sonos.0	2015-03-17 08:05:23	info	sonos.0 Send PLAY to (RINCON_000E5851A36401400)
                sonos.0	2015-03-17 08:05:23	info	sonos.0 addURIToQueue on end (RINCON_000E5851A36401400):
                sonos.0	2015-03-17 08:05:23	info	sonos.0 addURIToQueue (RINCON_000E5851A36401400) :true
                sonos.0	2015-03-17 08:05:23	info	sonos.0 Play on RINCON_000E5851A36401400: http://172.16.130.122:8082/state/sayit.1.tts.mp3
                sayit.1	2015-03-17 08:05:23	info	sayit.1 Copied file '/opt/iobroker/node_modules/iobroker.sayit/../../cache/49ab244625b03a98d12ceecb343c6620.mp3' to '/opt/iobroker/node_modules/iobroker.sayit/say.mp3'
                sonos.0	2015-03-17 08:05:23	info	sonos.0 try to control id sonos.0.root.172_16_130_169.tts with {"val":"40;http://172.16.130.122:8082/state/sayit.1.tts.mp3","ack":false,"ts":1426575923,"from":"system.adapter.sayit.1","lc":1426440671}
                sayit.1	2015-03-17 08:05:23	info	sayit.1 saying: de;40;Dies ist nur ein kleiner Text, lalalala. Ein Test hurra.
                sonos.0	2015-03-17 08:05:15	info	sonos.0 http sonos server listening on port 8083
                sonos.0	2015-03-17 08:05:15	info	sonos.0 starting. Version 0.1.5 in /opt/iobroker/node_modules/iobroker.sonos
                iobroker	2015-03-17 08:05:15	info	host.iobroker instance system.adapter.sonos.0 started with pid 2789
                host-iobroker	2015-03-17 08:05:12	info	instance system.adapter.sonos.0 terminated with code 0 (OK)
                sonos-0	2015-03-17 08:05:12	info	terminating
                sonos-0	2015-03-17 08:05:12	info	terminating
                host-iobroker	2015-03-17 08:05:12	info	stopInstance system.adapter.sonos.0 killing pid 32533
                host-iobroker	2015-03-17 08:05:12	info	stopInstance system.adapter.sonos.0
                host-iobroker	2015-03-17 08:05:12	info	object change system.adapter.sonos.0
                sayit-1	2015-03-17 08:05:11	info	starting. Version 0.3.2 in /opt/iobroker/node_modules/iobroker.sayit
                2015-03-17 08:05:10	info	info
                host-iobroker	2015-03-17 08:05:10	info	instance system.adapter.sayit.1 started with pid 2727
                host-iobroker	2015-03-17 08:05:08	info	instance system.adapter.sayit.1 terminated with code 0 (OK)
                sayit-1	2015-03-17 08:05:08	info	terminating
                host-iobroker	2015-03-17 08:05:08	info	stopInstance system.adapter.sayit.1 killing pid 1004
                host-iobroker	2015-03-17 08:05:08	info	stopInstance system.adapter.sayit.1
                host-iobroker	2015-03-17 08:05:08	info	object change system.adapter.sayit.1
                
                1 Reply Last reply Reply Quote 0
                • derAuge
                  derAuge last edited by

                  • Datei sonos.js ins Verzeichnis kopieren

                  • im SayIT Adapter von alle Player nur einen Player rausgesucht

                  • Sonos Adapter neu gestartet

                  • SayIT Adapter neu gestartet

                  sonos.0	2015-03-17 08:21:13	info	sonos.0 Set old track number 426
                  sonos.0	2015-03-17 08:21:13	info	sonos.0 Restore volume 28
                  sonos.0	2015-03-17 08:21:13	info	sonos.0 Restore state before TTS. Remove 124
                  sonos.0	2015-03-17 08:21:13	info	sonos.0 New sonos state: PAUSED_PLAYBACK, time elapsed - 54253
                  sonos.0	2015-03-17 08:20:20	info	sonos.0 New sonos state: PLAYING, time elapsed - 1236
                  sonos.0	2015-03-17 08:20:20	info	sonos.0 New sonos state: PLAYING, time elapsed - 1042
                  sonos.0	2015-03-17 08:20:19	info	sonos.0 New sonos state: PAUSED_PLAYBACK, time elapsed - 365
                  sonos.0	2015-03-17 08:20:19	info	sonos.0 Send PLAY to (RINCON_B8E9378C56BC01400)
                  sonos.0	2015-03-17 08:20:19	info	sonos.0 addURIToQueue on end (RINCON_B8E9378C56BC01400):
                  sonos.0	2015-03-17 08:20:19	info	sonos.0 addURIToQueue (RINCON_B8E9378C56BC01400) :true
                  sonos.0	2015-03-17 08:20:19	info	sonos.0 Play on RINCON_B8E9378C56BC01400: http://192.168.28.77:8082/state/sayit.0.tts.mp3
                  sonos.0	2015-03-17 08:20:19	info	sonos.0 try to control id sonos.0.root.192_168_28_232.tts with {"val":"40;http://192.168.28.77:8082/state/sayit.0.tts.mp3","ack":false,"ts":1426576819,"from":"system.adapter.sayit.0","lc":1426528833}
                  sayit.0	2015-03-17 08:20:19	info	sayit.0 Copied file '/mnt/ioBroker/iobroker.Pi2/node_modules/iobroker.sayit/../../cache/36659845bdb87502a47974721be216f1.mp3' to '/mnt/ioBroker/iobroker.Pi2/node_modules/iobroker.sayit/say.mp3'
                  sayit.0	2015-03-17 08:20:19	info	sayit.0 saying: de;40;Bewegung im Flur festgestellt
                  [sonos]	2015-03-17 08:19:33	info	emitting group-volume
                  [sonos]	2015-03-17 08:19:32	info	using local endpoint 192.168.28.77
                  [sonos]	2015-03-17 08:19:32	info	subscribing to topology 192.168.28.232
                  [sonos]	2015-03-17 08:19:32	info	scanning for players in ip 192.168.28.77
                  [sonos]	2015-03-17 08:19:32	info	notification server listening on port 3500
                  [sonos]	2015-03-17 08:19:32	info	relevant IPs 192.168.28.77=null
                  [sonos]	2015-03-17 08:19:32	info	discovering all IPs from eth0
                  [sonos]	2015-03-17 08:19:32	info	discovering all IPs from lo
                  sonos-0	2015-03-17 08:19:32	info	http sonos server listening on port 8083
                  [sonos]	2015-03-17 08:19:32	info	binding SSDP to port 1901
                  sonos-0	2015-03-17 08:19:32	info	starting. Version 0.1.5 in /mnt/ioBroker/iobroker.Pi2/node_modules/iobroker.sonos
                  	2015-03-17 08:19:28	info	info
                  [sonos]	2015-03-17 08:19:28	info	info
                  host-pi2	2015-03-17 08:19:27	info	instance system.adapter.sonos.0 started with pid 28274
                  sayit-0	2015-03-17 08:19:27	info	starting. Version 0.3.2 in /mnt/ioBroker/iobroker.Pi2/node_modules/iobroker.sayit
                  	2015-03-17 08:19:24	info	info
                  host-pi2	2015-03-17 08:19:25	info	instance system.adapter.sonos.0 terminated with code 0 (OK)
                  sonos-0	2015-03-17 08:19:25	info	terminating
                  sonos-0	2015-03-17 08:19:25	info	terminating
                  host-pi2	2015-03-17 08:19:25	info	stopInstance system.adapter.sonos.0 killing pid 28008
                  host-pi2	2015-03-17 08:19:25	info	stopInstance system.adapter.sonos.0
                  host-pi2	2015-03-17 08:19:25	info	object change system.adapter.sonos.0
                  host-pi2	2015-03-17 08:19:23	info	instance system.adapter.sayit.0 started with pid 28268
                  host-pi2	2015-03-17 08:19:21	info	instance system.adapter.sayit.0 terminated with code 0 (OK)
                  sayit-0	2015-03-17 08:19:21	info	terminating
                  host-pi2	2015-03-17 08:19:21	info	stopInstance system.adapter.sayit.0 killing pid 28095
                  host-pi2	2015-03-17 08:19:21	info	stopInstance system.adapter.sayit.0
                  host-pi2	2015-03-17 08:19:21	info	object change system.adapter.sayit.0
                  sayit-0	2015-03-17 08:16:46	info	starting. Version 0.3.2 in /mnt/ioBroker/iobroker.Pi2/node_modules/iobroker.sayit
                  	2015-03-17 08:16:44	info	info
                  host-pi2	2015-03-17 08:16:43	info	instance system.adapter.sayit.0 started with pid 28095
                  host-pi2	2015-03-17 08:16:41	info	instance system.adapter.sayit.0 terminated with code 0 (OK)
                  sayit-0	2015-03-17 08:16:41	info	terminating
                  host-pi2	2015-03-17 08:16:40	info	stopInstance system.adapter.sayit.0 killing pid 27985
                  host-pi2	2015-03-17 08:16:40	info	stopInstance system.adapter.sayit.0
                  host-pi2	2015-03-17 08:16:40	info	object change system.adapter.sayit.0
                  [sonos]	2015-03-17 08:15:28	info	emitting group-volume
                  [sonos]	2015-03-17 08:15:28	info	using local endpoint 192.168.28.77
                  [sonos]	2015-03-17 08:15:28	info	subscribing to topology 192.168.28.231
                  [sonos]	2015-03-17 08:15:28	info	scanning for players in ip 192.168.28.77
                  [sonos]	2015-03-17 08:15:28	info	notification server listening on port 3500
                  [sonos]	2015-03-17 08:15:28	info	relevant IPs 192.168.28.77=null
                  [sonos]	2015-03-17 08:15:28	info	discovering all IPs from eth0
                  [sonos]	2015-03-17 08:15:28	info	discovering all IPs from lo
                  sonos-0	2015-03-17 08:15:28	info	http sonos server listening on port 8083
                  [sonos]	2015-03-17 08:15:28	info	binding SSDP to port 1901
                  sonos-0	2015-03-17 08:15:28	info	starting. Version 0.1.5 in /mnt/ioBroker/iobroker.Pi2/node_modules/iobroker.sonos
                  	2015-03-17 08:15:24	info	info
                  [sonos]	2015-03-17 08:15:24	info	info
                  host-pi2	2015-03-17 08:15:23	info	instance system.adapter.sonos.0 started with pid 28008
                  host-pi2	2015-03-17 08:15:20	info	instance system.adapter.sonos.0 terminated with code 0 (OK)
                  sonos-0	2015-03-17 08:15:20	info	terminating
                  sonos-0	2015-03-17 08:15:20	info	terminating
                  host-pi2	2015-03-17 08:15:20	info	stopInstance system.adapter.sonos.0 killing pid 6197
                  host-pi2	2015-03-17 08:15:20	info	stopInstance system.adapter.sonos.0
                  

                  Es wird die Playliste gestartet

                  1 Reply Last reply Reply Quote 0
                  • Bluefox
                    Bluefox last edited by

                    Kann jetzt reproduzieren. Ich höre nie radio. Sondern spotify und Musik von QNAP.

                    Könnt ihr so eine queue machen und dann SayIt Probieren? Und ich werde weiter die Lösung suchen.
                    48_sonos.png
                    P.S. nicht vergessen iobroker.sonos neu starten.

                    1 Reply Last reply Reply Quote 0
                    • derAuge
                      derAuge last edited by

                      Hoffe ich habe es richtig verstanden.

                      Bei mir läuft auch eine Playliste
                      315_sonos-player.png

                      Ich stelle die Playliste am Lautsprecher oder per Software aus

                      Bei Bewegung im Flur schaltet SON=OS wieder auf Play. Der Text wird nict ausgegeben

                      sonos.0	2015-03-17 19:20:12	info	sonos.0 Set old track number 35
                      sonos.0	2015-03-17 19:20:12	info	sonos.0 Restore volume 28
                      sonos.0	2015-03-17 19:20:12	info	sonos.0 Restore state before TTS. Remove 118
                      sonos.0	2015-03-17 19:20:12	info	sonos.0 New sonos state: PAUSED_PLAYBACK, time elapsed - 13841
                      sonos.0	2015-03-17 19:20:00	info	sonos.0 New sonos state: PLAYING, time elapsed - 1946
                      sonos.0	2015-03-17 19:19:59	info	sonos.0 New sonos state: PLAYING, time elapsed - 966
                      sonos.0	2015-03-17 19:19:59	info	sonos.0 Send PLAY to (RINCON_B8E9378C56BC01400)
                      sonos.0	2015-03-17 19:19:58	info	sonos.0 addURIToQueue on end (RINCON_B8E9378C56BC01400):
                      sonos.0	2015-03-17 19:19:58	info	sonos.0 addURIToQueue (RINCON_B8E9378C56BC01400) :true
                      sonos.0	2015-03-17 19:19:58	info	sonos.0 Play on RINCON_B8E9378C56BC01400: http://192.168.28.77:8082/state/sayit.0.tts.mp3
                      sonos.0	2015-03-17 19:19:58	info	sonos.0 try to control id sonos.0.root.192_168_28_232.tts with {"val":"40;http://192.168.28.77:8082/state/sayit.0.tts.mp3","ack":false,"ts":1426616399,"from":"system.adapter.sayit.0","lc":1426528833}
                      sayit.0	2015-03-17 19:19:58	info	sayit.0 saying: de;40;Bewegung im Flur festgestellt
                      
                      
                      1 Reply Last reply Reply Quote 0
                      • derAuge
                        derAuge last edited by

                        PLAY:1: Esszimmer
                        Seriennummer: xx-xx-xx-xx-xx-xx:A
                        Version: 5.2 (Build 28183040)
                        Hardwareversion: 1.8.3.7-2
                        IP-Adresse: 192.168.xx.xxx
                        WM: 1
                        OTP: 
                        
                        1 Reply Last reply Reply Quote 0
                        • derAuge
                          derAuge last edited by

                          Heute morgen stellle ich folgendes fest:

                          Der Bewegungsmelder hat ausgelöst und das Licht eingeschaltet

                          Über das Script wurde die SONOS mit der gespeicherten Playliste gestartet.

                          Nach dem Ende das Liedes kam die Ansage und danach wurde die Playliste weiter gespielt.

                          Ich habe die Ansage gehört 🙂

                          Gruß

                          derAuge

                          1 Reply Last reply Reply Quote 0
                          • Bluefox
                            Bluefox last edited by

                            > Ich habe die Ansage gehört
                            Das ist schon mal gut. Das heißt, WEB link funktioniert, nur PLAY Befehl bleibt irgendwo.

                            Ich werde jetzt die Lösung für RADIO finden, vielleicht wird auch mit anderem Problem besser.

                            1 Reply Last reply Reply Quote 0
                            • derAuge
                              derAuge last edited by

                              Noch ein Hinweiß:

                              löscht man die Playliste, [keine Musikdatei] wird bei dem Raum auf der SONOS-Software angezeigt, dann wir die Ansage dauerhaft wiederholt

                              1 Reply Last reply Reply Quote 0
                              • ruhr70
                                ruhr70 last edited by

                                Sind noch Tests notwendig oder erst mit der nächsten Version?

                                1 Reply Last reply Reply Quote 0
                                • Bluefox
                                  Bluefox last edited by

                                  @ruhr70:

                                  Sind noch Tests notwendig oder erst mit der nächsten Version? `
                                  Erst nächste Version. Danke. Nur bitte Geduld haben. 😉

                                  1 Reply Last reply Reply Quote 0
                                  • Bluefox
                                    Bluefox last edited by

                                    Die Tests sind jetzt wieder notwendig. 🙂

                                    1 Reply Last reply Reply Quote 0
                                    • ruhr70
                                      ruhr70 last edited by

                                      Werde ich ausführlich durchführen. 🙂

                                      Gesendet von iPad mit Tapatalk

                                      1 Reply Last reply Reply Quote 0
                                      • ruhr70
                                        ruhr70 last edited by

                                        @Bluefox:

                                        Die Tests sind jetzt wieder notwendig. 🙂 `

                                        Kurz: Das Ergebnis ist so, dass es für mich super ist! Danke! 🙂

                                        Der Vollständigkeit halber: Es gibt noch ein paar Unstimmigkeiten, die mir aufgefallen sind.

                                        Getestet habe ich nicht mit dem Workaroundscript (wg. mehrfacher Wiederholung) sondern mit folgenden einfachen Script:

                                        var idSayIt            = "sayit.1.tts.text"; // Hier die entsprechende SayIt Text ID
                                        var idButton         = "hm-rpc.0.FEQ0060867.1.STATE"; // Test 
                                        
                                        // Bei Tastendruck wird folgender Text gesprochen
                                        subscribe({id: idButton, val: true}, function (obj) {
                                             setState (idSayIt, "de;60;Dies ist nur ein kleiner Text, lalalala. Ein Test hurra.");
                                        });
                                        

                                        OK:

                                        • Lautstärke wurde wieder korrekt zurückgespielt

                                        • Playlisten (aktiv oder Pause): Es wird wieder der letzte Titel eingestellt

                                        • keine Playlist: alles OK

                                        • Gruppe mit Playliste (oder nichts): bestehende Gruppe bleibt so bestehen.

                                        • bei Sonos werden die Ansagen sehr zeitnah abgespielt 🙂

                                        Nicht OK:

                                        Beim Radio verhält sich der Adapter noch nicht ganz logisch (ist aber aus meiner Sicht OK) und mit dem Script oben werden Ansagen manchmal doppelt abgespielt:

                                        • bestehende Gruppen werden aufgelöst

                                        • nach der Ansage steht das mp3 in der Playlist und nicht der Radiosender

                                        (egal, ob das Radio aktiv war oder auf Pause)

                                        • ist das Radio aktiv, wird die Ansage 2x abgespielt

                                        (pausiert das Radio wird die Ansage 1x abgespielt)

                                        So meine Notizen… konnte nicht ganz systematisch testen (Baby wuselt um mich herum g).

                                        [EDIT]

                                        Anbei noch ein paar Fehlermeldungen aus dem Log:

                                        [sonos] 2015-03-26 14:03:36 error subscribe failed uuid:RINCON_000E58507F7801400_sub0000000199 /MediaRenderer/RenderingControl/Event 412

                                        [sonos] 2015-03-26 14:03:35 info emitting group-volume

                                        [sonos] 2015-03-26 14:03:35 error subscribe failed uuid:RINCON_000E58507F7801400_sub0000000201 /MediaRenderer/AVTransport/Event 412

                                        [sonos] 2015-03-26 14:03:35 error subscribe failed uuid:RINCON_000E58507F7801400_sub0000000202 /MediaRenderer/GroupRenderingControl/Event 412

                                        [sonos] 2015-03-26 14:03:34 error subscribe failed uuid:RINCON_000E58507F7801400_sub0000000200 /MediaServer/ContentDirectory/Event 412

                                        [sonos] 2015-03-26 14:03:30 error subscribe failed uuid:RINCON_000E582492A001400_sub0000000202 /MediaRenderer/AVTransport/Event 412

                                        [sonos] 2015-03-26 14:03:30 error subscribe failed uuid:RINCON_000E582492A001400_sub0000000204 /MediaRenderer/GroupRenderingControl/Event 412

                                        [sonos] 2015-03-26 14:03:30 error subscribe failed uuid:RINCON_000E582492A001400_sub0000000205 /MediaServer/ContentDirectory/Event 412

                                        [sonos] 2015-03-26 14:03:30 error subscribe failed! undefined 412

                                        [sonos] 2015-03-26 14:03:30 error subscribe failed uuid:RINCON_000E582492A001400_sub0000000203 /MediaRenderer/RenderingControl/Event 412

                                        1 Reply Last reply Reply Quote 0
                                        • P
                                          pix last edited by

                                          Hallo,

                                          ich hole den Thread noch mal hoch.

                                          Ich höre über SONOS ein Napster Album. Wenn ich das Objekt sayit.0.tts.text fülle, wird die Musik unterbrochen und der Text gesprochen. Danach startet das unterbrochene Lied von vorn. Wenn das Lied zu Ende ist, stoppt die Musikwiedergabe und es bleibt still. Im Sonos Client steht dann so etwas: Aktueller Titel npsdy:Tra.187934843.mp3?sn=1

                                          Wenn ich eine SONOS Liste abspiele verhält es sich genauso. Was mache ich, damit die Liste weiter abgespielt wird?

                                          @ruhr70:

                                          • nach der Ansage steht das mp3 in der Playlist und nicht der Radiosender

                                          (egal, ob das Radio aktiv war oder auf Pause)

                                          • ist das Radio aktiv, wird die Ansage 2x abgespielt

                                          (pausiert das Radio wird die Ansage 1x abgespielt) `
                                          Ist ja ganz ähnlich zu meinen Schwierigkeiten. Hast du alle Fehler beseitigen können? Nutzt du für jede Ansage den Workaround?

                                          Gruß

                                          Pix

                                          1 Reply Last reply Reply Quote 0
                                          • ruhr70
                                            ruhr70 last edited by

                                            das ist immer noch der letzte Stand (Dein Zitat).

                                            aktuell habe ich die Ansagen wg. dem WAF ganz deaktiviert (waren zu viele). will das aber auf jeden Fall wieder nutzen. Dann mit weniger und intelligenteren Ansagen.

                                            hab gehofft, dass die letzten Fehler bis dahin aus dem Adapter raus sind 😉

                                            Gesendet von iPhone mit Tapatalk

                                            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

                                            955
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            22
                                            79
                                            15646
                                            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