Hallo Community,
I use an LCN-System an a couple of HUE lamps. In the past, befor the new LCN binding exists, I used virtual relais within the LCN system to trigger rules for the HUE lamps. Now I discovered, that a more elegant way exists. So I tried to realize this.
-
Modifiing the action within the keytable of the LCN with LCNPro. Now the key send an HIT, MAKE or BREAK to Module #4, as discriped in the documentation of the current LCN bindung.
-
Take a look at the “log Viewer” …
2020-12-13 12:59:53.564 [vent.ChannelTriggeredEvent] - lcn:module:ce5f34ba:S000M011:hostcommand#sendKeys triggered A3:HIT
2020-12-13 12:59:54.670 [vent.ChannelTriggeredEvent] - lcn:module:ce5f34ba:S000M011:hostcommand#sendKeys triggered A3:MAKE
2020-12-13 12:59:55.806 [vent.ChannelTriggeredEvent] - lcn:module:ce5f34ba:S000M011:hostcommand#sendKeys triggered A3:BREAK
… seam to work …
- Modifying my rule
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
Channel “lcn:module:ce5f34ba:S000M010:hostcommand#sendKeys” triggered “A3:HIT”
then {
logInfo(“AZ-Rule”, " Rule triggered")
…
So the problem is, that the rule will not be triggered … the log shows that there will be an event, but the rule will not start …
Has anyone an idear, where my mistake is?
Thanks and best regards
Stef