- Platform information: Openhab2.3
- Hardware: RasberryPI
- OS: _openhabian
- Issue of the topic: please be detailed explaining your issue
Dear all,
I started to learn making rules in openhab. So i’m trying to make my first rule. I simpleone to switchon en off a lamp by a contact sensor and a if-if rule. unfortunately it doesn’t work. I tried to figger out the problem and tried a lot of combinations, but i failed hopefully some of you can give me a tip. Below you will find my code.
//bureaulamp
rule "bureaulamp aan1"
when
Item GF_Bathroom_door_contact changed
then
if (GF_Bathroom_door_contact==CLOSED) {
FF_Woonkamer_Light_burolampjantine.sendCommand(OFF)
}
if (GF_Bathroom_door_contact==OPEN) {
FF_Woonkamer_Light_burolampjantine.sendCommand(ON)
}
end
Thanks,
Jantine