A lightweight toolkit for managing a Home Assistant OS instance from your terminal.
- Query Home Assistant entities/services via REST API
- Pull/push
/configover SSH - Run remote
ha core checkandha core restart - Provide a safe local workflow for editing HA config
tools/ha_api.py- API helper (ping,config,services,entities)tools/ha_config_sync.sh- SSH-based config sync and HA controlHA_AGENT_RUNBOOK.md- practical workflow and safety notes.env.example- required env vars template
- Copy env template:
cp .env.example .env
- Fill in
.envwith your HA URL, token, and SSH details. - Load env:
set -a; source .env; set +a
- Validate access:
python3 tools/ha_api.py ping
- Pull config mirror:
tools/ha_config_sync.sh pull
- Pull latest HA config to
./ha-config - Edit locally
- Push config
- Run
ha core check - Restart HA only if check passes
.envis git-ignored- Keep long-lived tokens and passwords out of committed files