Announcement

Collapse
No announcement yet.

help executing web commands

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

    help executing web commands

    Hi all,

    I have a few Etekcity plug in modules that I can control via web commands through my hooksmarthome device. I am having trouble getting HS3 to send the following web strings:

    Off
    https://api.gethook.io/v1/device/tri...98cb7ca41b8d56

    On
    https://api.gethook.io/v1/device/tri...98cb7ca41b8d56

    I have tried the following strings, and each return different errors.

    &hs.GetURL("https://api.gethook.io/v1/device/trigger/7d1cc4f794d94ca26e8456a586194858/On/?token=54aca1bba20953a19a98cb7ca41b8d56",FALSE,8080)

    Dec-11 6:54:25 PM Error Running script(1) &hs.GetURL("https://api.gethook.io/v1/device/trigger/7d1cc4f794d94ca26e8456a586194858/On/?token=54aca1bba20953a19a98cb7ca41b8d56",FALSE,8080), init error: Cannot use parentheses when calling a Sub



    &hs.GetURL "https://api.gethook.io/v1/device/trigger/7d1cc4f794d94ca26e8456a586194858/On/?token=54aca1bba20953a19a98cb7ca41b8d56","/",TRUE,80)

    Dec-11 6:55:37 PM Error Running script(2) &hs.GetURL "https://api.gethook.io/v1/device/trigger/7d1cc4f794d94ca26e8456a586194858/On/?token=54aca1bba20953a19a98cb7ca41b8d56","/",TRUE,80), init error: Syntax error


    &hs.GetURL "https://api.gethook.io/v1/device/trigger/7d1cc4f794d94ca26e8456a586194858/On/?token=54aca1bba20953a19a98cb7ca41b8d56",TRUE,80)

    Dec-11 6:57:10 PM Error Running script(2) &hs.GetURL "https://api.gethook.io/v1/device/trigger/7d1cc4f794d94ca26e8456a586194858/On/?token=54aca1bba20953a19a98cb7ca41b8d56",TRUE,80), init error: Syntax error



    Any help would be great!

    #2
    Try

    Code:
    &hs.GetURL "https://api.gethook.io","/v1/device/trigger/7d1cc4f794d94ca26e8456a586194858/On/?token=54aca1bba20953a19a98cb7ca41b8d56",TRUE,80
    Cheers
    Al
    HS 4.2.8.0: 2134 Devices 1252 Events
    Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

    Comment


      #3
      You are awesome! Thanks!

      On the other forum posts that I reviewed, they also broke the string into two pieces, but they all appears to be adding in an IP address. Since my link didn't have an IP address, I didn't think to break it up.

      Working now, thanks again!

      Comment


        #4
        Great, glad I could help.

        Cheers
        Al
        HS 4.2.8.0: 2134 Devices 1252 Events
        Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

        Comment


          #5
          Lol, this is going to sound ridiculous, but....

          Can anyone remind me of how to setup HS3 to send the web based command strings that I mentioned above. For the life of me, I can't remember how I did the first 3.

          Thanks!

          Comment


            #6
            Finally figured it out... You have to run an "event" to send the command strings. In my case I set up "devices" to act as triggers for the events. Those devices change states via Google Home / IFTTT actions.

            Comment

            Working...
            X