- Hardware: AMD Ryzen Threadripper 1920X /32GB Ram
- OS: Windows 10 Pro
- Java Runtime Environment:Zulu 8
- openHAB version: 2.4.0
Issue of the topic: I am trying to write my first rule, and have not been successful thus far. Nothing happens at all… Im just trying to get a relay to turn OFF when the motion alarm on the multisensor is tripped, and ON when the motion alarm resets to ok (have configured the return to OK interval for the motion alarm to be 10 seconds). I’m hoping to get some insight into whats going on, whether it be some sort of configuration issue or if I have made a mistake with syntax, or maybe something else. I can see the value for the motion sensor changing in Habmin when I wave my hand over it, and can manually command the relay to turn on and off through Habmin. There are no other rules in my rules folder, and all of the experimental rules that I have written in the Paper UI rule engine are disabled.
rule "Relay Control OFF" when Item ZWaveNode002_MotionAlarm changed from OFF to ON then Item ZWaveNode003ZL7432InWallDualRelaySwitch_Switch1.sendCommand(OFF) //logInfo("OFF", "Off command sent") end rule "Relay Control ON" when Item ZWaveNode002_MotionAlarm changed from ON to OFF then Item ZWaveNode003ZL7432InWallDualRelaySwitch_Switch1.sendCommand(ON) //logInfo("ON", "On command sent") end
Items configuration related to the issue: ZWaveNode002_MotionAlarm is a switch type item, as is ZWaveNode003ZL742InWallDualRelaySwitch1
Hardware: Aeotech multisensor ZW100-A, Dual channel in wall relay ZL7432.
edit: I should also mention that this rule is saved as a .rules file (Alarm_Switch.rules) in the rules folder in the openHab directory, and that openHab has been running whenever I have tried to test the rule.