@@ -11200,9 +11200,32 @@ class FastSearchCard extends HTMLElement {
1120011200 // Filter results
1120111201 const filter = chip.dataset.actionFilter;
1120211202 console.log(`🔽 Filtering actions: ${filter}`);
11203+ // Re-render mit Filter
11204+ this.filterActionResults(item, filter, container);
1120311205 });
1120411206 });
1120511207 }
11208+
11209+ // 🎯 FILTER ACTION RESULTS
11210+ filterActionResults(item, filter, container) {
11211+ console.log(`🔍 Filtering actions for ${item.name} by: ${filter}`);
11212+
11213+ const deviceArea = item.area;
11214+ const deviceId = item.id;
11215+
11216+ // Hole die Actions neu (könnte optimiert werden mit Caching)
11217+ const relatedActions = {
11218+ scenes: this.findRelatedScenes(deviceId, deviceArea),
11219+ scripts: this.findRelatedScripts(deviceId, deviceArea),
11220+ automations: this.findRelatedAutomations(deviceId, deviceArea)
11221+ };
11222+
11223+ // Render mit Filter
11224+ const resultsDiv = container.querySelector('.actions-results');
11225+ this.renderActionResults(relatedActions, resultsDiv, filter);
11226+
11227+ console.log(`✅ Filtered to show: ${filter}`);
11228+ }
1120611229
1120711230 // 🎯 LOAD RELATED ACTIONS - Echte Discovery
1120811231 loadRelatedActions(item, container) {
0 commit comments