Google Cast, works... for a while, Nest hub forgets rooms?

Hello!

I’m trying to make myself some room views to be avalible on my nest hub by voice activation.
I’ve got the code up and running and preparing for voice support but im stuck with this problem that
after a while… my nest hub/home assistant seems to forget my rooms exist untill I reboot my nest hub then all is fine an dandy. Not a workable solution though.

What am I missing??

Also my nest hub is currently setup to show photos when not in use, which seems to disable my cast and block further casts. Will try disabling that ofc.

Edit:
Doing a media_player.turn_off pulls my hub out of the “unable to find view with path…” and
my casting works again.
Question: Is this a must?

My input_select

google_cast_rooms:
  name: Google Cast Rooms
  options:
    - "vardagsrum" #livingroom
    - "kok"        #kitchen
  initial: "kok"
  icon: mdi:home

My scripts featuring

  • Next screen
  • Previous screen
  • Screen by “parameter in”
  • Show livingroom
cast_next_room:
  alias: Cast|Hubben|Next
  sequence:
    - service: input_select.select_next
      data:
        entity_id: input_select.google_cast_rooms
    - service: cast.show_lovelace_view
      data:
        dashboard_path: lovelace-rum
        entity_id: media_player.hubben
        view_path: "{{ states('input_select.google_cast_rooms') }}"

cast_prev_room:
  alias: Cast|Hubben|Previous
  sequence:
    - service: input_select.select_previous
      data:
        entity_id: input_select.google_cast_rooms
    - service: cast.show_lovelace_view
      data:
        dashboard_path: lovelace-rum
        entity_id: media_player.hubben
        view_path: "{{ states('input_select.google_cast_rooms') }}"

cast_by_param:
  alias: Cast|Hubben|Param
  description: "Cast Param to Hubben"
  fields:
    param:
      description: "Room name as found in input_select.google_cast_rooms"
      example: "vardagsrum"
  sequence:
    - service: input_select.select_option
      data:
        entity_id: input_select.google_cast_rooms
        option: "{{ param }}"
    - delay: 1
    - service: cast.show_lovelace_view
      data:
        dashboard_path: lovelace-rum
        entity_id: media_player.hubben
        view_path: "{{ states('input_select.google_cast_rooms') }}"

cast_livingroom:
  alias: Cast|Hubben|Livingroom
  variables:
    target: "vardagsrum"
  description: "Calls Cast|Hubben|Param with preset parameter"
  sequence:
    - service: script.cast_by_param
      data:
        param: "{{ target }}"


2 Likes