Skip to content

Commit

Permalink
Use friendly_name instead of id as caller id (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
OnFreund committed Apr 21, 2024
1 parent d6b270d commit 9044fba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asterisk/rootfs/etc/cont-init.d/asterisk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9044fba

Please sign in to comment.