File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -10308,15 +10308,32 @@ class FastSearchCard extends HTMLElement {
1030810308 const service = firstAction.service;
1030910309 const serviceData = firstAction.service_data;
1031010310
10311- if (service.includes('turn_on')) {
10311+ // Light Actions
10312+ if (service.includes('light.turn_on')) {
1031210313 if (serviceData && serviceData.brightness) {
1031310314 const brightness = serviceData.brightness;
1031410315 if (brightness === 77) return 'Dimmen 30%';
1031510316 if (brightness === 128) return 'Dimmen 50%';
1031610317 }
1031710318 return 'Einschalten';
1031810319 }
10319- if (service.includes('turn_off')) return 'Ausschalten';
10320+ if (service.includes('light.turn_off')) return 'Ausschalten';
10321+
10322+ // Climate Actions - NEU!
10323+ if (service.includes('climate.set_temperature')) {
10324+ if (serviceData && serviceData.hvac_mode && serviceData.temperature) {
10325+ if (serviceData.hvac_mode === 'heat') return `Heizen ${serviceData.temperature}°C`;
10326+ if (serviceData.hvac_mode === 'cool') return `Kühlen ${serviceData.temperature}°C`;
10327+ }
10328+ return 'Temperatur setzen';
10329+ }
10330+ if (service.includes('climate.set_hvac_mode')) {
10331+ if (serviceData && serviceData.hvac_mode) {
10332+ if (serviceData.hvac_mode === 'dry') return 'Entfeuchten';
10333+ if (serviceData.hvac_mode === 'fan_only') return 'Lüften';
10334+ }
10335+ }
10336+ if (service.includes('climate.turn_off')) return 'Ausschalten';
1032010337 }
1032110338 return 'Aktion';
1032210339 }
You can’t perform that action at this time.
0 commit comments