Entities cast problem

I am trying to create a dashboard to cast on my nest hub, but i cannot understand how to use the cast type card.

This is the code i created to navigate from the cast dashboard to another dashboard

      - type: entities
        entities:
          cards:
            type: cast
            dashboard: /lovelace-tablet
            view: media-tablet
            cards:
              - type: custom:button-card
                color: auto
                name: Media
                icon: mdi:cast-audio
                styles:
                  card:
                    - font-size: 12px
                    - font-weight: bold
                  icon:
                    - color: >
                        [[[
                          if (states['sensor.media_state'].state == 'playing')
                            return "green";
                          return "red";
                        ]]]                                    
                tap_action:
                  action: navigate
                  navigation_path: /lovelace-tablet/media-tablet

But i get the errror ā€˜No devices foundā€™

I am sure i am doing something wrong but can someone help me to trace the error?
The docs about the cast card is not helping meā€¦

The ā€œtype: castā€ is used to start Home Assistant Cast, which pops up a dialog to select a device to cast to. You run this from a PC/tablet to cast to a Nest, not from a Nest device already being cast to. You can see this by opening that dashboard on your PC, where you will get a button to browse devices that can be cast to.

According to the Home Assistant Cast blogā€¦

Navigate between views using navigate actions inside an entities card or using weblinks.

So I would think youā€™d get rid of the entities card (since you donā€™t want to display an entity), and just have the button-card doing the navigate (I havenā€™t tested it though).

1 Like

Can you post an example about it so i can understand better?

I am trying to use the cast row in entities in this way:

              - type: entities
                entities:
                  - type: cast
                    name: Media
                    dashboard: lovelace-tablet
                    view: /media-tablet
                    entity_id: media_player.nest_hub
                    hide_if_unavailable: false

But what i get is this:

Schermata 2023-02-12 alle 12.29.35

I am using nabu casa cloud.

What is wrong?

@maurizio53 if you havenā€™t solved this yet - have a look in your router, you may need to open a port to get accessā€¦ I forward port 443 to 8123
/J

Ok, thanks, iā€™ll try itā€¦