From 9044fbae5b57b12c27f834769fbfd0ff18b57f3f Mon Sep 17 00:00:00 2001 From: On Freund Date: Sun, 21 Apr 2024 03:37:01 +0300 Subject: [PATCH] Use `friendly_name` instead of `id` as caller id (#322) --- asterisk/rootfs/etc/cont-init.d/asterisk.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asterisk/rootfs/etc/cont-init.d/asterisk.sh b/asterisk/rootfs/etc/cont-init.d/asterisk.sh index 972a199..2692246 100755 --- a/asterisk/rootfs/etc/cont-init.d/asterisk.sh +++ b/asterisk/rootfs/etc/cont-init.d/asterisk.sh @@ -145,7 +145,7 @@ if bashio::var.true "${auto_add}"; then -H "Authorization: Bearer ${ha_token}" \ -H "Content-Type: application/json" \ "${ha_url}/api/states" | - jq -c '[.[] | select(.entity_id | contains("person.")).attributes.id]' + jq -c '[.[] | select(.entity_id | contains("person.")).attributes.friendly_name]' ) else # Define an empty array, so the subsequent template won't complain