From e68bb7d1650b247e4e7bab97f91ba4390113a4e3 Mon Sep 17 00:00:00 2001 From: Myron Blair Date: Mon, 22 Jun 2026 03:58:57 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20HA=20filter=20=E2=80=94=20remove=20floo?= =?UTF-8?q?dlights,=20water=20heater,=20scenes,=20media=20players?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/endpoints/ha.php | 3 ++- api/endpoints/stats_cache.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/api/endpoints/ha.php b/api/endpoints/ha.php index c99be19..648ad3a 100644 --- a/api/endpoints/ha.php +++ b/api/endpoints/ha.php @@ -83,7 +83,7 @@ if ($method === 'POST' && $action === 'service') { // Serve entities from ha_entities table (real-time agent push data) $skipDomains = ['sensor','binary_sensor','button','update','select','number', 'device_tracker','event','image','person','zone','tts','conversation', - 'assist_satellite','input_button','media_player','scene']; + 'assist_satellite','input_button','media_player','scene','water_heater']; $skipKeywords = [ // HACS / system toggles 'pre_release','get_hacs','matter_server','zerotier','mariadb', @@ -98,6 +98,7 @@ $skipKeywords = [ // Echo / smart display noise 'do_not_disturb', // Konnected security panel switches + 'floodlight', 'konnected', // Energy / power monitoring (sensors, not controls) '_energy','_power','_voltage','_current','_consumption', diff --git a/api/endpoints/stats_cache.php b/api/endpoints/stats_cache.php index b9c60bc..416aee4 100644 --- a/api/endpoints/stats_cache.php +++ b/api/endpoints/stats_cache.php @@ -135,7 +135,7 @@ if (HA_TOKEN !== 'YOUR_HA_TOKEN_HERE' && strpos(HA_URL, '10.48.200.X') === false // Controllable domains only — skip read-only sensors to keep list manageable $interesting = ['light','switch','alarm_control_panel', - 'lawn_mower','water_heater','fan','lock','cover','climate','input_boolean']; + 'lawn_mower','fan','lock','cover','climate','input_boolean']; // Switches that are HA internals / camera settings, not physical devices $skipKeywords = ['pre_release','_record','_ftp_','_push_','_hub_ringtone', '_siren_on','_email_on','_manual_record','_infrared_',