RM rule defect after copying some lines from another rule

I tried to copy the following lines from rule to rule (Export / import with clipboard, paste to the end of the receiving rule).

IF (zwRainHunter switch off) THEN
On: zwRainHunter (Command only switches that are off)
Off: zwRainHunter (Command only switches that are on) --> delayed: 0:00:05
ELSE
Off: zwRainHunter (Command only switches that are on)
On: zwRainHunter (Command only switches that are off) --> delayed: 0:00:05
END-IF

But in RM I got the Error: Command 'currentValue' is not supported by device 248.
(Log: java.lang.IllegalArgumentException: Command 'currentValue' is not supported by device 248. on line 1801 (method selectActions))
And the receiving rule was defect (recovery necessary).

Device 248 is an z-wave Aeotec Nano Switch ZW139C with the standard driver Aeotec Nano Switch.

What am I doing wrong? Or is this a bug of RM?

Is zwRainHunter the Aeotec Nano Switch?

If so, have you considered replacing the if condition with a toggle command?

Toggle: zwRainHunter
Toggle: zwRainHunter —> delayed: 0:00:05

I’ve never seen the error you describe however, so not sure what would be causing it, though I suspect something didn’t make its way to the new rule somehow…

1 Like

Toggle is a good idea! I didn't use this command till now - so I took the long way.

1 Like

Download the Hubitat app