I was in the same situation and created a restful command for it.
- As an administrator, issue a long-live access token
- Create a restful command in the
configuration.yaml:
rest_command:
privileged_show_lovelace_view:
url: http://localhost:8123/api/services/cast/show_lovelace_view
method: post
headers:
authorization: !secret api_admin_showlovelaceview_token
content_type: "application/json; charset=utf-8"
payload: '{
"entity_id": "{{ entity_id }}",
"dashboard_path": "{{ dashboard_path }}",
"view_path": "{{ view_path }}"
}'
- Put the issued token in the
secrets.yaml - In the cards’ YAML, replace all
cast.show_lovelace_viewtorest_command.privileged_show_lovelace_view
This should allow non administrators to cast dashboard views now.