Closed pushpinder107 closed 9 months ago
Holy crap. The same thing is happening to me, but my internet isn't down. Hundreds of thousands of messages when it can't connect to the device.
I'll see if I can do something about that and stop the logging after a few failures 👍
I'll see if I can do something about that and stop the logging after a few failures 👍
Any updates @b0mbays regarding this?
Apologies for the delay, I'll implement this hopefully tonight and get a new version out
Apologies for the delay, I'll implement this hopefully tonight and get a new version out Hi I have Nest Doorbell installed in my house. When someone rings it, camera view is automatically shown on my 7 nest hubs. Have you taken that into consideration? Thanks
Hi @maxakash, you will have to test it out to see if it works with the nest cameras. If you add enough delay in between checks in the configuration it will probably work fine.
You can change this in the config with this setting:
cast_delay: 45
Change 45 to a higher number if the casting is taking over the nest hub too quickly.
@pushpinder107 @flyize @maxakash
To stop the pychromecast logging messages add this to your configuration.yaml
file and then restart Home Assistant:
logger:
default: warning
logs:
pychromecast.socket_client: critical
This should then stop pychromecast logging any warning messages and only log critical log messages.
Apologies again for the delay in finding this fix 👍
Hi @maxakash, you will have to test it out to see if it works with the nest cameras. If you add enough delay in between checks in the configuration it will probably work fine.
You can change this in the config with this setting:
cast_delay: 45
Change 45 to a higher number if the casting is taking over the nest hub too quickly.
Hi after my doorbell rings, I am getting timeout error. Here is the log
2024-02-24 17:14:30.899 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] All device map: {'Akash Room Display': {'instances': [{'dashboard_url': 'http://192.168.68.172:8123/akash-room/0?kiosk', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': -1, 'start_time': datetime.time(6, 59), 'end_time': datetime.time(23, 59), 'instance_change': False}], 'current_instance': 0}}
Current device map: {'Akash Room Display': {'dashboard_url': 'http://192.168.68.172:8123/akash-room/0?kiosk', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': -1, 'start_time': datetime.time(6, 59), 'end_time': datetime.time(23, 59), 'instance_change': False}}
2024-02-24 17:14:30.900 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Current local time: 17:14:30.899612
2024-02-24 17:14:30.900 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Local time is inside the allowed casting time for Akash Room Display. Start time: 06:59:00 - End time: 23:59:00
2024-02-24 17:14:33.812 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for Akash Room Display when checking for dashboard state 'Dummy': Volume: 5
Volume muted: False
2024-02-24 17:14:36.775 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for Akash Room Display when checking for dashboard state 'Dummy': Volume: 5
Volume muted: False
2024-02-24 17:14:36.775 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] HA Dashboard (or media) is NOT playing on Akash Room Display!
2024-02-24 17:14:36.775 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Casting dashboard to Akash Room Display
2024-02-24 17:14:36.780 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing stop command...
2024-02-24 17:14:41.694 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 0...
2024-02-24 17:14:44.581 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing the dashboard cast command...
2024-02-24 17:14:54.583 ERROR (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Timeout casting dashboard to Akash Room Display:
2024-02-24 17:15:39.586 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] All device map: {'Akash Room Display': {'instances': [{'dashboard_url': 'http://192.168.68.172:8123/akash-room/0?kiosk', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': -1, 'start_time': datetime.time(6, 59), 'end_time': datetime.time(23, 59), 'instance_change': False}], 'current_instance': 0}}
Current device map: {'Akash Room Display': {'dashboard_url': 'http://192.168.68.172:8123/akash-room/0?kiosk', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': -1, 'start_time': datetime.time(6, 59), 'end_time': datetime.time(23, 59), 'instance_change': False}}
2024-02-24 17:15:39.586 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Current local time: 17:15:39.585832
2024-02-24 17:15:39.587 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Local time is inside the allowed casting time for Akash Room Display. Start time: 06:59:00 - End time: 23:59:00
2024-02-24 17:15:42.514 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for Akash Room Display when checking for dashboard state 'Dummy': Volume: 0
Volume muted: False
2024-02-24 17:15:45.377 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for Akash Room Display when checking for dashboard state 'Dummy': Volume: 0
Volume muted: False
2024-02-24 17:15:45.377 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] HA Dashboard (or media) is NOT playing on Akash Room Display!
2024-02-24 17:15:45.377 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Casting dashboard to Akash Room Display
2024-02-24 17:15:45.382 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing stop command...
2024-02-24 17:15:50.521 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 0...
2024-02-24 17:15:52.517 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing the dashboard cast command...
2024-02-24 17:16:02.518 ERROR (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Timeout casting dashboard to Akash Room Display:
2024-02-24 17:16:47.520 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] All device map: {'Akash Room Display': {'instances': [{'dashboard_url': 'http://192.168.68.172:8123/akash-room/0?kiosk', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': -1, 'start_time': datetime.time(6, 59), 'end_time': datetime.time(23, 59), 'instance_change': False}], 'current_instance': 0}}
Current device map: {'Akash Room Display': {'dashboard_url': 'http://192.168.68.172:8123/akash-room/0?kiosk', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': -1, 'start_time': datetime.time(6, 59), 'end_time': datetime.time(23, 59), 'instance_change': False}}
2024-02-24 17:16:47.520 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Current local time: 17:16:47.520096
2024-02-24 17:16:47.521 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Local time is inside the allowed casting time for Akash Room Display. Start time: 06:59:00 - End time: 23:59:00
2024-02-24 17:16:50.288 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for Akash Room Display when checking for dashboard state 'Dummy': Volume: 0
Volume muted: False
2024-02-24 17:16:53.168 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for Akash Room Display when checking for dashboard state 'Dummy': Volume: 0
Volume muted: False
2024-02-24 17:16:53.169 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] HA Dashboard (or media) is NOT playing on Akash Room Display!
2024-02-24 17:16:53.169 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Casting dashboard to Akash Room Display
2024-02-24 17:16:53.176 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing stop command...
2024-02-24 17:17:00.051 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 0...
2024-02-24 17:17:03.838 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing the dashboard cast command...
2024-02-24 17:17:08.508 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 5...
2024-02-24 17:17:18.509 ERROR (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Timeout casting dashboard to Akash Room Display:
2024-02-24 17:18:03.511 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] All device map: {'Akash Room Display': {'instances': [{'dashboard_url': 'http://192.168.68.172:8123/akash-room/0?kiosk', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': -1, 'start_time': datetime.time(6, 59), 'end_time': datetime.time(23, 59), 'instance_change': False}], 'current_instance': 0}}
Current device map: {'Akash Room Display': {'dashboard_url': 'http://192.168.68.172:8123/akash-room/0?kiosk', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': -1, 'start_time': datetime.time(6, 59), 'end_time': datetime.time(23, 59), 'instance_change': False}}
2024-02-24 17:18:03.511 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Current local time: 17:18:03.511319
2024-02-24 17:18:03.512 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Local time is inside the allowed casting time for Akash Room Display. Start time: 06:59:00 - End time: 23:59:00
2024-02-24 17:18:17.028 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] HA Dashboard (or media) is NOT playing on Akash Room Display!
2024-02-24 17:18:17.029 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Casting dashboard to Akash Room Display
2024-02-24 17:18:17.034 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing stop command...
2024-02-24 17:18:30.413 WARNING (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Failed to extract volume information from status_output for Akash Room Display. Using default volume 5.
2024-02-24 17:18:30.420 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 0...
2024-02-24 17:18:37.141 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing the dashboard cast command...
2024-02-24 17:18:43.863 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 5...
Is the dashboard being casted at all?
Is the dashboard being casted at all?
It looks like you are using your internal dashboard URL, could you try using your external URL for your HA instance?
If you were to connect to your HA when not on your WiFi, that's the URL required.
I changed the cast_delay to higher number and it works now. But when there is no internet connection i.e. when nest hub shows not connected to internet, the casting does work(timeout error is there in ha logs). Is the normal? Thanks
Yes, if your hub doesn't have internet connection then the casting won't work as it will require internet access 👍
I have had a couple of instance of internet outage and during these outages I noticed a spike in disk usage (25% to 99%). On looking deeper it seems pychromecast keeps logging network failures. Is there a way to stop logging after a number of retries?