b0mbays / continuously_casting_dashboards

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

How to cast to the same device at different time different dashboard #35

Closed sebastian-bugajny closed 6 months ago

sebastian-bugajny commented 10 months ago

Hi There,

Is is possible to cast another dashboard oto the same device at deterrent period of time. I would like to have something like:

continuously_casting_dashboards: logging_level: info cast_delay: 45 devices: "192.168.10.5":

b0mbays commented 10 months ago

Hey @sebastian-bugajny this should be possible. I'll take a look when I get some time over the next couple days and get this implemented for you 👍

sebastian-bugajny commented 10 months ago

That would be great. Thanks in advance.

sebastian-bugajny commented 9 months ago

Hey @b0mbays any news re implementation of this extra functionality ?

b0mbays commented 7 months ago

I will try and look into this for you soon, apologies!

purplefis commented 6 months ago

Hey

I had the same need and added to b0mbays excellent code to achieve my goal. I've created a pull request for b0mbays if he feels this is the right way to incorporate the enhancements. @sebastian-bugajny you can check out my changes in the pull request section.

sebastian-bugajny commented 6 months ago

@purplefis I've tested your changes and it works very well on my HA deployment. It's switching between dashboards at specified times on the same device. Good job. @b0mbays I hope it will be released shortly so I can have it deployed properly

b0mbays commented 6 months ago

@purplefis I've tested your changes and it works very well on my HA deployment. It's switching between dashboards at specified times on the same device. Good job. @b0mbays I hope it will be released shortly so I can have it deployed properly

Great work @purplefis! And thanks for testing it out @sebastian-bugajny. Apologies for not having the time myself to implement this.

I'll get this in today and create a new release for it 👍

b0mbays commented 6 months ago

New release created, thanks again @purplefis!

Please check for updates within the HACS store for the new tag: 1.2.7

b0mbays commented 6 months ago

Hmm.. I have an error after updating. I'll try and fix this when I can!

Screenshot 2023-12-15 at 20 01 10

Edit - added screenshot. Looking into it now

b0mbays commented 6 months ago

@purplefis Do you not have the same error? Could you post your config with the correct formatting too. Thanks!

b0mbays commented 6 months ago

@purplefis Okay I see the issue now, I had to change the structure of the 'devices' section from a dictionary of dictionaries to a dictionary of lists of dictionaries... (by adding the '-' on the dashboard_url line). If we don't do that, the error occurs. I'll add some error handling for that.

I think it's okay, although anyone updating would have to also make this change. I can include it in the update notes 👍

b0mbays commented 6 months ago

New release with instructions for the user.

purplefis commented 6 months ago

New release with instructions for the user.

Sorry for not getting back ! Yes, I did not make it backwards compatible in that sense. Sorry for not mentioning this.