Hello All,
I want to trigger a url but it wont trigger the url i want to create a ventilation controller i try to combine two exsisting device handler one for zwave controled fan and the other one url switch handler
if (level >= lowThresholdvalue+1 && level <= medThresholdvalue) { if (internal_port){
port = "${internal_port}"
} else {
port = 80
}*/
def result = new physicalgraph.device.HubAction(
method: "GET",
path: "${internal_1_path}",
headers: [
HOST: "${internal_ip}:80"
]
)
sendHubCommand(result)
sendEvent(name: "currentState", value: "ADJUSTING.MED")
log.debug "Executing ON"
log.debug result
}
i am getting
11:15:46: debug GET null HTTP/1.1
Accept: /
User-Agent: Linux UPnP/1.0 SmartThings
HOST: 192.168.86.105:80