Hello!
My Rollershutter Widget needs 3 items, f.e.:
config.blind_item: rs_wz_klein
config.lamellen_item: rs_wz_klein_lm
config.auto_item: rs_wz_klein_auto
at the moment i have to give the widget all three item-names, but basically the 1st item should be enough. “lamellen_item” and “auto.item” can be created from blind_item…
could anyone please give me a hint on how to do this?
<div ng-if="itemValue(config.auto_item)=='ON'">
<button ng-style="{'color': '#0db9f0'}" ng-click="sendCmd(config.auto_item, 'OFF')">
<i class="glyphicon glyphicon-refresh" style="font-size:20px;"></i>
</button>
</div>
to this
<div ng-if="itemValue(**config.blind_item+'_auto'**)=='ON'">
<button ng-style="{'color': '#0db9f0'}" ng-click="sendCmd(**config.blind_item+'_auto'**, 'OFF')"
<i class="glyphicon glyphicon-refresh" style="font-size:20px;"></i>
</button>
</div>