@@ -4319,8 +4319,7 @@ class FastSearchCard extends HTMLElement {
43194319 transform: translateY(-1px);
43204320 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
43214321 }
4322-
4323- /* Timer Icon Container */
4322+
43244323 .timer-icon-container {
43254324 width: 24px;
43264325 height: 24px;
@@ -4332,10 +4331,36 @@ class FastSearchCard extends HTMLElement {
43324331 font-weight: 600;
43334332 flex-shrink: 0;
43344333 padding: 10px;
4335- background: linear-gradient(135deg, #4CAF50, #388E3C);
43364334 color: white;
4335+ /* Kein Standard-Background mehr */
4336+ }
4337+
4338+ /* Action-spezifische Timer Icon Farben */
4339+ .timer-item[data-action-type="turn_on"] .timer-icon-container {
4340+ background: linear-gradient(135deg, #4CAF50, #388E3C); /* Grün für EIN */
4341+ }
4342+
4343+ .timer-item[data-action-type="turn_off"] .timer-icon-container {
4344+ background: linear-gradient(135deg, #F44336, #D32F2F); /* Rot für AUS */
4345+ }
4346+
4347+ .timer-item[data-action-type="dim_30"] .timer-icon-container {
4348+ background: linear-gradient(135deg, #FF9800, #F57C00); /* Orange für 30% */
4349+ }
4350+
4351+ .timer-item[data-action-type="dim_50"] .timer-icon-container {
4352+ background: linear-gradient(135deg, #9C27B0, #7B1FA2); /* Lila für 50% */
4353+ }
4354+
4355+ .timer-item[data-action-type="heat"] .timer-icon-container {
4356+ background: linear-gradient(135deg, #FF5722, #E64A19); /* Rot für Heizen */
43374357 }
43384358
4359+ .timer-item[data-action-type="cool"] .timer-icon-container {
4360+ background: linear-gradient(135deg, #2196F3, #1976D2); /* Blau für Kühlen */
4361+ }
4362+
4363+
43394364 /* Timer Content Area */
43404365 .timer-content-area {
43414366 flex: 1;
@@ -9960,8 +9985,36 @@ class FastSearchCard extends HTMLElement {
99609985 // Timer Icon basierend auf Action
99619986 const timerIcon = this.getPresetIconForAction(action);
99629987
9988+
9989+
9990+ // Bestimme Action-Type für CSS-Styling
9991+ let actionType = 'default';
9992+ if (action.includes('Einschalten') || action.includes('Ein')) {
9993+ actionType = 'turn_on';
9994+ } else if (action.includes('Ausschalten') || action.includes('Aus')) {
9995+ actionType = 'turn_off';
9996+ } else if (action.includes('30%')) {
9997+ actionType = 'dim_30';
9998+ } else if (action.includes('50%')) {
9999+ actionType = 'dim_50';
10000+ } else if (action.includes('Heizen') || action.includes('22°C')) {
10001+ actionType = 'heat';
10002+ } else if (action.includes('Kühlen') || action.includes('18°C')) {
10003+ actionType = 'cool';
10004+ } else if (action.includes('Play') || action.includes('Abspielen')) {
10005+ actionType = 'play';
10006+ } else if (action.includes('Pause')) {
10007+ actionType = 'pause';
10008+ } else if (action.includes('Öffnen')) {
10009+ actionType = 'open';
10010+ } else if (action.includes('Schließen')) {
10011+ actionType = 'close';
10012+ }
10013+
10014+
10015+
996310016 return `
9964- <div class="active-timer-item timer-item" data-timer-id="${timer.schedule_id}">
10017+ <div class="active-timer-item timer-item" data-timer-id="${timer.schedule_id}" data-action-type="${actionType }">
996510018 <div class="timer-icon-container">
996610019 ${timerIcon}
996710020 </div>
@@ -9974,6 +10027,11 @@ class FastSearchCard extends HTMLElement {
997410027 <span class="timer-time-badge">${timeUntil}</span>
997510028 </div>
997610029 </div>
10030+
10031+
10032+
10033+
10034+
997710035 <div class="timer-action-buttons">
997810036 <button class="timer-edit" data-timer-id="${timer.schedule_id}" title="Timer bearbeiten">
997910037 <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
0 commit comments