The method callScript(String) is undefined


I try tu set a rules in the standard.rules file:

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"
    Time cron "0 0 0 * * ?" or
    System started

The row with “callScript” is marked as wrong.
Error message is “The method callScript(String) is undefined”

How is the correct syntax to run a script???

Thank you


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?

Yes I’m using OH 2 install from repository on a raspberry pi 3. I have removed the imports but the same problem. The rule is a sample from
How could I see, if the actions are ok?


Oh I think you are right, after a restart of oh2 the script are working. I is a problem from the designer. Thank you for your help!!!