hubAction with Foscams not working


(skp19) #1

I’m trying to get commands to pass to an HD Foscam camera through the hub but I’m not getting any response out of the camera. I can pass these commands fine externally through the app. Here is a snippet of the code I’m using. Am I missing something using hubAction?

  def uri = "/cgi-bin/CGIProxy.fcgi?usr=username&pwd=password&cmd=rebootSystem"
  def hubAction = new physicalgraph.device.HubAction(
    method: "GET",
    path: uri,
    headers: [HOST:"192.168.1.234:1234"]
  )
  hubAction

The info in the code has been changed to hide my private information.


(Convinced ST will never be unbroken…) #2

This question has been raised here in a number of different incarnations, but I am afraid no answers have been forthcoming.

I have been able to get a response from my thermostats in a parse handler, but no luck with a camera so far.