mirror of
https://github.com/myronblair/jarvis
synced 2026-06-30 17:50:23 -05:00
feat: HA tab — filter scenes/media_player, nightly full resync cron, remove JS polling
- ha.php skipDomains: added media_player, scene - ha.php skipKeywords: konnected, energy/power/voltage/current, full camera list - stats_cache.php: same filter updates, removed scene/media_player from sync - Removed JS setInterval polling; entity state kept fresh by HA agent push - Added nightly 3am cron for full HA entity resync
This commit is contained in:
@@ -698,16 +698,6 @@ async function loadProxmox() {
|
||||
}
|
||||
|
||||
// ── HOME ASSISTANT ────────────────────────────────────────────────────
|
||||
let _haRefreshTimer = null;
|
||||
function _startHARefresh() {
|
||||
if (_haRefreshTimer) return;
|
||||
_haRefreshTimer = setInterval(() => {
|
||||
if (document.getElementById('tab-ha')?.classList.contains('active') ||
|
||||
document.getElementById('tab-home')?.classList.contains('active')) {
|
||||
loadHA();
|
||||
}
|
||||
}, 30000);
|
||||
}
|
||||
async function loadHA() {
|
||||
const data = await api('ha');
|
||||
const el = document.getElementById('ha-list');
|
||||
@@ -733,7 +723,6 @@ async function loadHA() {
|
||||
}
|
||||
|
||||
renderHATable(entities);
|
||||
_startHARefresh();
|
||||
}
|
||||
|
||||
const _domainIcon = {
|
||||
|
||||
Reference in New Issue
Block a user