Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cast.show_lovelace_view appears to strip out query parameters from view_path #98316

Open
felipecrs opened this issue Aug 12, 2023 · 15 comments
Open
Assignees

Comments

@felipecrs
Copy link
Contributor

The problem

I want to do the following:

service: cast.show_lovelace_view
data:
  view_path: "0?frigate-card-action:camera_select=portao"
  dashboard_path: frigate-card
  entity_id: media_player.tv_da_sala

I.e. pass a query parameter to the view_path, so that the casted page should be:

https://<my-hass>/frigate-card/0?frigate-card-action:camera_select=portao

However, apparently the query parameters are stripped out before being sent to the media player. The casted lovelace view behaves as if there was no query param at all.

What version of Home Assistant Core has the issue?

core-2023.8.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Google Cast

Link to integration documentation on our website

https://www.home-assistant.io/integrations/cast/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

Refs dermotduffy/frigate-hass-card#1231

@home-assistant
Copy link

Hey there @emontnemery, mind taking a look at this issue as it has been labeled with an integration (cast) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of cast can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign cast Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


cast documentation
cast source
(message by IssueLinks)

@Neonox31
Copy link

FYI on my side query params seems not to be striped out but the dashboard view is not found :
20230813_070852_F5FED3E9

Here is how I call the cast.show_lovelace_view service :

service: cast.show_lovelace_view
data:
  entity_id: media_player.kitchen_google_home
  dashboard_path: frigate-cameras
  view_path: default_view?frigate-card-action:camera_select=camera.garden_patio

And it's the same problem with media_player.play_media service :

service: media_player.play_media
data:
  entity_id: media_player.kitchen_google_home
  media_content_type: lovelace
  media_content_id: "frigate-cameras/default_view?frigate-card-action:camera_select=camera.garden_patio"

Note if I remove the ?frigate-card-action:camera_select=camera.garden_patio part, it works with both services.

@felipecrs
Copy link
Contributor Author

@Neonox31 have you tried with 0 instead of default_view?

@Neonox31
Copy link

Neonox31 commented Sep 1, 2023

@felipecrs Indeed, it seems to work using 0 instead of default_view, thanks a lot ! But I don't understand why !

@Neonox31
Copy link

Neonox31 commented Sep 1, 2023

But camera selection doesn't occur, so I'm not sure that query params are correctly taken account using 0 😥

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@felipecrs
Copy link
Contributor Author

This is still valid and some feedback would be welcome.

@github-actions github-actions bot removed the stale label Nov 30, 2023
@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@felipecrs
Copy link
Contributor Author

This is still valid and some feedback would be welcome.

@github-actions github-actions bot removed the stale label Feb 29, 2024
@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@felipecrs
Copy link
Contributor Author

Still valid, tested this week.

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@felipecrs
Copy link
Contributor Author

Still valid

@github-actions github-actions bot removed the stale label Aug 28, 2024
@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@felipecrs
Copy link
Contributor Author

Still applicable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants