rule "rule-test" when Time cron "*/30 * * * * ?" then logInfo("openHAB3 cron", "Hello I am triggered by cron") end rule "rule-test-switch-on" when Time is timeOn timeOnly then logInfo("openHAB3 started", "Hello I am triggered by an Time Item") mySwitch.sendCommand(ON) end rule "rule-test-switch-off" when Time is timeOff timeOnly then logInfo("openHAB3 started", "Hello I am triggered by an Time Item") mySwitch.sendCommand(OFF) end rule "rule-test-init" when System started then val DateTimeType MyDateTimeTypeFromString = DateTimeType.valueOf("2022-10-23T11:21:00") logInfo("openhAB Init", "Test: " + MyDateTimeTypeFromString) timeOn.postUpdate(MyDateTimeTypeFromString) timeOff.postUpdate(MyDateTimeTypeFromString) timerActive.sendCommand(OFF) mySwitch.sendCommand(OFF) currentSwitch.postUpdate(100) end