Announcement

Collapse
No announcement yet.

Chromecast Plug-in - Beta Testing

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #46
    Originally posted by spud View Post
    I have added this in version 3.0.0.2.
    The audio file MUST be somewhere under your html directory.
    Thanks for adding this, Spud. It will be quite a lot of work for me to edit the path on all my speak events so I'm still pondering whether using the Chromecast for speak events will be worth the work. I'm curious why the html directory is a requirement, as speaker.exe and Sonos speak clients play mp3 files fine from the "<HS3 root>\Media" directory. And I believe your AirplaySpeak plugin also works without the html directory requirement. Just curious what's different?

    Comment


      #47
      Love this plugin! Been testing it for a couple of days now and it looks very stable and handy. Been using mostly to output TTS on my Google Home speakers.

      Spud. One thing I was wondering, will it ever be possible to develop actions to command Google Home or Chromecast? For example, I'd like to be able to have an event that triggers Google Home to play music when I come home, etc. Or to turn on the TV with a Chromecast backdrop slideshow.

      Comment


        #48
        Originally posted by stefxx View Post
        Hi,

        I just installed 3.0.0.3 on Linux (Mono 5.2) and all my devices (4 physical and 1 group) are having an "unknown" status. Pressing Stop, Play or Pause gives the following error in the log:

        ERROR System.ArgumentNullException: Value cannot be null. Parameter name: value at Extensions.Api.CastChannel.CastMessage..ctor (System.String destinationId, System.String sourceId) [0x00051] in <85f42a8536364aa891f6d7397530cc88>:0 at SharpCaster.Models.MessageFactory.Pause (System.String destinationId, System.Int64 mediaSessionId, System.Nullable`1[T] requestId) [0x00000] in <85f42a8536364aa891f6d7397530cc88>:0 at SharpCaster.Channels.MediaChannel+d__7.MoveNext () [0x0002b] in <85f42a8536364aa891f6d7397530cc88>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <77c9551943624fd18301ba6f78a841e5>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSucce ss (System.Threading.Tasks.Task task) [0x0003e] in <77c9551943624fd18301ba6f78a841e5>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess AndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <77c9551943624fd18301ba6f78a841e5>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <77c9551943624fd18301ba6f78a841e5>:0 at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <77c9551943624fd18301ba6f78a841e5>:0 at SharpCaster.Controllers.BaseMediaController+d__2.MoveNext () [0x0006a] in <85f42a8536364aa891f6d7397530cc88>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <77c9551943624fd18301ba6f78a841e5>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSucce ss (System.Threading.Tasks.Task task) [0x0003e] in <77c9551943624fd18301ba6f78a841e5>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess AndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <77c9551943624fd18301ba6f78a841e5>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <77c9551943624fd18301ba6f78a841e5>:0 at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <77c9551943624fd18301ba6f78a841e5>:0 at HSPI_Chromecast.ChromecastTarget+d__54.MoveNext () [0x0042d] in <417f91711fef4179923e428650ffe102>:0

        What could be wrong? It is the first version I try so I don't know if it is specific to version 3.0.0.3.

        Thanks!
        For now, pressing the Stop, Play or Pause buttons, is only supposed to work if you are already casting something from HomeSeer.

        Does the Test button from the config page works?
        Does the volume device controls work?

        Comment


          #49
          Originally posted by peterpc View Post
          Added 2 new Chromecasts by hand in the ini file. (I have now 3 audio and 1 HDMI Chromecasts) They were showing in the browser, but not added by disabling/enabling the plugin.
          They show now in the devices.
          When creating new devices, can you add Chromecast to the Floor? It is empty now.
          Also the device name, can you add the Chromecast name to status and volume? Then it is more easy to recognise the right device.

          When I go to config, there is no tag at online. And I can't test the device with the test button.
          When I start a stream with an event, the Chromecasts are working, but speak something is not working anymore.
          Also the status is not showing when I started a stream with HS.
          And I can't control the stream. (Stop,Play,Pause,Previous,Next)
          But volume is working ok.

          I also made 3 groups in the Home app, but how can I add groups to Homeseer?
          After editing the ini file, you need to disable and re-enable the plugin. Then you should see the new chromecast in the config page with the "Online" field checked. Please post the content of your ini file if you don't see that.

          Comment


            #50
            Originally posted by teladog01 View Post
            Thanks for adding this, Spud. It will be quite a lot of work for me to edit the path on all my speak events so I'm still pondering whether using the Chromecast for speak events will be worth the work. I'm curious why the html directory is a requirement, as speaker.exe and Sonos speak clients play mp3 files fine from the "<HS3 root>\Media" directory. And I believe your AirplaySpeak plugin also works without the html directory requirement. Just curious what's different?
            The difference is that the chromecast need to load the media file from a web server, whereas with AirplaySpeak the media was directly streamed by the plugin to the speaker device.

            I could make the plugin copy the file to the html folder, so that you can put the media file anywhere you want on the HS3 machine.

            Comment


              #51
              Originally posted by abwyatt View Post
              Love this plugin! Been testing it for a couple of days now and it looks very stable and handy. Been using mostly to output TTS on my Google Home speakers.

              Spud. One thing I was wondering, will it ever be possible to develop actions to command Google Home or Chromecast? For example, I'd like to be able to have an event that triggers Google Home to play music when I come home, etc. Or to turn on the TV with a Chromecast backdrop slideshow.
              One thing I want to add soon, is a HS device showing which app is currently using the Chromecast (Netflix, Google Play Music, etc...) and then be able to use simple media controls like play/pause/stop with those apps from HS.
              However right now, I don't know to start a specific app on the chromecast.

              BTW, the Chromecast plugin is now available in the store and the updater.

              Comment


                #52
                Originally posted by spud View Post
                After editing the ini file, you need to disable and re-enable the plugin. Then you should see the new chromecast in the config page with the "Online" field checked. Please post the content of your ini file if you don't see that.
                This is my ini file:
                Code:
                [SPEAK_PROXY]
                forward_to_hs=True
                [CHROMECASTS]
                c7eeecd03512f253029b022b468537aa###ipaddress=192.168.86.24
                c7eeecd03512f253029b022b468537aa###name=HDMI Huiskamer
                c7eeecd03512f253029b022b468537aa###enabled=False
                7babfb093f1655b04d33e9b47d21d071###ipaddress=192.168.86.112
                7babfb093f1655b04d33e9b47d21d071###name=Audio Huiskamer
                7babfb093f1655b04d33e9b47d21d072###enabled=True
                7babfb093f1655b04d33e9b47d21d072###ipaddress=192.168.86.120
                7babfb093f1655b04d33e9b47d21d072###name=Audio Boven
                7babfb093f1655b04d33e9b47d21d073###ipaddress=192.168.86.121
                7babfb093f1655b04d33e9b47d21d073###name=Audio Serre
                7babfb093f1655b04d33e9b47d21d073###enabled=True
                7babfb093f1655b04d33e9b47d21d071###enabled=True
                [GENERAL]
                log_level=Info
                I can play music to the Chromecasts from HS, but speak is not working anymore.

                Stop, Play, Pause is working when I start the stream, but sometime later it is not working anymore.
                When I start the stream again, Stop,Play,Pause is working again for a while.
                Attached Files
                Peter

                http://ohh.pcgsm.nl

                Comment


                  #53
                  Originally posted by peterpc View Post
                  This is my ini file:
                  Code:
                  [SPEAK_PROXY]
                  forward_to_hs=True
                  [CHROMECASTS]
                  c7eeecd03512f253029b022b468537aa###ipaddress=192.168.86.24
                  c7eeecd03512f253029b022b468537aa###name=HDMI Huiskamer
                  c7eeecd03512f253029b022b468537aa###enabled=False
                  7babfb093f1655b04d33e9b47d21d071###ipaddress=192.168.86.112
                  7babfb093f1655b04d33e9b47d21d071###name=Audio Huiskamer
                  7babfb093f1655b04d33e9b47d21d072###enabled=True
                  7babfb093f1655b04d33e9b47d21d072###ipaddress=192.168.86.120
                  7babfb093f1655b04d33e9b47d21d072###name=Audio Boven
                  7babfb093f1655b04d33e9b47d21d073###ipaddress=192.168.86.121
                  7babfb093f1655b04d33e9b47d21d073###name=Audio Serre
                  7babfb093f1655b04d33e9b47d21d073###enabled=True
                  7babfb093f1655b04d33e9b47d21d071###enabled=True
                  [GENERAL]
                  log_level=Info
                  I can play music to the Chromecasts from HS, but speak is not working anymore.

                  Stop, Play, Pause is working when I start the stream, but sometime later it is not working anymore.
                  When I start the stream again, Stop,Play,Pause is working again for a while.
                  For the chromecasts you manually added (i.e the ones that are not discoverable) you need the "online=True" line, to force the plugin to see them as always online.

                  Code:
                  abcd1234###online=True

                  Comment


                    #54
                    Originally posted by spud View Post
                    For the chromecasts you manually added (i.e the ones that are not discoverable) you need the "online=True" line, to force the plugin to see them as always online.

                    Code:
                    abcd1234###online=True
                    That did it. HS Speaking is working again.

                    And how can I add groups?
                    I have 3 groups made in Home, 1+2+3, 1+2 and 1+3
                    Peter

                    http://ohh.pcgsm.nl

                    Comment


                      #55
                      Originally posted by peterpc View Post
                      That did it. HS Speaking is working again.

                      And how can I add groups?
                      I have 3 groups made in Home, 1+2+3, 1+2 and 1+3
                      Groups are not supported for now
                      I need to look into that

                      Comment


                        #56
                        Originally posted by spud View Post
                        For now, pressing the Stop, Play or Pause buttons, is only supposed to work if you are already casting something from HomeSeer.
                        Ok thanks for explaining. I will ignore the errors for now, knowing this limitation.

                        Does the Test button from the config page works?
                        Does the volume device controls work?
                        Yes and Yes. I stopped testing before, as I assumed the error would mean something is really wrong... sorry!
                        stefxx

                        Comment


                          #57
                          The plugin found the Chromecasts I had added by hand and created new devices.
                          I have attached screenshot of new devices and screenshot of my renamed devices.
                          You see that you get multiple devices without the link to the Chromecast they operate.
                          Can you change the names of status and volume so they include the name of the Chromecast?
                          Attached Files
                          Peter

                          http://ohh.pcgsm.nl

                          Comment


                            #58
                            Originally posted by peterpc View Post
                            The plugin found the Chromecasts I had added by hand and created new devices.
                            I have attached screenshot of new devices and screenshot of my renamed devices.
                            You see that you get multiple devices without the link to the Chromecast they operate.
                            Can you change the names of status and volume so they include the name of the Chromecast?
                            I'm going to add the name of the Chromecast in the Room field, but note that if you click the pink button to display device in groups, all devices representing the same chromecast are in the same group.

                            Comment


                              #59
                              Originally posted by spud View Post
                              I'm going to add the name of the Chromecast in the Room field, but note that if you click the pink button to display device in groups, all devices representing the same chromecast are in the same group.
                              Thanks, did not know that button.

                              I am also a little bit further.
                              After using a USB wifi dongle, I found that it is not always finding all Chromecasts.
                              I have installed now a second network card and I will see how that is going. It is looking promising, because the plugin is finding all chromecasts now.
                              Peter

                              http://ohh.pcgsm.nl

                              Comment


                                #60
                                This plugin is great. I'm building a new house and will be using a bunch of Chromecast Audios instead of my usual set of SONOS connects. I was thinking about routing everything through an XAP800 to be able to switch the HS Speak audio to the amps, but this makes that unnecessary!

                                Along with group functionality, it would be really cool if this could pause playing audio from Play Music or spotify, or a video that's already playing on a regular CC, play the HS speak message, and then go back to playing whatever was playing before. Do you have any sense of whether that will be possible or not?

                                thank you
                                mike

                                Comment

                                Working...
                                X