Problem with rules in OpenHab2

Hi

I’ve just transferred to OH2 and all of my rules have error messages against them in Eclipse SmartHome Designer. If I use

sendCommand(ZWSwitch2, OFF)

in my rule with ZWSwitch created as an item:
Switch ZWSwitch2 { channel=“zwave:device:d0472063:node13:switch_binary”}

I get a red X warning of:

Multiple markers at this line

  • The method sendCommand(Object, org.eclipse.smarthome.core.library.types.OnOffType)
    is undefined
  • The method or field ZWSwitch2 is undefined
  • The field RulesRules.OFF refers to the missing type org.eclipse.smarthome.core.library.types.OnOffType

If I do
sendCommand(ZWSwitch2, “OFF”)

I get a smaller warning of

Multiple markers at this line

  • The method or field ZWSwitch2 is undefined
  • The method sendCommand(Object, String) is undefined

The rule does work but makes it very hard to debug.

What am I doing wrong?

Many thanks

I am not using OH2 but it might be worth trying ZWSwitch2.sendCommand(ON).

Thanks. Same error though

Multiple markers at this line

  • The method or field ZWSwitch2 is undefined
  • The field RulesRules.OFF refers to the missing type org.eclipse.smarthome.core.library.types.OnOffType

Don’t use 0.9.0 of the Designer. The last stable version is 0.8.0.