Im having difficulties getting my values from my Max! wall thermostats to my Loxone Miniserver, via virtual inputs.
The first rule works like a charm
The second rule updates value, when temperature changes, but it doenst change in Loxone, but I can change value from Loxone one-way???
Any ideas?
rule "Dagligstue Set Temperatur fra Loxone"
when
Item Dagligstue_SetTemp_Lox received update
then
Dagligstue_SetTemp.sendCommand(Dagligstue_SetTemp_Lox.state.toString)
end
rule "Dagligstue Temperatur fra Max!"
when
Item Dagligstue_ActualTemp received update
then
Dagligstue_ActualTemp_Lox_V.sendCommand(Dagligstue_ActualTemp.state.toString)
end
MDAR
(Stuart Hanlon, UK importer of Velbus hardware)
2
I did something similar for a client between Velbus and Loxone.
But we used a HTTP command in the rules.
I can dig out the rule if you’d like to see it…
These are the rules that we used to prove the concept worked.
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")
velbus_Thermostat_CurrentTemperatureSetpoint.sendCommand(GBedTarget as Number)
end
rule "Loxone Guest bedroom temperature change"
when
Item Velbus_GP4_Current_Temperature changed
then
var Temperature = Float::parseFloat(String::format("%s", Velbus_GP4_Current_Temperature.state))
// say("Guest Bedroom current temperature "+Temperature, "voicerss:enGB", "webaudio")
sendHttpGetRequest("http://openhab:openhab@{machine_IP}:7778/dev/sps/io/guestbedtemp/"+Temperature)
end
Hi that could be cool, I’m a total noob to OH2 scripts, although I have full control of my things and items in Visual, I’m just and idiot to combine the stuff…
So for me to understand the rule, it needs to be very condensed
I’ve programmed Loxone for years, no problem
MDAR
(Stuart Hanlon, UK importer of Velbus hardware)
4
Fingers crossed that those DSL rules I’ve posted get you off to a flying start then.