Announcement

Collapse
No announcement yet.

Speak Proxy

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Speak Proxy

    Does anyone has successfully implemented a speak proxy plugin with HS3?

    I can't make it work:

    in InitIO I register the plugin as a speak proxy like this:
    Code:
    hsCallback.RegisterProxySpeakPlug(IFACE_NAME, "");
    and in my HSPI class I have a SpeakIn function:
    Code:
    public void SpeakIn(short device, string text, bool wait, string host = "")
    {
         //my speak proxy logic
    }
    but when I run a speak action this function is never called, and I get this error in the log:

    Code:
    23/05/2013 3:11:44 PM  - Error - In SpeakDev SpeakProxy: Object does not match target type.

    #2
    Just saw this one...

    I am having the same problem, did you ever find a solution?
    -Larry

    A member of "The HA Pioneer Group", MyWebSite

    Plugins:
    VWS, AB8SS, lrpSpeak, Calendar, Arduino, Harmony, BlueIris, Sprinklers, ZipBackup...

    Hardware:
    Intel NUC8i7BEH1 running Windows 10 Pro headless, HS3 Pro, Plex running on Synology dual High Availability DS-1815+ NAS (24Tb each), Synology Surveillance Station running on DS-416 Slim (8Tb), Samsung SmartThings, Google Home, Alexa, Hubitat Elevation, ZNET, Ubiquiti UniFi Network, Davis Vantage Pro II Weather Station. Whole house speaker system using a couple of AB8SS switches. Vantage Pro II Weather Station, Rain8Net Sprinklers, Hubitat Elevation, Google Home, Alexa, DSC Security System, Ubiquiti UniFi Network.

    Comment


      #3
      no, but Rich said he will look into it

      Comment


        #4
        The Beta is now out, and this issue should be fixed in it.
        Wade

        "I know nothing... nothing!"

        Comment


          #5
          thanks, it works now.

          Comment


            #6
            Doesn't work for me.

            Error 1 Class 'HSPI' must implement 'Sub SpeakIn(device As Integer, txt As String, w As Boolean, host As String)' for interface 'HomeSeerAPI.IPlugInAPI'. C:\Users\Larry\Documents\Visual Studio 2010\Projects\HomeSeer3\hspi_lrpSpeak 1.0.0.0 05-25-2013 - Working\hspi.vb 8 16 hspi_lrpSpeak
            Here is my code is hspi.vb
            Code:
            Public Sub SpeakIn(ByRef device As Short, ByRef txtSTR As String, ByRef wait As Boolean, ByRef host As String)
                    oPlugin.SpeakIn(device, txtSTR, wait, host)
            End Sub
            and in plugin.vb

            Code:
             '*******************************************
            Public Sub SpeakIn(ByRef device As Short, ByRef txtSTR As String, ByRef wait As Boolean, ByRef host As String)
                    Dim i As Short
            
                    ' my code here
            
                    '---------------------------------------
                    ' Tell HomeSeer to speak the stuff
                    hs.SpeakProxy(device, txt, False, "")
                    '---------------------------------------
            
            End Sub
            -Larry

            A member of "The HA Pioneer Group", MyWebSite

            Plugins:
            VWS, AB8SS, lrpSpeak, Calendar, Arduino, Harmony, BlueIris, Sprinklers, ZipBackup...

            Hardware:
            Intel NUC8i7BEH1 running Windows 10 Pro headless, HS3 Pro, Plex running on Synology dual High Availability DS-1815+ NAS (24Tb each), Synology Surveillance Station running on DS-416 Slim (8Tb), Samsung SmartThings, Google Home, Alexa, Hubitat Elevation, ZNET, Ubiquiti UniFi Network, Davis Vantage Pro II Weather Station. Whole house speaker system using a couple of AB8SS switches. Vantage Pro II Weather Station, Rain8Net Sprinklers, Hubitat Elevation, Google Home, Alexa, DSC Security System, Ubiquiti UniFi Network.

            Comment


              #7
              Another note...I even get this error in plugins that do not even register with callback.RegisterProxySpeakPlug(IFACE_NAME, Instance)???
              -Larry

              A member of "The HA Pioneer Group", MyWebSite

              Plugins:
              VWS, AB8SS, lrpSpeak, Calendar, Arduino, Harmony, BlueIris, Sprinklers, ZipBackup...

              Hardware:
              Intel NUC8i7BEH1 running Windows 10 Pro headless, HS3 Pro, Plex running on Synology dual High Availability DS-1815+ NAS (24Tb each), Synology Surveillance Station running on DS-416 Slim (8Tb), Samsung SmartThings, Google Home, Alexa, Hubitat Elevation, ZNET, Ubiquiti UniFi Network, Davis Vantage Pro II Weather Station. Whole house speaker system using a couple of AB8SS switches. Vantage Pro II Weather Station, Rain8Net Sprinklers, Hubitat Elevation, Google Home, Alexa, DSC Security System, Ubiquiti UniFi Network.

              Comment


                #8
                First parameter of SpeakIn is now an Integer, not a Short anymore

                Comment


                  #9
                  Thanks I figured it out after my post...everything seems to be working now.
                  -Larry

                  A member of "The HA Pioneer Group", MyWebSite

                  Plugins:
                  VWS, AB8SS, lrpSpeak, Calendar, Arduino, Harmony, BlueIris, Sprinklers, ZipBackup...

                  Hardware:
                  Intel NUC8i7BEH1 running Windows 10 Pro headless, HS3 Pro, Plex running on Synology dual High Availability DS-1815+ NAS (24Tb each), Synology Surveillance Station running on DS-416 Slim (8Tb), Samsung SmartThings, Google Home, Alexa, Hubitat Elevation, ZNET, Ubiquiti UniFi Network, Davis Vantage Pro II Weather Station. Whole house speaker system using a couple of AB8SS switches. Vantage Pro II Weather Station, Rain8Net Sprinklers, Hubitat Elevation, Google Home, Alexa, DSC Security System, Ubiquiti UniFi Network.

                  Comment

                  Working...
                  X