try defining the String val/var output
rule "Set Fan"
when
Item HVAC_CT50Dn_FanMode received command
then
logInfo("HVAC", "HVAC_CT50Dn_FanMode received: " + receivedCommand)
val String URL = "http://172.27.4.2/tstat/fmode"
var String contenttype = "application/json"
var String jsondata = '{"fmode":' + receivedCommand + '}'
val String output = sendHttpPostRequest(URL, contenttype, jsondata)
logInfo("HVAC", "HVAC Command sent - output: " + output)
end
From the triggering Item (HVAC_CT50Dn_FanMode
)