Imported from covertbert/home-assistant (
AGENTS.md). Install upstream withnpx skills add covertbert/home-assistant. Copyright stays with the author.
Home Assistant UI preview
For changes to www/*.js:
- Validate with
node --check <file>. - Preview with
scp <file> homeassistant:/config/<file>. - Reload dashboard bypassing cache and review result before another change.
- Do not commit or push until user accepts preview.
- Before commit or push, restore previewed files by copying repository versions back with
scp. - Confirm preview changes are intentional, then commit and push local repo. GitHub Actions owns deployment over Tailscale/SSH.
Custom-card resource URLs stay as /local/*.js; deployment updates their Lovelace URLs to /local/*.js?v=<commit> through the supported WebSocket API, so browsers fetch changed cards without an HA restart.