[SOLVED] Error in rule

This is my rule

import org.joda.time.*

var Timer timerRDO61 = null

rule "trigger Wecker"
        Time cron "0 * * * * ?"
    logInfo("trigger Wecker", now.toString())
	if (switch_WECKER.state == ON) {
        logInfo("trigger Wecker On", now.toString())
		var sollMinute = (number_WECKER_M.state as DecimalType).intValue
		var sollStunde = (number_WECKER_H.state as DecimalType).intValue
		if (sollMinute == now.getMinuteOfHour && sollStunde == now.getHourOfDay) {
            logInfo("triggered Wecker", now.toString())
            createTimer(now.plusMinutes(1), [ | switch_sunsetsimulationgroup3.sendCommand(OFF)])

But I get some errors

The use of wildcard imports is deprecated.

I think it’s not an error, it’s just a hint that you should not use the asteric in your import.

Hint / Warning
and yes it’s about the * import, but you can ignore it :slight_smile:

…or read this from @rlkoshak :wink:

1 Like