import org.openhab.core.library.types.* import org.openhab.core.persistence.* import org.openhab.model.script.actions.* import org.java.math.* import org.joda.time.* rule "turn on 1" when Time cron "0 30 6 ? * *" then executeCommandLine("python /etc/openhab2/scripts/jfs1.py on1",1000) MyCall_Channel.postUpdate(1) end rule "turn on 2" when Time cron "0 30 7 ? * *" then executeCommandLine("python /etc/openhab2/scripts/jfs1.py on2",1000) MyCall_Channel.postUpdate(2) end rule "turn on 3" when Time cron "0 30 8 ? * *" then executeCommandLine("python /etc/openhab2/scripts/jfs1.py on3",1000) MyCall_Channel.postUpdate(3) end rule "turn on 4" when Time cron "0 30 9 ? * *" then executeCommandLine("python /etc/openhab2/scripts/jfs1.py on4",1000) MyCall_Channel.postUpdate(4) end rule "turn off" when Time cron "0 30 10 ? * *" then executeCommandLine("python /etc/openhab2/scripts/jfs1.py aus",1000) MyCall_Channel.postUpdate(0) end