I am using the latest version (2.4.0) on a Raspberry Pi and I am using the AVM FRITZ! Binding with several FRITZ!DECT 200 items. So far so good everything works fine.
I also integrated my items with HomeKit and it works as well.
Here I read it is possible to apply smart home templates.
Therefore I created a rule to turn it on and another one to turn it off. Turn on does not seem to work and the question is also how to turn it off?
This is my item for it, I just created a dummy item for it and in the iOS Home app I am able to toggle it:
rule "Urlaubsmodus An"
when
Item HK_Urlaubsmodus changed from OFF to ON
then
ApplyTemplate.sendCommand("tmp2D5DCF-39722FC0E")
logInfo("demo", "Urlaubsmodus an")
end
rule "Urlaubsmodus Aus"
when
Item HK_Urlaubsmodus changed from ON to OFF
then
ApplyTemplate.sendCommand("")
logInfo("demo", "Urlaubsmodus aus")
end
First of all I am sorry to say but the FRITZ! Smart Home Template feature is not part of the 2.4.0 binding version. It has been introduced later. I am afraid have to upgrade your OH to milestone build or wait for the next release.
One note to your approach. It is not possible to reset a previous applied template or switch back to a default template. I already was in contact with AVM to clarify but unfortunately they will not implement support for that. Thus you have to set-up a workaround for it. Create a new template via FRITZ!OS and call it e.g. âVorlage löschenâ. Add all devices of your choice and check the box âAutomatische Schaltung löschenâ (see screenshot). Look-up the template id and apply it in case you want to reset your template.
Ok. Thanks for clarification, Christoph. The solution sounds good. Since my installation is just so stable I donât dare to upgrade. I think I will wait for the next release. Can I somehow recognize in the documentation which features are part of the current release and which are not?
How do I get the THING_ID to apply the template? I cannot see any new thing after update and re-scan for things in the AVM Fritz Binding. Is it the Fritz!Box ID? Like avmfritz:fritzbox:XXX_XXX_XXX_X? I donât get the connection.
Yes, the <THING_ID> is the FRITZ!Box id. If you added it via auto-discovery the Iâd is similar to the IP address (: replaced by _). If you are using textual configuration it is the third value in the UID (e.g. â1â in the example from the documentation Bridge avmfritz:fritzbox:1).
Thanks for your help @cweitkamp. I could fix it by removing and adding the Fritz!Box thing again. Seems to be necessary after upgrading from 2.4.0 to 2.5.0 M1. To verify the paring is correct I checked if I can find my templates in the control section: