Ok, so I THOUGHT I had gotten around this with the following code:
def result = new physicalgraph.device.HubAction(
method: "SUBSCRIBE",
path: "/upnp/event/basicevent1",
headers: [
HOST: hostAddress,
CALLBACK: "<http://${hubAddress}/notify>",
NT: "upnp:event",
TIMEOUT: "Second-3600"
]
)
log.debug(result)
This worked. I saw it. I got a valid subscription. I haven’t touched it.
Now suddenly the value for the CALLBACK parameter has gone missing. Could this be related to the IDE issues this afternoon?
This is what I’m seeing from that last log.debug:
5:46:12 PM: debug SUBSCRIBE /upnp/event/basicevent1 HTTP/1.1
Accept: */*
User-Agent: Linux UPnP/1.0 SmartThings
HOST: 10.13.13.45:49153
CALLBACK:
NT: upnp:event
TIMEOUT: Second-3600