[SOLVED] Error: Couldn't invoke 'assignValueTo' for feature JvmVoid: for sendHttpPostRequest

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)

Ps: @begleysm Use VS Code… it helps alot !

1 Like