mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-20 14:37:01 +01:00
v4.3.3.12 - Update NsPanelTs.ts
This commit is contained in:
@@ -3814,7 +3814,7 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
|||||||
|
|
||||||
if (existsState(pageItem.id + '.ACTUAL')) {
|
if (existsState(pageItem.id + '.ACTUAL')) {
|
||||||
let timer_actual = getState(pageItem.id + '.ACTUAL').val
|
let timer_actual = getState(pageItem.id + '.ACTUAL').val
|
||||||
name = String(Math.floor(timer_actual / 60)) + ':' + String(timer_actual % 60);
|
name = ('0' + String(Math.floor(timer_actual / 60))).slice(-2) + ':' + ('0' + String(timer_actual % 60)).slice(-2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Debug) log('CreateEntity Icon role value.alarmtime ~' + type + '~' + pageItem.id + '~' + iconId + '~' + iconColor + '~' + name + '~' + alarmtimerText + ' ' + val, 'info');
|
if (Debug) log('CreateEntity Icon role value.alarmtime ~' + type + '~' + pageItem.id + '~' + iconId + '~' + iconColor + '~' + name + '~' + alarmtimerText + ' ' + val, 'info');
|
||||||
@@ -7472,13 +7472,13 @@ function GenerateDetailPage(type: string, optional: string, pageItem: PageItem):
|
|||||||
sec_remaining = timer_actual % 60;
|
sec_remaining = timer_actual % 60;
|
||||||
editable = 1;
|
editable = 1;
|
||||||
action2 = 'start';
|
action2 = 'start';
|
||||||
label2 = 'ein';
|
label2 = findLocale('timer', 'on');
|
||||||
} else {
|
} else {
|
||||||
min_remaining = Math.floor(timer_actual / 60);
|
min_remaining = Math.floor(timer_actual / 60);
|
||||||
sec_remaining = timer_actual % 60;
|
sec_remaining = timer_actual % 60;
|
||||||
editable = 0;
|
editable = 0;
|
||||||
action2 = 'pause';
|
action2 = 'pause';
|
||||||
label2 = 'aus';
|
label2 = findLocale('timer', 'off');;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user