Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sonos
#31
With the playbar, how d I know when I am listening to TV and when I am playing music?
|Z-Wave|Sonos|Tivo|Hue|Plex|Roku|MyMovies|Echo|
Nest|Harmony|Neeo|LG TV|Smarthings|
Reply
#32
the avtransporturi is your source. change between different things and you can see it change along with them.
do the needful ...
Hue | Sonos | Harmony | Elk M1G // Netatmo / Brultech
Reply
#33
jkmonroe is too powerful. I bought a Play1 and Play5. The force is weakening...

I spent a day trying to figure out all the Sonos hacks out there. Also, thanks batwater for the echo-sonos link. I'll look into that. Also, to my surprise it looks like each sonos speaker is a separate ZP driver in CQC... hopefully this isn't a problem.
--Kill all the serial ports--
Reply
#34
Each one is a separate UPnP media renderer. You will just need a driver per zone player.
Dean Roddey
Explorans limites defectum
Reply
#35
bbrendon Wrote:jkmonroe is too powerful. I bought a Play1 and Play5. The force is weakening...

I spent a day trying to figure out all the Sonos hacks out there. Also, thanks batwater for the echo-sonos link. I'll look into that.

Here's another one that links to EventGhost Amazon Echo Skill EchoToEG, might give you some ideas. I'm looking at this to bridge my Android devices via AutoRemote.
Reply
#36
bbrendon Wrote:jkmonroe is too powerful. I bought a Play1 and Play5. The force is weakening...

[Image: 004a044e1927a979dbf090ba6532389438170816...3e244a.jpg]
do the needful ...
Hue | Sonos | Harmony | Elk M1G // Netatmo / Brultech
Reply
#37
Sonos saga continues....

I'm trying to use Sonos for my computer speakers... which has actually been working very well. BUT.

As soon as I finish watching a youtube video (or whatever else), the music doesn't continue!! This is criminal. Anyone else have this problem? I've been dreaming up a way to CML around it... but haven't yet.
--Kill all the serial ports--
Reply
#38
Well, this works. Mostly. It's too simple, but actually worked for basic tests. My music resumed after watching a viral video. Good use of an event monitor I hope. It relies on another Sonos device to be the group master.

Code:
Class=[NonFinal]
    ClassPath MEng.User.eventSonos;
    ParentClass MEng.System.CQC.Runtime.EvMonBase;
EndClass;

Imports=
    MEng.System.CQC.Runtime.SimpleFldClient;
EndImports;

Types=
    Enum=e_Field
        PlayMode : "PlayMode";
        IsLocalGroup : "IsLocalGroup";
    EndEnum;

EndTypes;

Members=
    SimpleFldClient m_FldIO;
    Time        m_Time;
EndMembers;

Methods=[Public,Overrides,Final]

    Method FieldChanged([In]    String  Mon
                        , [In]  String  Field
                        , [In]  String  Value
                        , [In]  Boolean GoodVal) Begin
        Locals=
            Card4 tmp;
            e_Field  eField;
        EndLocals;

        If (GoodVal = False)
            Return;
        EndIf;

        LogMsg2("Field %(1).%(2) changed", Mon, Field);
        LogMsg2("     Val:%(1)     GoodVal:%(2)", Value, GoodVal);

        eField.FromText(Field);

        Switch(eField)

            Case e_Field.IsLocalGroup :
                LogMsg("IsLocalGroup");
            EndCase;
            Case e_Field.PlayMode :
                If (Value = "Pause")
                    m_FldIO.WriteStringField("sonosOffice", "InvokeCmd", "GroupTo:sonosKitchen");    
                EndIf;
            EndCase;

            Default :
            EndCase;
        EndSwitch;


    EndMethod;

    
    Method Idle() Begin
        //LogMsg("Idle");
    EndMethod;


    Method Initialize([In] EvMonStrList Params) Returns Boolean Begin
        Locals=
            EvMonStrList Fields;
        EndLocals;

        Fields.AddObject("sonosOffice.PlayMode");
        Fields.AddObject("sonosOffice.IsLocalGroup");

        SetFieldList(Fields);

        Return True;
    EndMethod;

    Method LoadConfig() Returns Boolean Begin
        Return True;
    EndMethod;

    Method Terminate() Begin
    EndMethod;

EndMethods;

Methods=[Public,Final]

    Constructor()
    Begin
    EndConstructor;

    // Only for debugging in the IDE
    Method Start() Returns Int4
    Begin
        Simulate("Sample Event Mon", "", $CurClassName);
        Return 0;
    EndMethod;

EndMethods;
--Kill all the serial ports--
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  SONOS and Grouping gReatAutomation 6 1,968 04-16-2020, 10:49 PM
Last Post: kblagron
  Sonos media success simplextech 0 789 01-07-2020, 07:52 PM
Last Post: simplextech
  Use TTS with Sonos (not Play:5) IVB 7 4,116 01-20-2018, 10:27 PM
Last Post: potts.mike
  Another big Sonos update coming Dean Roddey 7 4,305 01-18-2018, 04:45 AM
Last Post: batwater
  Sonos Favourites Query NightLight 17 13,430 03-30-2017, 07:15 PM
Last Post: DaveB
  Playing Sonos Favourites fails with & symbols in the name NightLight 3 3,350 01-01-2017, 08:23 PM
Last Post: Dean Roddey
  sonos and podcasts jkmonroe 6 5,178 05-01-2016, 02:08 PM
Last Post: bbrendon
  Sonos - Again jkmonroe 30 14,094 06-23-2015, 03:26 PM
Last Post: jkmonroe
  How to disable the Sonos transmitters Dean Roddey 1 2,436 10-27-2014, 07:09 AM
Last Post: ControlFreak
  Linking Sonos senddrvcmd to upb link rtarver 5 3,942 08-17-2014, 09:35 PM
Last Post: bbrendon

Forum Jump:


Users browsing this thread: 1 Guest(s)