No errors, but the condition
if (configItem instanceof SwitchItem) {
is always TRUE
the others
if (configItem instanceof DimmerItem)
and
if (configItem instanceof ColorItem)
are never verified…
Imports I’m using in rule
import org.openhab.core.library.types.*
import org.openhab.core.library.items.*
import org.openhab.core.types.*
import org.openhab.core.persistence.*
import org.openhab.model.script.actions.*
import org.openhab.core.items.*
import java.util.regex.*
import java.util.String
import java.util.Calendar
import java.util.Date
import java.util.HashMap
import java.util.LinkedHashMap
import java.util.ArrayList
import java.util.Map
import org.eclipse.xtext.xbase.lib.*
I’m using openhab 1.7.0 on win7