diff options
Diffstat (limited to 'export')
-rw-r--r-- | export/automation_states.json | 194 | ||||
-rw-r--r-- | export/extract.sh | 2 |
2 files changed, 196 insertions, 0 deletions
diff --git a/export/automation_states.json b/export/automation_states.json new file mode 100644 index 0000000..32f51a2 --- /dev/null +++ b/export/automation_states.json @@ -0,0 +1,194 @@ +[ + { + "entity_id": "automation.alarm_power", + "state": "on" + }, + { + "entity_id": "automation.alarms_2", + "state": "on" + }, + { + "entity_id": "automation.alarms_doorbell", + "state": "on" + }, + { + "entity_id": "automation.alarms_safety", + "state": "on" + }, + { + "entity_id": "automation.alarms_wine_notification", + "state": "on" + }, + { + "entity_id": "automation.bedroom", + "state": "on" + }, + { + "entity_id": "automation.bedroom_light_sync", + "state": "on" + }, + { + "entity_id": "automation.bedroom_switch3", + "state": "on" + }, + { + "entity_id": "automation.guestroom_lights_sync", + "state": "on" + }, + { + "entity_id": "automation.guestroom_mode_switch", + "state": "on" + }, + { + "entity_id": "automation.hall_entrance_combo3", + "state": "on" + }, + { + "entity_id": "automation.hall_hall_camera", + "state": "on" + }, + { + "entity_id": "automation.hall_kitchen_combo", + "state": "on" + }, + { + "entity_id": "automation.hall_kitchen_music", + "state": "on" + }, + { + "entity_id": "automation.hall_kitchen_sync", + "state": "on" + }, + { + "entity_id": "automation.hall_manual_mode_switch", + "state": "on" + }, + { + "entity_id": "automation.infrastructure", + "state": "on" + }, + { + "entity_id": "automation.kitchen_motions", + "state": "on" + }, + { + "entity_id": "automation.knob_bulb_control", + "state": "off" + }, + { + "entity_id": "automation.knob_multi_bulb_control", + "state": "off" + }, + { + "entity_id": "automation.light_switch", + "state": "on" + }, + { + "entity_id": "automation.living_light_sync", + "state": "on" + }, + { + "entity_id": "automation.modes", + "state": "on" + }, + { + "entity_id": "automation.motions_bathroom_v2", + "state": "on" + }, + { + "entity_id": "automation.motions_bedroom_aircon", + "state": "on" + }, + { + "entity_id": "automation.motions_bedroom_v2", + "state": "on" + }, + { + "entity_id": "automation.motions_global_v2", + "state": "on" + }, + { + "entity_id": "automation.motions_guestroom", + "state": "on" + }, + { + "entity_id": "automation.motions_kitchen_music", + "state": "on" + }, + { + "entity_id": "automation.motions_living", + "state": "on" + }, + { + "entity_id": "automation.motions_living_office_wakeup", + "state": "on" + }, + { + "entity_id": "automation.motions_night_light", + "state": "on" + }, + { + "entity_id": "automation.motions_office", + "state": "on" + }, + { + "entity_id": "automation.network_backup", + "state": "off" + }, + { + "entity_id": "automation.new_automation", + "state": "on" + }, + { + "entity_id": "automation.new_automation_3", + "state": "on" + }, + { + "entity_id": "automation.night_light_off", + "state": "on" + }, + { + "entity_id": "automation.occupancy_tracking", + "state": "on" + }, + { + "entity_id": "automation.office_button", + "state": "on" + }, + { + "entity_id": "automation.office_dimming_button", + "state": "off" + }, + { + "entity_id": "automation.office_knob_sound_bulb_control", + "state": "on" + }, + { + "entity_id": "automation.office_sven", + "state": "on" + }, + { + "entity_id": "automation.power_outtage", + "state": "on" + }, + { + "entity_id": "automation.security_camera", + "state": "on" + }, + { + "entity_id": "automation.speakerphone", + "state": "on" + }, + { + "entity_id": "automation.sven_scene_switch", + "state": "on" + }, + { + "entity_id": "automation.telegram", + "state": "on" + }, + { + "entity_id": "automation.time", + "state": "on" + } +] 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 |