Hi there,
I just cant get ist figured out, how I can create rules with 2.1.
I have a Homematic Wired component HMW-IO-12-Sw7-DR Modul, and have it working with direct connections.
But as I want to be able to use OH2 Rules for the Hue light in some rooms, I want to create rules for them.
Here is what I did:
Homematic.things:
Thing homematic:HMW-IO-12-Sw7-DR:ccu:NEQ0891674 "Wired Module 1/74"
Homematic.items:
Switch TA_A_1_Short "Taster 1 Kurz" (TA,BK) {channel="homematic:HMW-IO-12-Sw7-DR:ccu:NEQ0891674:7#PRESS_SHORT"}
Switch TA_A_1_Long "Taster 1 Lang" (TA,BK) {channel="homematic:HMW-IO-12-Sw7-DR:ccu:NEQ0891674:7#PRESS_LONG"}
Switch TA_A_1_LongRel "Taster 1 LangEnde" (TA,BK) {channel="homematic:HMW-IO-12-Sw7-DR:ccu:NEQ0891674:7#PRESS_LONG_RELEASE"}
Switch TA_A_1_Cont "Taster 1 Cont" (TA,BK) {channel="homematic:HMW-IO-12-Sw7-DR:ccu:NEQ0891674:7#PRESS_CONT"
x.rules
rule "ASchalterClick On"
when
Item TA_A_1_Short received update or
Item TA_A_1_Long received update
then
logInfo("A","Taster gedrückt")
sendCommand(AM_Deckenlicht,ON)
end
For some reason I do not understand (yet) this does not work at all. No Logging, not change.
please give me a hint
thanks