Ankündigung

Einklappen
Keine Ankündigung bisher.

Sonos Anbindung

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    #61
    hmm...

    müssten da nicht die clients aufgelistet werden mit:
    http://192.168.0.11:12900/client/list

    bei mir kommt: Couldn't list speakers

    Vor ein paar Tagen hats noch funktioniert, bevor ich das install-script verwendet habe..

    Edit:
    die Fehler meldung besagt: 'Command' object has no attribute 'get_speakers'

    Kommentar


      #62
      So, hot fix sozusagen noch am abend. Version 0.1.3 steht im master/develop online. Package-Name ist angepasst und funktioniert nun. Ich habe das ganze auf einer frischen Installation getestet und konnte den Fehler nachvollziehen. Mit der neuen Version tritt es nicht mehr auf. Bitte nochmal beachten: mit

      Code:
      sudo [B]python3 [/B]setup.py install
      installieren. Ich hatte nur python genommen und habe 30min rumgesucht ^^

      Zitat von buffi Beitrag anzeigen
      hmm...

      müssten da nicht die clients aufgelistet werden mit:
      http://192.168.0.11:12900/client/list

      bei mir kommt: Couldn't list speakers

      Vor ein paar Tagen hats noch funktioniert, bevor ich das install-script verwendet habe..

      Edit:
      die Fehler meldung besagt: 'Command' object has no attribute 'get_speakers'

      Danke für den Bug-Report. Hatte was geändert und da noch einen falschen Verweis auf eine Klasse gehabt. Ist im 0.1.3 gefixt.

      Danke für euer Feedback.
      Sonos

      Kommentar


        #63
        v0.1.4

        Abend,

        ein kleines Sonos-Update steht wieder an:


        v0.1.4 Sonos-Broker:

        • 'Next' und 'Previous'-Kommandos sind hinzugefügt
        • Update der SoCo-Library
        • kleinere Bugfixes

        Link zum aktuellen Developer-Release



        v0.2 Sonos-sh-Plugin:
        • Kommandos 'Next' und 'Previous' hinzugefügt


        Das Sonos-Plugin für Smarthome.py befindet sich bereits upgedatet im developer-Branch von sh.py oder per Download abrufbar über den obigen Link.

        Ich werde ab sofort nur noch den Developer-Branch vom Sonos-Broker updaten und im Monats-Rythmus den Master abgleichen. Das Plugin für sh.py pflege ich bis auf weiteres in meinem Github-Projekt, sowie im Dev-Zweig von Smarthome.py.


        Was kommt als nächstes:
        • Zonenfunktionalität
        • Playlist-Verwaltung


        Leider muss ich noch einen zweiten Sonos-Player besorgen, um die Zonen zu testen. Jeder der bereits zwei Player besitzt, ist hiermit aufgerufen, am Projekt mitzuentwickeln :-)

        Grüße,

        Stefan
        Sonos

        Kommentar


          #64
          Hi,

          ich habe mehrere Zonen, ich kann das dann testen.

          Ich habe aber grad noch ein Problem, bei mir werden die item's play/stop nicht geupdatet. d.H.
          ein sonos.kueche.stop(1) ändert den Wert sonos.kueche.play nicht auf False

          Code:
           does not match type bool. Via Sonos      Item sonos.kueche.stop: value 1                                                                                                                                                                                                       
           does not match type bool. Via Sonos      Item sonos.kueche.play: value 0                                                                                                                                                                                                       
          2014-02-10 17:09:25 WARNING  Sonos        Sonos: Could not send message 192.168.0.11:12900 speaker/rincon_000e58a488ce01400/stop/set/1 - 400 Bad request                                                                                                                        
           does not match type bool. Via Sonos      Item sonos.bastel.stop: value 1                                                                                                                                                                                                       
           does not match type bool. Via Sonos      Item sonos.bastel.play: value 0                                                                                                                                                                                                       
          2014-02-10 17:09:25 WARNING  Sonos        Sonos: Could not send message 192.168.0.11:12900 speaker/rincon_123e5886437201400/stop/set/1 - 400 Bad request                                                                                                                        
          2014-02-10 17:09:25 INFO     Sonos        Sonos aus                                                                                                                                                                                                                             
           does not match type bool. Via Sonos      Item sonos.kueche.stop: value 1                                                                                                                                                                                                       
           does not match type bool. Via Sonos      Item sonos.kueche.play: value 0                                                                                                                                                                                                       
          2014-02-10 17:10:15 WARNING  Sonos        Sonos: Could not send message 192.168.0.11:12900 speaker/rincon_000e58a488ce01400/stop/set/1 - 400 Bad request                                                                                                                        
           does not match type bool. Via Sonos      Item sonos.bastel.stop: value 1                                                                                                                                                                                                       
           does not match type bool. Via Sonos      Item sonos.bastel.play: value 0                                                                                                                                                                                                       
          2014-02-10 17:10:15 WARNING  Sonos        Sonos: Could not send message 192.168.0.11:12900 speaker/rincon_123e5886437201400
          - Zudem würde ich es noch sehr Hilfreich finden, wenn in der play_uri, jeweils die aktuell abspielende URL angezeigt werden würde.
          - Track_duration scheint auch keine Updates zu bekommen

          broker und plugin sind noch auf dem letzen Release

          gruss Buffi

          Kommentar


            #65
            Zitat von buffi Beitrag anzeigen
            Hi,

            ich habe mehrere Zonen, ich kann das dann testen.

            Ich habe aber grad noch ein Problem, bei mir werden die item's play/stop nicht geupdatet. d.H.
            ein sonos.kueche.stop(1) ändert den Wert sonos.kueche.play nicht auf False

            Code:
             does not match type bool. Via Sonos      Item sonos.kueche.stop: value 1                                                                                                                                                                                                       
             does not match type bool. Via Sonos      Item sonos.kueche.play: value 0                                                                                                                                                                                                       
            2014-02-10 17:09:25 WARNING  Sonos        Sonos: Could not send message 192.168.0.11:12900 speaker/rincon_000e58a488ce01400/stop/set/1 - 400 Bad request                                                                                                                        
             does not match type bool. Via Sonos      Item sonos.bastel.stop: value 1                                                                                                                                                                                                       
             does not match type bool. Via Sonos      Item sonos.bastel.play: value 0                                                                                                                                                                                                       
            2014-02-10 17:09:25 WARNING  Sonos        Sonos: Could not send message 192.168.0.11:12900 speaker/rincon_123e5886437201400/stop/set/1 - 400 Bad request                                                                                                                        
            2014-02-10 17:09:25 INFO     Sonos        Sonos aus                                                                                                                                                                                                                             
             does not match type bool. Via Sonos      Item sonos.kueche.stop: value 1                                                                                                                                                                                                       
             does not match type bool. Via Sonos      Item sonos.kueche.play: value 0                                                                                                                                                                                                       
            2014-02-10 17:10:15 WARNING  Sonos        Sonos: Could not send message 192.168.0.11:12900 speaker/rincon_000e58a488ce01400/stop/set/1 - 400 Bad request                                                                                                                        
             does not match type bool. Via Sonos      Item sonos.bastel.stop: value 1                                                                                                                                                                                                       
             does not match type bool. Via Sonos      Item sonos.bastel.play: value 0                                                                                                                                                                                                       
            2014-02-10 17:10:15 WARNING  Sonos        Sonos: Could not send message 192.168.0.11:12900 speaker/rincon_123e5886437201400
            - Zudem würde ich es noch sehr Hilfreich finden, wenn in der play_uri, jeweils die aktuell abspielende URL angezeigt werden würde.
            - Track_duration scheint auch keine Updates zu bekommen

            broker und plugin sind noch auf dem letzen Release

            gruss Buffi
            Laut deinem Log scheint der Server nicht richtig zu laufen. 400 Bad Request darf nicht sein. Ist der Server gestartet? Mach mal bitte ein "ps aux" in der Konsole und poste das Log.

            Gesendet von meinem GT-N7000 mit Tapatalk
            Sonos

            Kommentar


              #66
              Der bad request rührt daher, dass die eine zone(n) nicht am strom hängt.

              admin@smarthome:/usr/smarthome$ ps -ef | grep sonos
              admin 15845 1 0 11:32 ? 00:01:52 python3 /usr/shSonos/server.sonos/sonos_broker

              Gruss buffi

              Kommentar


                #67
                Sonos Anbindung

                Ich werde das dann gleich nochmal testen. Kannst du eventuell den einen Player temporär raus nehmen, so das nur noch ein Speaker drin ist? Dann ist das Log übersichtlicher und wir können ausschließen, dass es sich um Eigenheiten von Zonen handelt (bei Zonen muss man vorher den Speaker finden, der die Zone steuert, was im Moment noch nicht implementiert ist). Bitte poste auch nochmal deine conf-Datei, wo der Speaker bei dir konfiguriert ist (innerhalb von sh.py).

                Danke,

                Stefan


                Gesendet von meinem iPad mit Tapatalk
                Sonos

                Kommentar


                  #68
                  Sonos Anbindung

                  Erster Test: funktioniert alles so, wie es soll. Damit wir den gleichen Stand haben: ich benutze den Sonos-Server v0.1.4 aus dem dev-Branch, sowie das aktuellste Plugin(ist im dev von sh.py, v0.2)

                  Meine Vermutung ist, das sich das sh-Plugin nicht am Sonos-Server registriert hat. Eigentlich sollte das Plugin das gleich am Start machen (Server muss laufen) oder dann alle zwei Minuten, falls der Server später gestartet wurde als das Plugin.


                  Gesendet von meinem iPad mit Tapatalk
                  Sonos

                  Kommentar


                    #69
                    Hallo.
                    Habe jetzt den Server neu gestartet und anschliessend sh.py. In der conf-Datei habe ich nun nur die Zonen drinn, welche auch Strom haben. (Die conf-Datei ist noch die von dir vom letzten Release, ohne prev/next - Item)

                    gruss Buffi


                    Clients:
                    Code:
                    uid   : rincon_000e5886437201400
                    ip    : 192.168.0.160
                    model : ZPS5
                    -------------------------------------------
                    uid   : rincon_000e58a488ce01400
                    ip    : 192.168.0.151
                    model : ZP90
                    -------------------------------------------
                    uid   : rincon_000e588645e201400
                    ip    : 192.168.0.133
                    model : ZPS5
                    -------------------------------------------
                    sonos.conf
                    Code:
                    [sonos]
                        [[wohnen]]
                            sonos_uid = RINCON_000e58a488ce01400
                            [[[mute]]]
                                    type = bool
                                    enforce_updates = True
                                    sonos_recv = speaker/<sonos_uid>/mute
                                    sonos_send = speaker/<sonos_uid>/mute/set/{}
                                    sonos_init = speaker/<sonos_uid>/mute
                    
                            [[[led]]]
                                    type = bool
                                    enforce_updates = True
                                    sonos_recv = speaker/<sonos_uid>/led
                                    sonos_send = speaker/<sonos_uid>/led/set/{}
                                    sonos_init = speaker/<sonos_uid>/led
                    
                            [[[volume]]]
                                    type = num
                                    enforce_updates = True
                                    sonos_recv = speaker/<sonos_uid>/volume
                                    sonos_send = speaker/<sonos_uid>/volume/set/{}
                                    sonos_init = speaker/<sonos_uid>/volume
                    
                            [[[stop]]]
                                    type = bool
                                    enforce_updates = True
                                    sonos_recv = speaker/<sonos_uid>/stop
                                    sonos_send = speaker/<sonos_uid>/stop/set/{}
                                    sonos_init = speaker/<sonos_uid>/stop
                    
                            [[[play]]]
                                    type = bool
                                    enforce_updates = True
                                    sonos_recv = speaker/<sonos_uid>/play
                                    sonos_send = speaker/<sonos_uid>/play/set/{}
                                    sonos_init = speaker/<sonos_uid>/play
                    
                    ....
                    
                        [[kueche]]
                            sonos_uid = RINCON_000e5886437201400
                            [[[mute]]]
                                    type = bool
                    ....
                    
                        [[bastel]]
                            sonos_uid = RINCON_000e588645e201400
                            [[[mute]]]
                                    type = bool
                    ....
                    Server:
                    Code:
                    admin@smarthome:/usr/shSonos/server.sonos$ head CHANGES.txt
                    v0.1.4  2014-02-09
                    
                    -- added command 'next'
                    -- added command 'previous'
                    
                    v0.1.3  2014-02-02
                    
                    -- changed package name from lib to lib_sonos due to incompatibility to smarthome.py
                    -- fixed small issue in command get_clients
                    
                    admin@smarthome:/usr/shSonos/server.sonos$ ./sonos_broker.sh restart
                    [ ok ] Stopping system sonosbroker daemon:.
                    [....] Starting system sonosbroker daemon:Starting /usr/shSonos/server.sonos/sonos_broker...
                    Detaching to start /usr/shSonos/server.sonos/sonos_broker...done.
                    . ok
                    smarthome:

                    Code:
                    admin@smarthome:/usr/smarthome/plugins/sonos$ head README.md
                    This is the subproject 'plugin.sonos' for the Smarthome.py framework (https://github.com/mknx/smarthome).
                    The plugin is designed to control the sonos speakers in connection with the sonos server.
                    
                    
                    0. Release
                    -----------------------------
                      v0.2    2014-02-10
                        -- command 'next' and 'previous' added
                    
                      v0.1    2014-01-28
                    admin@smarthome:/usr/smarthome/plugins/sonos$ sudo /etc/init.d/smarthome.py restart
                    Restarting SmartHome.py smarthome.py
                    admin@smarthome:/usr/smarthome/plugins/var/log/smarthome.log
                    2014-02-11 20:59:27 INFO     Main         Number of Threads: 9
                    2014-02-11 20:59:27 INFO     Main         Stop Plugins
                    2014-02-11 20:59:29 INFO     Thread-9     Whatsapp: Disconnected because Shutting SH down....
                    2014-02-11 20:59:30 INFO     Main         Thread: Main, still alive
                    2014-02-11 20:59:30 INFO     Main         Thread: Thread-10, still alive
                    Init SmartHome.py 0.9-668-gc1526f1+
                    2014-02-11 20:59:34 INFO     Main         Start SmartHome.py 0.9-668-gc1526f1+
                    2014-02-11 20:59:34 INFO     Main         Init Scheduler
                    2014-02-11 20:59:34 INFO     Main         Init Plugins
                    2014-02-11 20:59:38 INFO     Thread-8     Whatsapp: Authed xxxxxxxxxx
                    2014-02-11 20:59:38 INFO     Main         Init Items
                    2014-02-11 20:59:45 INFO     Main         Items: 317
                    2014-02-11 20:59:45 INFO     Main         Start Plugins
                    2014-02-11 20:59:45 INFO     Main         Start Logics
                    2014-02-11 20:59:45 INFO     sonos        Sonos: Message 192.168.0.11:12900 client/subscribe/9999 successfully sent - 200 OK
                    2014-02-11 20:59:45 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e58a488ce01400/mute successfully sent - 200 OK
                    2014-02-11 20:59:45 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e58a488ce01400/led successfully sent - 200 OK
                    2014-02-11 20:59:45 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e58a488ce01400/volume successfully sent - 200 OK
                    2014-02-11 20:59:45 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e58a488ce01400/stop successfully sent - 200 OK
                    2014-02-11 20:59:45 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e58a488ce01400/play successfully sent - 200 OK
                    2014-02-11 20:59:45 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e58a488ce01400/pause successfully sent - 200 OK
                    2014-02-11 20:59:45 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e58a488ce01400/track successfully sent - 200 OK
                    2014-02-11 20:59:46 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e58a488ce01400/track_position successfully sent - 200 OK
                    2014-02-11 20:59:46 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e58a488ce01400/track_duration successfully sent - 200 OK
                    2014-02-11 20:59:46 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e58a488ce01400/artist successfully sent - 200 OK
                    2014-02-11 20:59:46 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e58a488ce01400/streamtype successfully sent - 200 OK
                    2014-02-11 20:59:46 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e5886437201400/mute successfully sent - 200 OK
                    2014-02-11 20:59:46 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e5886437201400/led successfully sent - 200 OK
                    2014-02-11 20:59:46 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e5886437201400/volume successfully sent - 200 OK
                    2014-02-11 20:59:46 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e5886437201400/stop successfully sent - 200 OK
                    2014-02-11 20:59:46 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e5886437201400/play successfully sent - 200 OK
                    2014-02-11 20:59:46 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e5886437201400/pause successfully sent - 200 OK
                    2014-02-11 20:59:47 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e5886437201400/track successfully sent - 200 OK
                    2014-02-11 20:59:47 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e5886437201400/track_position successfully sent - 200 OK
                    2014-02-11 20:59:47 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e5886437201400/track_duration successfully sent - 200 OK
                     does not match type bool. Via Sonos      Item sonos.wohnen.stop: value 1
                     does not match type bool. Via Sonos      Item sonos.wohnen.play: value 0
                    2014-02-11 20:59:47 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e5886437201400/artist successfully sent - 200 OK
                    2014-02-11 20:59:47 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e5886437201400/streamtype successfully sent - 200 OK
                    2014-02-11 20:59:47 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e588645e201400/mute successfully sent - 200 OK
                    2014-02-11 20:59:48 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e588645e201400/led successfully sent - 200 OK
                     does not match type bool. Via Sonos      Item sonos.wohnen.stop: value 1
                     does not match type bool. Via Sonos      Item sonos.wohnen.play: value 0
                    2014-02-11 20:59:48 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e588645e201400/volume successfully sent - 200 OK
                    2014-02-11 20:59:48 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e588645e201400/stop successfully sent - 200 OK
                    2014-02-11 20:59:48 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e588645e201400/play successfully sent - 200 OK
                     does not match type bool. Via Sonos      Item sonos.kueche.stop: value 1
                    2014-02-11 20:59:48 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e588645e201400/pause successfully sent - 200 OK
                     does not match type bool. Via Sonos      Item sonos.kueche.play: value 0
                     does not match type bool. Via Sonos      Item sonos.kueche.stop: value 1
                     does not match type bool. Via Sonos      Item sonos.kueche.play: value 0
                    2014-02-11 20:59:48 WARNING  sonos        Sonos: Could not send message 192.168.0.11:12900 speaker/rincon_000e588645e201400/track - 400 Bad request
                     does not match type bool. Via Sonos      Item sonos.bastel.stop: value 1
                     does not match type bool. Via Sonos      Item sonos.bastel.play: value 0
                    2014-02-11 20:59:48 WARNING  sonos        Sonos: Could not send message 192.168.0.11:12900 speaker/rincon_000e588645e201400/track_position - 400 Bad request
                     does not match type bool. Via Sonos      Item sonos.bastel.stop: value 1
                     does not match type bool. Via Sonos      Item sonos.bastel.play: value 0
                    2014-02-11 20:59:48 WARNING  sonos        Sonos: Could not send message 192.168.0.11:12900 speaker/rincon_000e588645e201400/track_duration - 400 Bad request
                    2014-02-11 20:59:48 WARNING  sonos        Sonos: Could not send message 192.168.0.11:12900 speaker/rincon_000e588645e201400/artist - 400 Bad request
                    2014-02-11 20:59:48 INFO     sonos        Sonos: Message 192.168.0.11:12900 speaker/rincon_000e588645e201400/streamtype successfully sent - 200 OK

                    Kommentar


                      #70
                      Sonos Anbindung

                      Schon mal danke für die Reports. Was ich im Moment darstellen kann ist ein Speaker, und der funktioniert so wie es soll. Ich kann mir aber durchaus vorstellen, das noch ein Bug drin ist, wenn mehrere Speaker Zu behandeln sind. Kannst du mal zum Test nur ein Speaker konfigurieren (in der Sonos-Conf und Strom weg) und schauen, ob alles soweit funktioniert?

                      Achja, die eigentliche Funktionalität(also Stop, Pause, play etc) wird unabhängig vom Aktualisieren korrekt beim Speaker ausgeführt?


                      Gesendet von meinem iPad mit Tapatalk
                      Sonos

                      Kommentar


                        #71
                        Sonos Anbindung

                        Was mir auch noch auffällt: hast du die Anfragen, in denen die 400 Bad Request ausgelöst würden (also z.b. Track, Track_position per cli selbst getriggert? Diese Werte sind eigentlich readonly und werden nicht vom Plugin selbst ausgelöst. Wenn du das per cli händisch versuchst, gibt es ein 400 Bad Request vom Server, da dieser kein 'Set'-Kommando dafür kennt.


                        Edit: Ok, vergiss Punkt 1. Wird durch ein get-Request getriggert. Der eine Speaker hat wahrscheinlich kein Titel geladen, deshalb ein 400, weil es keine Werte gibt. Ist also normal.

                        Zum Update-Problem:

                        Ich teste das Plugin im Moment wie folgt:

                        "cli" in sh.py starten

                        Werte wie folgt setzen:

                        up kueche.stop = 1

                        Ein "la" müsste jetzt "kueche.play = 0" anzeigen ( und vice versa)
                        Sonos

                        Kommentar


                          #72
                          Ich kann alle Zonen einzeln ansteuern. Das funktioniert soweit.

                          - play_uri funktioniert.
                          - play funktioniert
                          - stop funktioniert

                          bei play/stop wird jedoch nur das direkt angesprochene Item aktualisiert und das indirekt betroffene eben nicht. Also z.B im Cli

                          up sonos.kueche.stop = 1
                          - stop auf 1 -> OK
                          - play bleibt auf 1 -> NOK

                          ich denke es hat mit dem zu tun:
                          does not match type bool. Via Sonos Item sonos.kueche.stop: value 1
                          does not match type bool. Via Sonos Item sonos.kueche.play: value 0

                          gruss Buffi

                          Kommentar


                            #73
                            Warum überhaupt zwei Items dafür? Wenn Play 0 ist, wird nichts gespielt, bei 1 ist die Wiedergabe aktiv. Ein Stop Item ist eine redundante Information, die nicht notwendig ist. Außerdem ist es so schwieriger, das ins KNX zu integrieren. Ein Taster oder ein Automatikschalter toggeln normalerweise eine GA. Eine 1 auf eine GA bei Erkennung und eine 1 auf eine andere GA bei Ende der Nachlaufzeit ist eher unüblich (wenn das überhaupt einer kann).
                            Mit freundlichen Grüßen
                            Niko Will

                            Logiken und Schnittstelle zu anderen Systemen: smarthome.py - Visualisierung: smartVISU
                            - Gira TS3 - iPhone & iPad - Mobotix T24 - ekey - Denon 2313 - Russound C5 (RIO over TCP Plugin) -

                            Kommentar


                              #74
                              Eigentlich bilde ich damit nur eins zu eins die Sonos-Funktionalitaet nach. "Getoggelt" wird es serverseitig, die Werte werden entsprechend an das Plugin geliefert. Man muss also nicht alle Items implementieren. Ein Play-Toggle bei den Sonos-Speakern toggelt zwischen Play und Pause, ein Stop setzt das Musikstueck zurück auf den Anfang und beendet die Wiedergabe.
                              Aber wie gesagt, der Sonos-Broker toggelt die Zustaende, d.h. ein Play löst gleichzeitig den invertierten Wert für Pause und umgekehrt aus. Tatsächlich könnte man hier die Pause-Funktion entfernen.

                              Gesendet von meinem GT-N7000 mit Tapatalk
                              Sonos

                              Kommentar


                                #75
                                .
                                Zitat von buffi Beitrag anzeigen
                                Ich kann alle Zonen einzeln ansteuern. Das funktioniert soweit.

                                - play_uri funktioniert.
                                - play funktioniert
                                - stop funktioniert

                                bei play/stop wird jedoch nur das direkt angesprochene Item aktualisiert und das indirekt betroffene eben nicht. Also z.B im Cli

                                up sonos.kueche.stop = 1
                                - stop auf 1 -> OK
                                - play bleibt auf 1 -> NOK

                                ich denke es hat mit dem zu tun:
                                does not match type bool. Via Sonos Item sonos.kueche.stop: value 1
                                does not match type bool. Via Sonos Item sonos.kueche.play: value 0

                                gruss Buffi
                                Hallo Buffi, die Warnmeldungen sind normal (auch bei mir vorhanden). Intern wird der Wert als bool verarbeitet. Ich habs nochmal durchgetestet, bei mir wird alles korrekt verarbeitet.
                                Um den Fehler noch konkreter einzukreisen: wenn du an dem Speaker per Button den Zustand play/pause toggelst, ändern sich dann die Werte korrekt? Was für ein Speaker-Typ ist der Sonos in der Küche? Tritt der gleiche Effekt mit einem deiner anderen Speaker auf? Hast du nur das Problem bei Play/Stop oder auch zB. bei den Werten für Artist/Track etc?

                                Hat noch jemand das gleiche Problem mit dem Aktualisieren?

                                Edit: Hab gerade hier in der S-Bahn nochmal per Handy den Quellcode durchgeschaut. Ich habe tatsächlich was gefunden. Dies betrifft das Pause-Kommando. Da wird wahrscheinlich eine Exception geworfen und der Status nicht richtig zurückgegeben. Die Stop- und Play-Kommandos sehen korrekt aus. Werde ich dann gleich updaten.

                                Gesendet von meinem GT-N7000 mit Tapatalk
                                Sonos

                                Kommentar

                                Lädt...
                                X