[SOLVED] AVM FRITZ!Box Binding, ApplyTemplate in Rule error

  • 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


When trying to apply a template from a rule, I get the following error:


rule "Heizung in Eco-Modus wenn abwesend"
    Item Praesenz changed from ON to OFF
    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

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?


It looks like you don´t have an item named ApplyTemplate.
That´s the reason for your error.
Have a look at the bindings page.

I completely missed that when reading the page. But how can I add the item using PaperUI?

You should be able to create an item under the FritzBox thing and the corresponding channel.

Unfortunately not. Maybe the problem is, that I created the thing before I updated to the latest milestone build. Can I safely remove and readd the thing/bridge without messing everything up?

After removing and readding the FritzBox-Thing I was able to create the item using PaperUI. Luckily everything is working as expected.

1 Like