I have set up a pretty long rule file which was allowing me to have some basic voice recognition using the Androind client.
The import section of the openHAB 1 rule file looks like this:
Now when I want to use this same file in openHAB 2 the Designer complains about the wildcards and about not finding
Command & GenericItem.
Without Command my whole rule would not work as I define a variable on it:
var Command myCommand = null
and then define what command I want to send:
/* this is the important part - only 1 line with a sendCommand */ if (myItem != null && myCommand != null) myItem.sendCommand(myCommand)
Does anyone know what to import now?