preset Shutter percentages changed

This commit is contained in:
Patrick Haßel 2023-06-19 09:39:05 +02:00
parent 59309b6a92
commit 7738927be4
2 changed files with 20 additions and 10 deletions

View File

@ -20,12 +20,7 @@
</td> </td>
<td *ngSwitchCase="'SHUTTER'" [class.true]="entry.value === 0" [class.false]="entry.value === 100" [class.tristate]="0 < entry.value && entry.value < 100"> <td *ngSwitchCase="'SHUTTER'" [class.true]="entry.value === 0" [class.false]="entry.value === 100" [class.tristate]="0 < entry.value && entry.value < 100">
<select [ngModel]="entry.value" (ngModelChange)="setEntry(entry, 'value', $event)"> <select [ngModel]="entry.value" (ngModelChange)="setEntry(entry, 'value', $event)">
<option [ngValue]="0">100% Offen</option> <option *ngFor="let _ of [].constructor(21); let value = index" [ngValue]="value * 5">{{value * 5}}%</option>
<option [ngValue]="35">&nbsp;50%</option>
<option [ngValue]="55">&nbsp;75%</option>
<option [ngValue]="75">&nbsp;90% Sonnenschutz</option>
<option [ngValue]="85">100% Schlitze</option>
<option [ngValue]="100">100% Geschlossen</option>
</select> </select>
</td> </td>
<td *ngSwitchCase="'BRIGHTNESS_PERCENT'" [class.true]="entry.value" [class.false]="!entry.value" [class.tristate]="0 < entry.value && entry.value < 100"> <td *ngSwitchCase="'BRIGHTNESS_PERCENT'" [class.true]="entry.value" [class.false]="!entry.value" [class.tristate]="0 < entry.value && entry.value < 100">

View File

@ -43,14 +43,29 @@
<div class="control button" (click)="deviceService.setShutterPosition(device, 0)"> <div class="control button" (click)="deviceService.setShutterPosition(device, 0)">
<span class="center">Auf</span> <span class="center">Auf</span>
</div> </div>
<div class="control button" (click)="deviceService.setShutterPosition(device, 20)">
<span class="center">20%</span>
</div>
<div class="control button" (click)="deviceService.setShutterPosition(device, 30)">
<span class="center">30%</span>
</div>
<div class="control button" (click)="deviceService.setShutterPosition(device, 40)"> <div class="control button" (click)="deviceService.setShutterPosition(device, 40)">
<span class="center">40%</span>
</div>
<div class="control button" (click)="deviceService.setShutterPosition(device, 50)">
<span class="center">50%</span> <span class="center">50%</span>
</div> </div>
<div class="control button" (click)="deviceService.setShutterPosition(device, 75)"> <div class="control button" (click)="deviceService.setShutterPosition(device, 60)">
<span class="center">90%</span> <span class="center">60%</span>
</div> </div>
<div class="control button" (click)="deviceService.setShutterPosition(device, 85)"> <div class="control button" (click)="deviceService.setShutterPosition(device, 70)">
<span class="center">Schlitze</span> <span class="center">70%</span>
</div>
<div class="control button" (click)="deviceService.setShutterPosition(device, 80)">
<span class="center">80%</span>
</div>
<div class="control button" (click)="deviceService.setShutterPosition(device, 90)">
<span class="center">90%</span>
</div> </div>
<div class="control button" (click)="deviceService.setShutterPosition(device, 100)"> <div class="control button" (click)="deviceService.setShutterPosition(device, 100)">
<span class="center">Zu</span> <span class="center">Zu</span>