We’ll, „just“ the whole logic behind templating
I am still quite a newbie and not a code person at all, so I try to do copy/paste as good as it gets, and by that step up my knowledge.
Some options support templates whereas others do not. In this particular situation, the State Condition’s entity_id option does not support a template. The solution is to use another kind of condition that does support templates.
Tip
If the documentation for a trigger or condition doesn’t include any example showing the use of templates in its options then, as a general rule, those options don’t support templates. For example, the documentation for State Condition contains no examples of entity_id with templates.
Another issue I have with this script is, when I use for the repeat part „Rollo“ the device Name as I see it under devices (Rollo Buero) instead of the number, the whole thing doesn’t work. Otherwise when I use the gui for a similar script where I can use the gui and put the Rollo Buero Name in as device the script accepts it,
Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic is resolved. This helps other users find answers to similar questions. For more information, refer to guideline 21 in the FAQ.
ok, so I again have to find a different way to set the preset value ;-(
is there a specific reason that device action doesn’t support templates or ‚just not implemented‘ (so I could suggest a feature request)?
actually as long as I use the {{repeat.item}} for the dice_id only there is no problem only when I try it for the entity_id.
Again, thanks. It’s confusing that there are different ways to get to the same result.
The device action I picked is specifically implemented in the custom_Homematic integration, the device is integrated with this integration
Well, with this slightly different service call, it does work