b0mbays / continuously_casting_dashboards

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

Trusted Network- Login page #61

Open tcdrake76 opened 2 months ago

tcdrake76 commented 2 months ago

I can't get this to work as I keep getting the login page. I have reviewed other tickets but didn't come up with a solution. Hopefully I am just missing something obvious. Hopefully someone can help me out here.

Here is my setup....

Chromecast hooked up to a monitor via HDMI

YAML config:


homeassistant:
  external_url: "https://xxxxxx.com" #external URL is accessible from outside of my network.
  auth_providers:
    - type: trusted_networks
      trusted_networks:
        - 172.168.90.35/32 #These are my display IP addresses, replace them with your own (including the /32)
      trusted_users:
        172.168.90.35: 3c9814e2460c4389bbd93c5b98321941 #Ensure this user has admin rights too
      allow_bypass_login: true
    - type: homeassistant

continuously_casting_dashboards:
  logging_level: debug #Required: Set the logging level - debug/info/warning (default is 'warning' - try 'debug' for debugging)
  cast_delay: 60 #Required: Time (in seconds) for casting checks between each device.
  start_time: "01:00"
  end_time: "23:59"
  devices:
    "Living room TV": #Required: Display name of your device. Find this on the actual device's settings or inside the Google Home app.
     - dashboard_url: "https://xxxxxxx.com/lovelace/calendar" #URL is accessible from outside of my network
       volume: 10 #Optional: Volume to set the display. (If you remove this, the device will remain the same volume)
b0mbays commented 1 month ago

Hi @tcdrake76 unfortunately I don't have a TV chromecast to test this on but that could the issue. I've only ever tested this on Google Hub's. Did you get this working or still an issue?

tcdrake76 commented 1 month ago

I am still having the issue. Attached is the login page I get. For some reason I can't get my trusted user (admin) to automatically login. 1efe16d7a003fa507ce86ead86b406b78f5db532

jopper1988 commented 3 days ago

Unfortunately i have the same problem with a Google Nest Hub gen2. He won't login into the dashboard:

20240702_103633 1

Working with HomeAssistant 2024.6.4

Here is my config:

homeassistant: external_url: "https://xxxxxxxx" #External URL is accessible from outside my network auth_providers:

continuously_casting_dashboards: logging_level: warning # Required: Set the logging level - debug/info/warning (default is 'warning' - try 'debug' for debugging) cast_delay: 30 # Required: Time (in seconds) for casting checks between each device. start_time: "07:00" # Optional: Global start time of the casting window (format: "HH:MM") - Default is set to "07:00" and can be individually overwritten per device below. end_time: "23:59" # Optional: Global end time of the casting window (format: "HH:MM") and must be after "00:00". Default is set to "01:00" and can be individually overwritten per device below. devices: "Hub": # Required: Display name of your device. Find this on the actual device's settings or inside the Google Home app.

b0mbays commented 3 days ago

Hi @jopper1988 ! Could you replace:

trusted_networks:
- 192.168.1.129/24 

with:

trusted_networks:
- 192.168.1.129/32

That should get things going 👍

b0mbays commented 1 day ago

I'm assuming that worked @jopper1988? I'll close the issue. I can re-open if not 😄

b0mbays commented 1 day ago

Re-opened as realised this was the original issue. Looks like we have an issue with TV chromecast devices of which I can't test as I do not own one. If someone does, and they can implement a fix, please give it a go 👍