- Platform information:
- Hardware: Raspberry Pi 3B+
- OS: Linux openHABianPi 4.19.66-v7+ #1253
- Java Runtime Environment: OpenJDK Runtime Environment (Zulu8.40.0.178-CA-linux_aarch32hf) (build 1.8.0_222-b178)
- openHAB version: 2.5.0 M4
Hi,
When trying to apply a template from a rule, I get the following error:
rule:
rule "Heizung in Eco-Modus wenn abwesend"
when
Item Praesenz changed from ON to OFF
then
val LocalTime morning = new LocalTime(8, 0)
val LocalTime evening = new LocalTime(21, 59)
if (now.toLocalTime().isAfter(morning) && now.toLocalTime().isBefore(evening)) {
ApplyTemplate.sendCommand("tmpE57969-398B57D78") //Ecotemperatur
}
end
Error message:
2019-10-30 10:35:31.776 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule 'Heizung in Eco-Modus wenn abwesend': The name 'ApplyTemplate' cannot be resolved to an item or type; line 10, column 9, length 13
Am I missing an import or is this no longer supported?
Volker