I'm working with someone in England helping them to control their Hunter Hydrawise irrigation system that is connected to a Hubitat Elevation hub from a Crestron system.? Most of the commands being sent to the Hubitat to control the Hydrawise work fine.? Such as:
[Hubitat IP Address]/apps/api/20/devices/100/open?access_token=[Access Token]
However, I'm having problems with the suspendZone command; which takes a date in the format of yyyy-mm-dd.? The Hydrawise will suspend watering until that date.
The format of the command ends up being:
[Hubitat IP Address]/apps/api/20/devices/100/suspendZone/2021-12-31?access_token=[Access Token]
The strange part is when the person I'm working with sends this particular command from a browser to their Hubitat to control their Hydrawise system they are telling me it works fine.. However, when sent from a Crestron processor to their hubitat they are reporting they get the following error: HttpException: HTTP/1.1 404 Not Found
I've looked at the differences between if the command is sent from a browser to webhooks.site and when the url is sent from a Crestron system to webhooks.site.? I'm not seeing anything that jumps out at me that would stop this from working.
When sent from the Crestron system I'm not setting any http header info.
The browser, on the other hand sets the following:
|connection|close|
|---|---|
|sec-gpc|1|
|accept-language|en-US,en;q=0.9|
|accept-encoding|gzip, deflate|
|accept|text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9|
|user-agent|Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36|
|upgrade-insecure-requests|1|
|dnt|1|
|cache-control|max-age=0|
|host|webhook.site|
|content-length||
|content-type||
Any ideas on what could be different that would keep the Hubitat command from being accepted when sent from the Crestron system would be greatly appreciated.
Thanks in advance for the help
Jay