summaryrefslogtreecommitdiffstats
path: root/export/extract.sh
blob: b59fc69b1e3827044c904b7f7055e04d792ffa7f (plain)
1
2
HA_TOKEN=$(cat ha_token)
curl -s -H "Authorization: Bearer $HA_TOKEN"  http://localhost:8123/api/states | jq '[ .[] | select(.entity_id | startswith("automation.")) | {entity_id, state} ] | sort_by(.entity_id)' > automation_states.json