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!
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!
Comment