b0mbays / continuously_casting_dashboards

HACS Integration for continuously casting a Home Assistant dashboard to your Google Chromecast Displays
MIT License
228 stars 11 forks source link

Not casting #12

Closed Thorvarium closed 1 year ago

Thorvarium commented 1 year ago

Hi, I've tried many things and I still can't get my dashboard to cast to my google hub. Every 45 seconds or so my device volume changes to 0 and it opens a screen with "DashCast" and it closes after a few seconds and the volume goes back to 5.

my configuration:

cast_delay: 45 #Required: Time (in seconds) for casting checks between devices
start_time: "00:01" #Required: Start time of the casting window (format: "HH:MM")
end_time: "00:00" #Required: End time of the casting window (format: "HH:MM") and must be after "00:00"
devices:
  "Kitchen display": #Required: Display name of your device. Find this on the actual device's settings or inside the Google Home app.
    dashboard_url: "http://homeassistant.local:8123/master-bedroom-v2/0" #Required: Dashboard URL to be casted

I subscribe to nabu casa and configured the trusted_networks inside configuration.yaml When I open http://homeassistant.local:8123/master-bedroom-v2/0 on my phone for example it works fine and does not ask for credentials.

my logs shows that in loop:


2023-04-24 17:55:38.823 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for Kitchen display when checking for dashboard state 'Dummy': Volume: 50

2023-04-24 17:55:38.823 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] HA Dashboard (or media) is NOT playing on Kitchen display!
2023-04-24 17:55:38.823 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Casting dashboard to Kitchen display
2023-04-24 17:55:38.897 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing stop command...
2023-04-24 17:55:41.967 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 0...
2023-04-24 17:55:45.055 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing the dashboard cast command...
2023-04-24 17:55:48.702 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume back to 5...

What else can I test?

Thank you

b0mbays commented 1 year ago

Hey, this is because the hubs are unable to resolve the "homeassistant.local" in your URL. You need to use the IP of the home assistant instance. You can find this in your "Connected devices" inside your router settings, or another method through home assistants settings.

Your URL should look something like:

http://192.168.1.202:8123/my-dashboard?kiosk
Thorvarium commented 1 year ago

Hey, this is because the hubs are unable to resolve the "homeassistant.local" in your URL. You need to use the IP of the home assistant instance. You can find this in your "Connected devices" inside your router settings, or another method through home assistants settings.

Your URL should look something like:

http://192.168.1.202:8123/my-dashboard?kiosk

Thanks, this is working awesome now thanks!! I would add this in the configuration code comments to not use the homeassistant.local, also that the cast_delay is not for each device, but it rotates between the devices. I reduced this number a lot because I have 4 displays and it was taking too long to display the dashboard back after playing music.

Thanks for your work!

b0mbays commented 1 year ago

Great! 😄 Thanks for the suggestions, I have now updated the readme.

Closing this issue