From 21ce0a991753461e88ecdadf4ce9fbcf4be8464c Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Mon, 8 Sep 2025 18:59:41 +0400 Subject: Track automation states via script --- export/extract.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 export/extract.sh (limited to 'export/extract.sh') diff --git a/export/extract.sh b/export/extract.sh new file mode 100644 index 0000000..b59fc69 --- /dev/null +++ b/export/extract.sh @@ -0,0 +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 -- cgit v1.2.3