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

Casting different dashboards to same device at different times #40

Closed purplefis closed 6 months ago

purplefis commented 6 months ago

Hi b0mbays

Love this component and would like to inspire you with this add-on, which allows for casting different different dashboards to the same device at different times of the day. I've created this as functional lookup, which should maintain all of the other functionality of the code.

The code will loop through all time windows for the device and choose the last valid time window to cast. This means that you can define a standard cast for the say 0700 to 2200 and another for 08:00 to 09:00. After 0900 the first dashbord will be cast again.

Hope this contribution helps!

Example of config.yaml

continuously_casting_dashboards: logging_level: warning #Required: Set the logging level - debug/info/warning (default is 'warning' - try 'debug' for debugging) cast_delay: 45 #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: "01:00" #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: "KitchenHub":

b0mbays commented 6 months ago

Published a new release, thanks @purplefis

https://github.com/b0mbays/continuously_casting_dashboards/releases/tag/v1.3.0