Hallo together,
a few days ago I updated my openHABian from version 2.1 to 2.5.9. Happily I discovered that the LCN binding hast been updated and be enhanced with a lot of further features.
In my system, I have some HUE lights and an LCN bus system. With some rules I “connect” the HUE lamps with LCN actions. For this a had to convert some “things” and “items” and “rules” … but this part will work now again.
But there ist still one problem within one rule. One HUE presence detector should switch an LCN output. With the LCN Binding 1.x I use the follwoing command, while LCN_HWR_Kellerflurlicht_SW was defined as a switch:
LCN_HWR_Kellerflurlicht_SW.sendCommand(ON)
But with the actual LCN Binding 2.x this won’t work. The log tells me
2020-10-31 14:43:00.067 [ome.event.ItemCommandEvent] - Item ‘LCN_HWR_Kellerflurlicht_SW’ received command ON
2020-10-31 14:43:00.072 [nt.ItemStatePredictedEvent] - LCN_HWR_Kellerflurlicht_SW predicted to become NULL
The description of the LCN Binding didn’t face this part of configuration, so iI hope, that someone can help me to fix my problem.
My current files look like this
Items
Dimmer LCN_HWR_Kellerflurlicht “Kellerflurlicht [%d]” {channel=“lcn:module:xxxxxxxx:S000M10:output#1” [profile=“lcn:output”, ramp=0.25]}
Switch LCN_HWR_Kellerflurlicht_SW “Kellerflurlicht SW” {channel=“lcn:module:xxxxxxxx:S000M10:output#1” [profile=“lcn:output”, ramp=0.25]}
Rule
rule "Bewegungsmelder_Keller_BWM_ON" when Item HueSensMotion1 changed to ON then LCN_HWR_Kellerflurlicht_SW.sendCommand(ON) end
Thanks and best regards
Stef