I installes OpenHAB yesterday on a IntelNUC.
On the Paper Interface I defined my KNX Gateway (Thing) and two KNX Devices (Things) and a switch (Item) to put them on and off.Then I connected them. All works fine.
Then I tried to define a rule, using this Things and items to switch on and off These lights depending on time. Saved it to conf/rules file. Does not work!
Did I miss anything like a correct setup or link from the rules to These Things and items?
Here my Testcode:
rule “TEST”
when
time cron ‘0 28 12 ? * MON-SUN’
then
sendCommand(KNX_Test_FL, ON)
end
Test_FL is the Switch Item defined in the Paper Interface which worked properly on the Classical UI.
Next Test, did also not work:
I defined an Item in the conf/items File:
Switch Test_FL “FL Testswitch” () { knx=“1/6/14”}
The channel UID is something like: channel="knx:device:GIRA2167:GW90741_5:Ch_51"
Your example uses the GA which is configured in the Thing. This is already done in PaperUI, so you need to go in the Thing information in PaperUI and copy the channel UID from there and use it in your Items definition.
Thanks for your help. I am back to the place of my new installation.
My code looks like this now. I relay on KNX_FL_Switch which I had defined in the paperUI and which has the channel defined. Still no reaction.
I am not a programmer, maybe I missed someting?
They have always been offline. It is my fourth day I work with OpenHAB. So I am not very experienced. I have an IP KNX Interface with tunneling. This Thing showes online, the Things I have defined “behind” this show offline. I did the binding (channel) between one of the offline KNX Things and the Switch Item in the Paper UI and it worked fine. So my guess was, that OpenHAB cannot “look” behind the IP KNX Interface.
Here how the Things look:
change the info in the red box to an IA (Individual Address aka Physical Address) for the KNX Actuator (format of IA: x.y.z (not x/y/z which is for GA)
Sorry, first answer was to quickly, I overred some of your inportant inputs: My actuator for this Lights is a DALI Gateway… and now I am a bit lost in the KNX DALI world. This DALI Gateway serves many Lights and honestly, I do not know what KNX sends, that only lights are affected I like to cover.
Anyway, I have defined the IA (which is for both Ligths the same DALI Gateway) and they turned to online now.