Announcement

Collapse
No announcement yet.

How to get value from hs?

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

    How to get value from hs?

    I am trying to get some value from the devices in hs to the hs phone.

    The command in the hsp sample script 'internal' for speaking text to phone is
    'SPEAK:Hi and welcome to our house, the temperature is...'
    How do I do to speak the value from homeseer commands hs.DeviceValue and hs.GetINISetting

    Best Regards
    Tony Lofgren
    Please excuse any spelling and grammatical errors I may make.
    --
    Tasker Plugin / Speech Droid
    Tonlof | Sweden

    #2
    hs.Speak hs.devicevalue("r13"), true

    -Rupp
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    Comment


      #3
      Thanks, but that command only works whith scripting to HomeSeer.
      The HomeSeer Phone scripting language is different, look in the attachment.

      /Tony
      Attached Files
      Please excuse any spelling and grammatical errors I may make.
      --
      Tasker Plugin / Speech Droid
      Tonlof | Sweden

      Comment


        #4
        See the enclosed sample from the script you uploaded:

        #
        # VBScript samples
        LABEL:VBSCRIPT_SAMPLE
        VBSCRIPT:hs.speak("hello from the IVR");NEXT:;NEXT:
        VBSCRIPT:hs.IsOn("B3");SPEAK:B3 is on;SPEAK:B3 is off
        GOTO:INTERNAL

        So I figure it would be:

        VBSCRIPT:hs.speak hs.Devicevalue "r13", True
        HomeSeer 2, HomeSeer 3, Allonis myServer, Amazon Alexa Dots, ELK M1G, ISY 994i, HomeKit, BlueIris, and 6 "4k" Cameras using NVR, and integration between all of these systems. Home Automation since 1980.

        Comment


          #5
          Hi, thats works to the computer speaker not to the voicemodem/phone.

          I have tried to use hsp.speak to play it to the voicemodem.
          VBSCRIPT:hsp.speak hs.Devicevalue "r13", True
          But hsp is not supported command in the new scripting language for homeseer phone.

          I think the best way is to import a value from homeseer to a string in homeseer phone but I don't know how to do that.

          /Tony
          Please excuse any spelling and grammatical errors I may make.
          --
          Tasker Plugin / Speech Droid
          Tonlof | Sweden

          Comment


            #6
            Tony:
            The only thing that works for me is to call a VB script from the phone command script and work inside that, where you have access to both hs. and hsp. functions (I don't know whether that will continue to be true in future).
            For example in my command script I can say
            VBSCRIPT:hs.Run("this_works.txt");NEXT:;NEXT:
            and in this_works.txt I say
            sub main()
            hsp.speak 1, "This works ok.", TRUE
            end sub

            WindowsXPhe on Compaq5300 (1.1Ghz)
            512 Mb, on-board audio, Way2Call usb 1.08.12
            TI103, MR26A
            HS 1.6.41, HSP 2.0.51

            Comment


              #7
              Thanks alot, thats works. My Homeseer pci modem not working on Swedish caller ID so I build a CallerId interface to the serial port so now I can handle caller id funktion

              /Tony
              Please excuse any spelling and grammatical errors I may make.
              --
              Tasker Plugin / Speech Droid
              Tonlof | Sweden

              Comment

              Working...
              X