I like to tell my Google Nest Hub Display to show my Lovelace view, I understand that it is possible by linking a Script to Google Assistant, I can however not get this script to work:
'1586867807497':
alias: Show Home Assistant
sequence:
- data:
entity_id: media_player.family_room_display
view_path: Main
entity_id: media_player.family_room_display
service: cast.show_lovelace_view
I get this error: Failed to call service script/1586867807497. value should be a string for dictionary value @ data['entity_id'] but it is a string…
Failed to call service script/1586867807497. value should be a string for dictionary value @ data['entity_id']
'1586867807497':
alias: Show Home Assistant
sequence:
- data:
view_path: Main
entity_id: media_player.family_room_display
service: cast.show_lovelace_view
I think you found a bug. I get the same error as you. When trying this script in Developer Tools > Services it works, only without the expected outcome.
Except from that I can’t get casting to work, the screen of my Nest Hub shows only the “Connected” screen. Since the implementation of the Lovelace dashboard implementation is doesn’t work for me.
I’ve created a similar script but for some reason it displays sometimes, displays the nabu casa screen sometimes, doesn’t display anything sometimes. Anyone have any idea how to make it work consistently?