From my view… Unfortunately I think it is best served by you being on network and utilizing curl to find / demonstrate correct setup, then trying to tweak the integration instead.
I did see some HS forum posts where the headers parameter was giving them issues so I suppose you could try the _token in the body option vs the header.
This would be the curl version on a Windows machine (note the \ escaped " signs): curl -X PUT http://192.168.1.xxx/v2/devices/0000006e/actions/ToggleLight -d "{\"_token\": \"xxxxxxxxxxxxxxxx\"}"
and this would be something like the equivalent URLAction: &hs.URLAction("http://192.168.1.xxx/v2/devices/0000006e/actions/ToggleLight","PUT","{""_token"": ""xxxxxxxxxxxxxxxx""}","") (adapted from here and there)
tried this format, no error but no response from the light either. The host machine that Homeseer runs on is Linux - HomeTroller Zee S2 (basically a PI device).
That’s confirming things are working on the API level / your devices / commands. Thanks for providing that confirmation.
Since you don’t have to change the action via -X parameter with those “list devices” / “list actions” curl commands, they are a little more simple, and a good way to verify things.
Okay, I myself am trying now via PuTTY instead of remoted in via VNC.
UPDATE: Was able to execute with the same copy-pasted command in PuTTY.
Can you confirm in the BOND app that the token is still the same? I think I saw one other user had issues with the token changing once on them / a reboot of the BOND Bridge and using the new token resolved their issues (even though the token isn’t supposed to randomly change and mine never have without a full reset).
I am able to replicate your issue only by intentionally using an incorrect token.
We are now entering the “I don’t know this system so I dig through forums only” realm…
Some posts indicate the URLAction doesn’t actually send PUT actions even though it should and is documented as an option?
other posts say to use Big5 plugin to get more robust HS3 options?
The documentation for HS3’s implementation of PUT seems a little weird to me:
PUT
(Replaces [puts] a file at the URL)
dim s
dim sPage
dim sHead
sPage = (routine to read a file into the variable sPage)
s = hs.URLAction("http://someserver.com/putithere/putit.htm", "PUT", sPage, "")