import org.openhab.core.library.types.*
import org.openhab.model.script.actions.*
import org.openhab.core.persistence.*
import java.lang.Math
import java.util.Calendar
import java.util.Date
import java.util.TimeZone
import java.text.SimpleDateFormat
rule "Public Holiday"
when
Time cron "0 0 0 * * ?" or
System started
then
callScript("holiday")
end
The row with “callScript” is marked as wrong.
Error message is “The method callScript(String) is undefined”
If you are really using OH 2 you should not be using those imports. Everything in org.openhab.core and org.openhab.model have moved to eclipse smart home packages. But they also no longer need to be imported. Try removing the imports and see if it works.
Also, I’ve found Designer often has problems with actions. Does it run?