File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -10277,8 +10277,17 @@ class FastSearchCard extends HTMLElement {
1027710277 if (timer.timeslots && timer.timeslots.length > 0) {
1027810278 const firstAction = timer.timeslots[0].actions[0];
1027910279 const service = firstAction.service;
10280+ const serviceData = firstAction.service_data;
1028010281
10281- if (service.includes('turn_on')) return '🟢 Einschalten';
10282+ if (service.includes('turn_on')) {
10283+ // Prüfe auf brightness Parameter
10284+ if (serviceData && serviceData.brightness) {
10285+ const brightness = serviceData.brightness;
10286+ if (brightness === 77) return '🌙 Dimmen 30%';
10287+ if (brightness === 128) return '🌗 Dimmen 50%';
10288+ }
10289+ return '🟢 Einschalten';
10290+ }
1028210291 if (service.includes('turn_off')) return '🔴 Ausschalten';
1028310292 }
1028410293 return '⚙️ Aktion';
You can’t perform that action at this time.
0 commit comments