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

Ha-catt-fix installed, but still recasting constantly. #59

Closed skewll closed 2 months ago

skewll commented 5 months ago

I've experienced this on and off from the beginning. Sometimes it works fine for hours. Most of the time it only works for a few seconds and the. I just see the screen recreating and casting over and over.

Could you help me figure out the issue?

image

Screenshot_20240411-105904_Home Assistant Screenshot_20240411-105902_Home Assistant Screenshot_20240411-105923_Chrome Screenshot_20240411-105931_Chrome

skewll commented 5 months ago

Here is a longer log. _homeassistant_logs.txt

b0mbays commented 5 months ago

Hi, what device are you using to cast to? I see it's named 'TV' but is it a Google Hub?

b0mbays commented 4 months ago

Closing issue, will reopen if the issue remains 👍

skewll commented 4 months ago

A Chromecast device plugged into the TV.

On Fri, May 24, 2024, 12:58 PM b0mbays @.***> wrote:

Closed #59 https://github.com/b0mbays/continuously_casting_dashboards/issues/59 as completed.

— Reply to this email directly, view it on GitHub https://github.com/b0mbays/continuously_casting_dashboards/issues/59#event-12929130152, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARQFDKHQJS4BAHDZBJALOYTZD6LXVAVCNFSM6AAAAABGCYH426VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSHEZDSMJTGAYTKMQ . You are receiving this because you authored the thread.Message ID: <b0mbays/continuously_casting_dashboards/issue/59/issue_event/12929130152@ github.com>

b0mbays commented 4 months ago

It looks like the Chromecast never reports the "Dummy" state that the hubs report when a dashboard is active, which is resulting in the endless loop. It surprises me that it sometimes works for hours... Don't suppose you have any logs for when it does work?

I'll try and cast to my Nvidia Shields Chromecast and see if there's something else I can do to check whether the dashboard is being cast.

skewll commented 4 months ago

I have logs on, and it seems to be working fine today so far. I'll try to collect some logs and post them soon.

On Fri, May 24, 2024, 1:09 PM b0mbays @.***> wrote:

It looks like the Chromecast never reports the "Dummy" state that the hubs report when a dashboard is active, which is resulting in the endless loop. It surprises me that it sometimes works for hours... Don't suppose you have any logs for when it does work?

I'll try and cast to my Nvidia Shields Chromecast and see if there's something else I can do to check whether the dashboard is being cast.

— Reply to this email directly, view it on GitHub https://github.com/b0mbays/continuously_casting_dashboards/issues/59#issuecomment-2130285862, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARQFDKCNMGWPKY65JU3AOVLZD6NATAVCNFSM6AAAAABGCYH426VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZQGI4DKOBWGI . You are receiving this because you authored the thread.Message ID: @.***>

thewookiewon commented 3 months ago

I've noticed a similar behaviour, its not very frequent but seen it recast itself a few times each day

skewll commented 3 months ago

I believe it's supposed to recast every 9 minutes. Mine seems to get into a loop where it recasts sooner and sooner until you just see it recreating the screen ever few seconds until it eventually stops and doesn't cast at all.

On Sat, Jun 8, 2024, 6:32 AM thewookiewon @.***> wrote:

I've noticed a similar behaviour, its not very frequent but seen it recast itself a few times each day

— Reply to this email directly, view it on GitHub https://github.com/b0mbays/continuously_casting_dashboards/issues/59#issuecomment-2156038826, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARQFDKBPJL6Z5IU3N2XOHZTZGMBYXAVCNFSM6AAAAABGCYH426VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGAZTQOBSGY . You are receiving this because you authored the thread.Message ID: @.***>

skewll commented 2 months ago

I believe this issue is, this doesn't work well with a lot of the cards I've added. I haven't even been able to use it the past few weeks at all due to it never load for more then a second. I removed a lot of the new cards I've added and it seems to be working. Unfortunately, I can't display what I want to display it seems: my custom scrolling stock/crypto/metals ticker using tailwindcss-template-card as well as many cards using card-templater seem to cause so much lag/reloading that it stops the cast. it seems the chromecast is just not capable of handling my dash board. Here is the log of things working for a little (all though the screen was recreating itself very often during this time until the cast eventually stops, reverts to default chromecast screen and the TV can no longer be found). Followed by me try8ng some state cases. I found that it will cast a screen on state, but it isn't stable and eventually stops and also can't be found, then state cast doesn't worm. I've I caused that log further below

media) is playing on Kitchen TV...

2024-07-20 09:20:16.533 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] All device map: {'Kitchen TV': {'instances': [{'dashboard_url': 'http://10.0.0.190:8123/kitchen-calendar-dedicated/kitchen-calendar-dedicated/default_view?kiosk', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': -1, 'start_time': datetime.time(7, 0), 'end_time': datetime.time(1, 1), 'instance_change': False, 'speaker_groups': None}], 'current_instance': 0}}

Current device map: {'Kitchen TV': {'dashboard_url': 'http://10.0.0.190:8123/kitchen-calendar-dedicated/kitchen-calendar-dedicated/default_view?kiosk', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': -1, 'start_time': datetime.time(7, 0), 'end_time': datetime.time(1, 1), 'instance_change': False, 'speaker_groups': None}}

2024-07-20 09:20:16.533 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Current local time: 09:20:16.533395

2024-07-20 09:20:16.533 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Local time is inside the allowed casting time for Kitchen TV. Start time: 07:00:00 - End time: 01:01:00

2024-07-20 09:20:18.841 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for Kitchen TV when checking for dashboard state 'Dummy': Title: Dummy 09:11:53 GMT-0700 (Pacific Daylight Time)

5

Volume muted: False

2024-07-20 09:20:21.286 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for Kitchen TV when checking for dashboard state 'Dummy': Title: Dummy 09:11:53 GMT-0700 (Pacific Daylight Time)

5

Volume muted: False

2024-07-20 09:20:21.286 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] HA Dashboard (or media) is playing on Kitchen TV...

2024-07-20 09:21:06.287 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] All device map: {'Kitchen TV': {'instances': [{'dashboard_url': 'http://10.0.0.190:8123/kitchen-calendar-dedicated/kitchen-calendar-dedicated/default_view?kiosk', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': -1, 'start_time': datetime.time(7, 0), 'end_time': datetime.time(1, 1), 'instance_change': False, 'speaker_groups': None}], 'current_instance': 0}}

Current device map: {'Kitchen TV': {'dashboard_url': 'http://10.0.0.190:8123/kitchen-calendar-dedicated/kitchen-calendar-dedicated/default_view?kiosk', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': -1, 'start_time': datetime.time(7, 0), 'end_time': datetime.time(1, 1), 'instance_change': False, 'speaker_groups': None}}

2024-07-20 09:21:06.288 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Current local time: 09:21:06.287442

2024-07-20 09:21:06.288 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Local time is inside the allowed casting time for Kitchen TV. Start time: 07:00:00 - End time: 01:01:00

2024-07-20 09:21:08.935 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for Kitchen TV when checking for dashboard state 'Dummy': Title: Dummy 09:20:53 GMT-0700 (Pacific Daylight Time)

5

Volume muted: False

2024-07-20 09:21:11.343 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for Kitchen TV when checking for dashboard state 'Dummy': Title: Dummy 09:20:53 GMT-0700 (Pacific Daylight Time)

5

Volume muted: False

2024-07-20 09:21:11.344 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] HA Dashboard (or media) is playing on Kitchen TV...

After some time even my standard dashboard with new stuff removed will eventually crash and then dash cast doesn't do anything after. I've tried adding a state change once the TV is lost, but cast doesn't seem to want to try again after it can't find the TV for whatever reason.

2024-07-20 11:06:42.134 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] HA Dashboard (or media) is playing on Kitchen TV...

2024-07-20 11:07:27.135 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] All device map: {'Kitchen TV': {'instances': [{'dashboard_url': 'http://10.0.0.190:8123/kitchen-calendar-dedicated/kitchen-calendar-dedicated/default_view?kiosk', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': -1, 'start_time': datetime.time(7, 0), 'end_time': datetime.time(1, 1), 'instance_change': False, 'speaker_groups': None}], 'current_instance': 0}}

Current device map: {'Kitchen TV': {'dashboard_url': 'http://10.0.0.190:8123/kitchen-calendar-dedicated/kitchen-calendar-dedicated/default_view?kiosk', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': -1, 'start_time': datetime.time(7, 0), 'end_time': datetime.time(1, 1), 'instance_change': False, 'speaker_groups': None}}

2024-07-20 11:07:27.135 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Current local time: 11:07:27.135300

2024-07-20 11:07:27.135 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Local time is inside the allowed casting time for Kitchen TV. Start time: 07:00:00 - End time: 01:01:00

2024-07-20 11:07:50.781 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for Kitchen TV when checking for dashboard state 'Dummy': Volume: 5

Volume muted: False

2024-07-20 11:07:57.859 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] HA Dashboard is NOT active on Kitchen TV...

2024-07-20 11:07:57.859 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Checking media status for Kitchen TV

2024-07-20 11:08:05.001 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Media is not playing on Kitchen TV

2024-07-20 11:08:05.001 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Casting dashboard to Kitchen TV

2024-07-20 11:08:05.005 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing stop command...

Error: Specified device "Kitchen TV" not found.

2024-07-20 11:08:42.234 ERROR (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Asyncio TimeoutError checking PLAYING state for Kitchen TV:

2024-07-20 12:18:28.846 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Entity 'input_boolean.casting_to_kitchen_display_main' state changed to: on

Now I get nothing.

skewll commented 2 months ago

After restarting again, with my older dashboard. It's not getting disconnected from the cast now, but continously cast doesn't seem to see its already casting but then recasts every 45 second with the default recast delay check.

2024-07-20 14:53:18.143 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] All device map: {'Kitchen TV': {'instances': [{'dashboard_url': 'http://10.0.0.190:8123/kitchen-calendar-dedicated/kitchen-calendar-dedicated/default_view?kiosk', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': -1, 'start_time': datetime.time(7, 0), 'end_time': datetime.time(1, 1), 'instance_change': False, 'speaker_groups': None}], 'current_instance': 0}} Current device map: {'Kitchen TV': {'dashboard_url': 'http://10.0.0.190:8123/kitchen-calendar-dedicated/kitchen-calendar-dedicated/default_view?kiosk', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': -1, 'start_time': datetime.time(7, 0), 'end_time': datetime.time(1, 1), 'instance_change': False, 'speaker_groups': None}} 2024-07-20 14:53:18.143 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Current local time: 14:53:18.142989 2024-07-20 14:53:18.143 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Local time is inside the allowed casting time for Kitchen TV. Start time: 07:00:00 - End time: 01:01:00 2024-07-20 14:53:29.384 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for Kitchen TV when checking for dashboard state 'Dummy': Volume: 5 Volume muted: False 2024-07-20 14:53:37.534 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for Kitchen TV when checking for dashboard state 'Dummy': Volume: 5 Volume muted: False 2024-07-20 14:53:37.534 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] HA Dashboard is NOT active on Kitchen TV... 2024-07-20 14:53:37.534 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Checking media status for Kitchen TV 2024-07-20 14:53:41.114 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Media is not playing, waiting 5 seconds before re-checking... 2024-07-20 14:53:51.976 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Media is not playing on Kitchen TV 2024-07-20 14:53:51.976 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Casting dashboard to Kitchen TV 2024-07-20 14:53:51.980 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing stop command... 2024-07-20 14:53:56.956 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 0... 2024-07-20 14:53:59.129 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing the dashboard cast command... Error: Specified device "Kitchen TV" not found. 2024-07-20 14:54:06.109 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 5... 2024-07-20 14:54:53.640 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] All device map: {'Kitchen TV': {'instances': [{'dashboard_url': 'http://10.0.0.190:8123/kitchen-calendar-dedicated/kitchen-calendar-dedicated/default_view?kiosk', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': -1, 'start_time': datetime.time(7, 0), 'end_time': datetime.time(1, 1), 'instance_change': False, 'speaker_groups': None}], 'current_instance': 0}} Current device map: {'Kitchen TV': {'dashboard_url': 'http://10.0.0.190:8123/kitchen-calendar-dedicated/kitchen-calendar-dedicated/default_view?kiosk', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': -1, 'start_time': datetime.time(7, 0), 'end_time': datetime.time(1, 1), 'instance_change': False, 'speaker_groups': None}} 2024-07-20 14:54:53.641 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Current local time: 14:54:53.640347 2024-07-20 14:54:53.641 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Local time is inside the allowed casting time for Kitchen TV. Start time: 07:00:00 - End time: 01:01:00 2024-07-20 14:54:55.938 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for Kitchen TV when checking for dashboard state 'Dummy': Volume: 5 Volume muted: False 2024-07-20 14:54:58.398 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for Kitchen TV when checking for dashboard state 'Dummy': Volume: 5 Volume muted: False 2024-07-20 14:54:58.399 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] HA Dashboard is NOT active on Kitchen TV... 2024-07-20 14:54:58.399 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Checking media status for Kitchen TV 2024-07-20 14:55:00.903 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Media is not playing, waiting 5 seconds before re-checking... 2024-07-20 14:55:08.680 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Media is not playing on Kitchen TV 2024-07-20 14:55:08.680 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Casting dashboard to Kitchen TV 2024-07-20 14:55:08.684 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing stop command... 2024-07-20 14:55:13.441 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 0... 2024-07-20 14:55:15.907 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing the dashboard cast command... Casting http://10.0.0.190:8123/kitchen-calendar-dedicated/kitchen-calendar-dedicated/default_view?kiosk on "Kitchen TV"... 2024-07-20 14:55:19.739 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 5... 2024-07-20 14:56:07.097 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] All device map: {'Kitchen TV': {'instances': [{'dashboard_url': 'http://10.0.0.190:8123/kitchen-calendar-dedicated/kitchen-calendar-dedicated/default_view?kiosk', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': -1, 'start_time': datetime.time(7, 0), 'end_time': datetime.time(1, 1), 'instance_change': False, 'speaker_groups': None}], 'current_instance': 0}} Current device map: {'Kitchen TV': {'dashboard_url': 'http://10.0.0.190:8123/kitchen-calendar-dedicated/kitchen-calendar-dedicated/default_view?kiosk', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': -1, 'start_time': datetime.time(7, 0), 'end_time': datetime.time(1, 1), 'instance_change': False, 'speaker_groups': None}} 2024-07-20 14:56:07.097 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Current local time: 14:56:07.097122 2024-07-20 14:56:07.097 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Local time is inside the allowed casting time for Kitchen TV. Start time: 07:00:00 - End time: 01:01:00 2024-07-20 14:56:16.735 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for Kitchen TV when checking for dashboard state 'Dummy': Volume: 5 Volume muted: False 2024-07-20 14:56:23.490 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for Kitchen TV when checking for dashboard state 'Dummy': Volume: 5 Volume muted: False 2024-07-20 14:56:23.490 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] HA Dashboard is NOT active on Kitchen TV... 2024-07-20 14:56:23.490 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Checking media status for Kitchen TV 2024-07-20 14:56:28.609 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Media is not playing, waiting 5 seconds before re-checking... 2024-07-20 14:56:41.466 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Media is not playing on Kitchen TV 2024-07-20 14:56:41.467 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Casting dashboard to Kitchen TV 2024-07-20 14:56:41.471 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing stop command... 2024-07-20 14:56:46.551 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 0... 2024-07-20 14:56:49.021 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing the dashboard cast command... Casting http://10.0.0.190:8123/kitchen-calendar-dedicated/kitchen-calendar-dedicated/default_view?kiosk on "Kitchen TV"... 2024-07-20 14:56:52.506 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 5... 2024-07-20 14:57:39.895 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] All device map: {'Kitchen TV': {'instances': [{'dashboard_url': 'http://10.0.0.190:8123/kitchen-calendar-dedicated/kitchen-calendar-dedicated/default_view?kiosk', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': -1, 'start_time': datetime.time(7, 0), 'end_time': datetime.time(1, 1), 'instance_change': False, 'speaker_groups': None}], 'current_instance': 0}} Current device map: {'Kitchen TV': {'dashboard_url': 'http://10.0.0.190:8123/kitchen-calendar-dedicated/kitchen-calendar-dedicated/default_view?kiosk', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': -1, 'start_time': datetime.time(7, 0), 'end_time': datetime.time(1, 1), 'instance_change': False, 'speaker_groups': None}} 2024-07-20 14:57:39.895 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Current local time: 14:57:39.895244 2024-07-20 14:57:39.895 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Local time is inside the allowed casting time for Kitchen TV. Start time: 07:00:00 - End time: 01:01:00 2024-07-20 14:57:44.627 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for Kitchen TV when checking for dashboard state 'Dummy': Volume: 5 Volume muted: False 2024-07-20 14:57:54.138 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for Kitchen TV when checking for dashboard state 'Dummy': Volume: 5 Volume muted: False 2024-07-20 14:57:54.139 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] HA Dashboard is NOT active on Kitchen TV... 2024-07-20 14:57:54.139 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Checking media status for Kitchen TV 2024-07-20 14:58:05.658 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Media is not playing, waiting 5 seconds before re-checking... 2024-07-20 14:58:19.781 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Media is not playing on Kitchen TV 2024-07-20 14:58:19.781 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Casting dashboard to Kitchen TV 2024-07-20 14:58:19.785 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing stop command... 2024-07-20 14:58:24.889 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 0... 2024-07-20 14:58:27.322 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing the dashboard cast command... Casting http://10.0.0.190:8123/kitchen-calendar-dedicated/kitchen-calendar-dedicated/default_view?kiosk on "Kitchen TV"... 2024-07-20 14:58:31.226 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 5... 2024-07-20 14:59:18.753 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] All device map: {'Kitchen TV': {'instances': [{'dashboard_url': 'http://10.0.0.190:8123/kitchen-calendar-dedicated/kitchen-calendar-dedicated/default_view?kiosk', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': -1, 'start_time': datetime.time(7, 0), 'end_time': datetime.time(1, 1), 'instance_change': False, 'speaker_groups': None}], 'current_instance': 0}} Current device map: {'Kitchen TV': {'dashboard_url': 'http://10.0.0.190:8123/kitchen-calendar-dedicated/kitchen-calendar-dedicated/default_view?kiosk', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': -1, 'start_time': datetime.time(7, 0), 'end_time': datetime.time(1, 1), 'instance_change': False, 'speaker_groups': None}} 2024-07-20 14:59:18.754 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Current local time: 14:59:18.753815 2024-07-20 14:59:18.754 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Local time is inside the allowed casting time for Kitchen TV. Start time: 07:00:00 - End time: 01:01:00 2024-07-20 14:59:22.373 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for Kitchen TV when checking for dashboard state 'Dummy': Volume: 5 Volume muted: False 2024-07-20 14:59:29.167 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for Kitchen TV when checking for dashboard state 'Dummy': Volume: 5 Volume muted: False 2024-07-20 14:59:29.168 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] HA Dashboard is NOT active on Kitchen TV... 2024-07-20 14:59:29.168 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Checking media status for Kitchen TV 2024-07-20 14:59:39.054 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Media is not playing, waiting 5 seconds before re-checking... 2024-07-20 14:59:51.503 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Media is not playing on Kitchen TV 2024-07-20 14:59:51.503 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Casting dashboard to Kitchen TV 2024-07-20 14:59:51.507 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing stop command... 2024-07-20 14:59:56.779 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 0... 2024-07-20 14:59:59.145 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing the dashboard cast command... Casting http://10.0.0.190:8123/kitchen-calendar-dedicated/kitchen-calendar-dedicated/default_view?kiosk on "Kitchen TV"... 2024-07-20 15:00:02.819 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 5...

It just continues this loop. I will try increasing the check time from 45 to 120 and see if that helps.

skewll commented 2 months ago

After change cast delay from 45 to 120 it seems to solve it for now. I just can't have too much content, or certain cards or it gets in a recreate loop, then eventually stops carrying casting and stops working.