slowly serveral things start work. Actually I managed it to get all informations out of the hue motion detector inside my sidemap. Now I want to write a rule to switch on the cellar light, if motion was detected … but I’m to stupid to write the correct action (press a key) for the LCN-Device.
Is there anyone how can help me in writing the command ?
Nobody is too stupid. Coding is not easy if you haven’t done it before.
Have go. Don’t worry if it doesn’t work, show your code here along with your items and we’ll help you sort it out. We can’t just post code on a blank canvas:
This to get you started
rule "hue motion"
when
Item Hue_Motion changed to ON
then
LCNDevice.sendCommand(ON)
end
thanks for the fast answer. What I want to do ist sending a command to trigger key A1 off a special modul. Why ? The motion detector should trigger the staircase light in the same way than the normal LCN-Buttons and … the light will go off automaticly.
thanks for this hint. If I change HIT to ON I didn’t get any error, when the motion detection is triggering, but … nothing happen, so there must be at least on further mistake.
So the main question seems to be the question for the correct item definition of one a single key. Any idear ?
I had a look at the LCN binding at it looks quite involved…
I guess that you are more familiar with it so read it again and make sure that your item config is correct.
But at first sight, your binding configuration is wrong. I maybe wrong but from the docs it doesn’t look like that for key…
I don’t have LCN so I can’t test for you sorry.
Go through these docs again: