Hi.
I am using the free@home binding to include my blinds.
Now i want to send the position (percentage value) from Openhab to Loxone.
The item within openhab shows the actual value, but the item within Loxone does not update it´s value.
What am i doing wrong?
Thanks
Could you post your items definitions and associated sitemaps and rules, please?
hi.
please find attached the info.
i a not using rules for the moment.
if you need more info, please tell me.
Thanks for your help.
So you have two bindings on one item wohnzieemr_prozent
I think there may be a conflict here and you may need a rule
I am going to work now so I’ll have a look tonight
In the mean time link the two channels to two different items and try this:
rule "rollershutter"
when item1 changed
then
item2.sendCommand(item1.state)
end
item1 is the free@home
item2 is the loxone
i tried like you said.
now i have a item linked to free@home (wohnzimmer_prozent)
and one item linked to loxone (wohnzimmer_prozent_loxone).
if i now change the value by hand for wohnzimmer_prozent_loxone within the gui of openhab, the value changes within the loxone gui.
this is great.
but the rule is not working.
i created the rule “rollo.rules” within the folder /etc/openhab/rules
the code looks like this:
rule "rollo"
when
wohnzimmer_prozent changed
then
wohnzimmer_prozent_loxone.sendCommand(wohnzimmer_prozent.state)
end
this did not work and gave me an error within the openhab log.
it says:
rollo.rules has errors, therefore ignoring it: [3,5]: no viable alternative at input 'wohnzimmer_prozent'
i just found the problem myself.
the code has to look like this:
rule "rollo"
when
Item wohnzimmer_prozent changed
then
wohnzimmer_prozent_loxone.sendCommand(wohnzimmer_prozent.state)
end
one nore question:
i would like to do this for more blinds.
do i have to make a rule file for every blind or can i do like this?
rule "rollo"
when
Item wohnzimmer_prozent changed
then
wohnzimmer_prozent_loxone.sendCommand(wohnzimmer_prozent.state)
when
Item test_prozent changed
then
test_prozent_loxone.sendCommand(test_prozent.state)
when
Item nextroom_prozent changed
then
nextromm_prozent_loxone.sendCommand(nextromm_prozent.state)
end
You will need to place an “end” to the end of each rule.
Like:
rule "rollo"
when
Item wohnzimmer_prozent changed
then
wohnzimmer_prozent_loxone.sendCommand(wohnzimmer_prozent.state)
end
rule "whatever"
when
Item test_prozent changed
then
test_prozent_loxone.sendCommand(test_prozent.state)
end
rule "whatever"
when
Item nextroom_prozent changed
then
nextromm_prozent_loxone.sendCommand(nextromm_prozent.state)
end
If you have lots of pairs/sets of Items with related names, this is a useful technique
First out the free@home items in a group gFreeAtHome or whatever name
Then:
rule "rollershutters"
when
Member of gFreeAtHome changed
then
val itemName = triggeringItem.name.toString + "_loxone"
sendCommand(itemName, triggeringItem.state.toString)
end


