Hi guys,
first of all I’n not a skilled coder or even better i know nothing about html an css, but I decided to give it a try!
I thought the HABPanel could need a new Somfy widget for (slatted) Venetian blinds since there seems to be none! For one week I sadly didn’t got far but I hope someone will help because I’m getting frustrated…
See: https://www.openhab.org/addons/bindings/somfytahoma/
What I’m trying to do should look like this:
On the left side opening/closing the blinds as seen often.
In the middel: arrows to go all the way up/down and stop button.
On the right side should be a slider/scale to controll the orientation of the slats. To look cool the slat should turn like the orientation.
I guess this is easy for a skilled coder and maybe someone has enough time so spent.
What I’ve done so far and working half ways:
<div>
<h4 style="font-size: {{config.font_size}}px;" > {{config.visible_label}}</h4>
</div>
<p>
</p>
<body>
<table style="width: 100%">
<tr>
<td>
<div class="div-slider">
<div style="height: 250px" ng-init='model={"item": (config.blinds_item), "floor": 0, "ceil": 100, "step":(config.step), "unit": "%", "vertical": true, "inverted": true};' >
<widget-slider ng-model="model" ng-click="sendCmd(config.blinds_item, 'MOVE')" />
</div>
</div>
</td>
<td>
<span>
<widget class="glyphicon glyphicon-menu-up" style="font-size:{{config.arrow_size}}px" ng-click="sendCmd(config.blinds_item, 'UP')" />
</span>
<span>
<widget-icon iconset="'eclipse-smarthome-classic'" icon="'cu_blinds'" size="(config.icon_size)" state="itemState(config.blinds_item)" ng-click="sendCmd(config.blinds_item, 'STOP')" />
</span>
<span>
<widget class="glyphicon glyphicon-menu-down" style="font-size:{{config.arrow_size}}px" ng-click="sendCmd(config.blinds_item, 'DOWN')" ;/>
</span>
</td>
<td>
</td>
</tr>
</table>
</body>
Also created custom icons:
also for the slat itself:
Hope someone can help to finish this!