I am really new to openHAB. I was able to set up a Zwave sensor thing on openHab2 which runs on a server. I am able to see the data on openhab which is great but now I’d like to push it to a server via HTTP. I understand that this involves creating a HTTP thing but I’m not sure how to go about doing this. I installed a HTTP binding but am not sure what to do in the next step where it says to select the thing type but there is nothing for me to select.
AFAIK, the HTTP Binding is a openHAB 1.x Binding, so there are no Things to be defined, just Items. Please check the HTTP Binding documentation.
MDAR
(Stuart Hanlon, UK importer of Velbus hardware)
3
Hi
There might be a way of doing this purely in rules.
I harvest room temperatures from a Velbus network and push the room temperatures to a server http command.
Does the last rule here help you ?
(I’ve included the opposite rule to put the whole concept into context)
rule "System start up"
when
System started
then
end
rule "System Shut down"
when
System shuts down
then
end
rule "Loxone Guest bedroom target change"
when
Item LoxoneMiniserver_BedroomGuestbedtarget changed
then
var GBedTarget = LoxoneMiniserver_BedroomGuestbedtarget.state
say("Guest Bedroom NEW Target Temperature from Locks On "+GBedTarget, "voicerss:enGB", "webaudio")
Thermostat_CurrentTemperatureSetpoint.sendCommand(GBedTarget as Number)
end
rule "Loxone Guest bedroom temperature change"
when
Item GP4_Current_Temperature changed
then
var GBedTemperature = Float::parseFloat(String::format("%s",GP4_Current_Temperature.state))
say("Guest Bedroom current temperature "+GBedTemperature, "voicerss:enGB", "webaudio")
sendHttpGetRequest("http://openhab:openhab@{server_address}:{port}/dev/sps/io/guestbedtemp/"+GBedTemperature)
end
I did try creating a http binding Item file, but I just couldn’t get it to work.
I think I wasn’t passing the new variable correctly.