my goal is to create an Alarm clock widget with customisable Item names, so i can use one widget for different persons and days.
A typical item I need to control would look like:
NAME_WECKER_SO_H where NAME and SO are the “dynamic” parts.
In settings i defined two Strings:
owner_name (set to NAME)
theday (set to SO)
<label>{{itemValue('NAME_WECKER_SO_H')}}</label> gives me the actual value of the existing item
{{config.owner_name}}_WECKER_{{config.theday}}_H displays: NAME_WECKER_SO_H
but: <label>{{itemValue({{config.owner_name}}_WECKER_{{config.theday}}_H)}}</label> does not work.
I tried different variations but i just can’t find the right way to “nest” this
Would someone know if this is possible at all, and if so provide an example?
Many thanks in advance,
Best Regards,
-OLI
Strike! Just started fiddling with ng-init - you saved me at least half a day
Thanks a million. Once it’s all finished I’ll add it to the Alarm clock example I’ve made so it covers Classic UI, HABDroid and now HABPanel…
Edit: All working, even though not really shiny yet…but function first: