Hello together,
after some yeaes I decided to upgrade my OpenHAB on my Rasperberry PI from OH 2.1 to the current stable version ob OpenHABian 2.5.9-1. Well serveal things changed … especillay the LCN-Binding. But I discovered, what to to to get LCN running.
Now I’ve stuck in problems by convertig my old rules. I the log I can see that the expected Items change there state, but the rule won’t react in any way. I simplified the rules and insert some logging, but the logging won’t appear in the log.
So, now I decided to ask for help …
The rule looks like that:
rule "AZ_LightON" when Item LCN_AZ_SW_Relay_HUE_Switch changed from NULL or Item LCN_AZ_SW_Relay_HUE_Switch changed from OFF or Item LCN_AZ_SW_Relay_HUE_Switch changed from ON then { logWarn("AZ_LCN-Triggered") var HSBType AZ_currentState = LightifyFlex3p_color.state // logInfo("ON/OFF CurrentBrightness", String::format ("brightness = %d", currentState.brightness.intValue)) if (AZ_currentState.brightness.intValue == 0) { LightifyFlex3p_color.sendCommand(ON) AZ_BrightnessDirection = true } else { LightifyFlex3p_color.sendCommand (OFF) AZ_BrightnessDirection = false } } end
And I can see the Items toggle in the state:
2020-10-25 16:45:11.523 [vent.ItemStateChangedEvent] - lcn_module_ce5f34ba_S000M011_relay_1 changed from OFF to ON
2020-10-25 16:45:11.533 [vent.ItemStateChangedEvent] - LCN_AZ_Relay_HUE_Switch changed from OFF to ON
2020-10-25 16:45:13.403 [vent.ItemStateChangedEvent] - lcn_module_ce5f34ba_S000M011_relay_1 changed from ON to OFF
2020-10-25 16:45:13.420 [vent.ItemStateChangedEvent] - LCN_AZ_Relay_HUE_Switch changed from ON to OFF
But the simple logWarn-Message will not appear.
So if there is someone to help me, your welcome to give me some advices.
Tanks and regards
Stef