b0mbays / continuously_casting_dashboards

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

Failed to extract volume information from status_output for Google Nest Hub. Using default volume 5 #30

Closed sebastian-bugajny closed 1 year ago

sebastian-bugajny commented 1 year ago

Is that expected:

2023-07-25 13:20:20.179 WARNING (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Failed to extract volume information from status_output for Google Nest Hub. Using default volume 5. 2023-07-25 13:20:20.182 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 0... 2023-07-25 13:20:25.941 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing the dashboard cast command... 2023-07-25 13:20:31.695 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 5...

Want to add I've configured volume like:

continuously_casting_dashboards: logging_level: debug cast_delay: 45 volume: 4 start_time: "06:30" end_time: "00:00" devices: "Google Nest Hub": dashboard_url: "http://192.168.10.187:8123/google-nest/main?kiosk"

I'm using HA version 2023.7.2 continuously_casting_dashboards: 1.2.6

b0mbays commented 1 year ago

Hey @sebastian-bugajny it looks like you have the volume in the wrong section. Could you remove it from the top of you config and place it inside the 'devices' section for each device? For example here is my config:

  logging_level: debug
  cast_delay: 25
  start_time: "06:00"
  end_time: "02:00"
  devices:
    "Kitchen display":
      dashboard_url: "http://192.168.12.104:8123/kitchen-dashboard/default_view?kiosk"
      volume: 5
      start_time: "06:00"
      end_time: "03:00"
sebastian-bugajny commented 1 year ago

Hey @b0mbays I've done exactly like you recommend but still the same

logs: 2023-07-26 09:37:52.541 WARNING (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Failed to extract volume information from status_output for Google Nest Hub. Using default volume 5. 2023-07-26 09:37:52.602 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 0... 2023-07-26 09:37:58.340 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing the dashboard cast command... 2023-07-26 09:38:04.083 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 40... 2023-07-26 09:38:54.855 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Current local time: 09:38:54.855907 2023-07-26 09:38:54.856 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Local time is inside the allowed casting time for Google Nest Hub. Start time: 06:30:00 - End time: 00:00:00 2023-07-26 09:39:06.358 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] HA Dashboard (or media) is NOT playing on Google Nest Hub! 2023-07-26 09:39:06.358 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Casting dashboard to Google Nest Hub 2023-07-26 09:39:06.361 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing stop command...

config:

continuously_casting_dashboards: logging_level: debug cast_delay: 45 start_time: "06:30" end_time: "00:00" devices: "Google Nest Hub": dashboard_url: "http://192.168.10.187:8123/google-nest/main?kiosk" volume: 4 start_time: "06:30" end_time: "00:00"

b0mbays commented 1 year ago

It looks like the device is now being set correctly:

2023-07-26 09:38:04.083 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 40...

Can you check the device after the cast to see if it is?

The warning about not being able to extract is OK, this is a feature where CCD will try and read the current volume and leave it unchanged after the cast. However some devices are unable to be read so this will always fail.

b0mbays commented 1 year ago

Is your issue that the casting is not working at all? I see in your log it is trying to cast again after

sebastian-bugajny commented 1 year ago

Yeah it doesn't work at all and based on logs I don't have any more clues what might be wrong.

b0mbays commented 1 year ago

Can you access the dashboard using the URL on the same network as your hub?

http://192.168.10.187:8123/google-nest/main?kiosk

What behaviour do you see on the hub too? Do you see a "Dash cast" screen and then it goes off? Or nothing at all.

sebastian-bugajny commented 1 year ago

Yes I can. I'm getting login webpage and after providing creds dashboard is loading. I tried to bypass login by applying

homeassistant: external_url: "https://my.external.endpoint" auth_providers:

but after restarting I'm loosing access via external endpoint and internally I can only login to maintenance mode.

b0mbays commented 1 year ago

What happens on the Google Hub? What do you see when it is trying to cast?

sebastian-bugajny commented 1 year ago

When I run manually casting via catt like:

catt -d 192.168.10.44 cast_site http://192.168.10.187:8123/google-nest/main?kiosk

It starts casting and I'm getting login webpage for HA

sebastian-bugajny commented 1 year ago

When I replaced device_name: "Google Nest Hub": with it's local IP address: 192.168.10.44 it started working

b0mbays commented 1 year ago

The naming of the Hub might be incorrect (capital letters etc). Can you do a 'catt scan' manually and see what you get?

If you are getting a login screen then that means your trusted users section is not setup correctly. Can you post that from your config?

sebastian-bugajny commented 1 year ago

Yeah I did a scan and name was correct, but it doesn't matter as it works with IP so all good. Problem with trusted users have been also removed and it works like a charm from yesterday ( catt + ha-catt-fix + continuously_casting_dashboards )/ Thank you for all your help.

b0mbays commented 1 year ago

Nice, great to hear! No problem