feat: HA filter — remove floodlights, water heater, scenes, media players

This commit is contained in:
2026-06-22 03:58:57 +00:00
parent 2f4b4ef5c3
commit e68bb7d165
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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',
+1 -1
View File
@@ -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_',