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

keep recasting #50

Closed wunyee closed 6 months ago

wunyee commented 6 months ago

The dashboard is displayed correctly on the nest hub, but it keeps over and over recasting. Seems to be the same as the previous issue https://github.com/b0mbays/continuously_casting_dashboards/issues/25 but I don't have ha-catt-fix installed.

HA Core 2024.3.0 HA Supervisor 2024.02.1 continuously_casting_dashboards v1.3.0

my config

logging_level: debug #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: "04: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:
  "NestHub": #Required: Display name of your device. Find this on the actual device's settings or inside the Google Home app.
    - dashboard_url: "http://192.168.100.100:8123/dashboard-googlenest/0" #Required: Dashboard URL to be casted (This must be the local IP address of your HA instance, not homeassistant.local)
      volume: 1

logs

2024-03-10 17:19:50.457 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] state_triggers_map: {}
2024-03-10 17:19:50.457 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] monitored_entities: set()
2024-03-10 17:19:50.553 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] All device map: {'NestHub': {'instances': [{'dashboard_url': 'http://192.168.100.100:8123/dashboard-googlenest/0', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': 1, 'start_time': datetime.time(7, 0), 'end_time': datetime.time(4, 0), 'instance_change': False}], 'current_instance': 0}}
2024-03-10 17:19:50.553 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Current local time: 17:19:50.553667
2024-03-10 17:19:50.553 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Local time is inside the allowed casting time for NestHub. Start time: 07:00:00 - End time: 04:00:00
2024-03-10 17:19:52.183 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for NestHub when checking for dashboard state 'Dummy': Volume: 0
2024-03-10 17:19:53.337 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for NestHub when checking for dashboard state 'Dummy': Volume: 0
2024-03-10 17:19:53.337 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] HA Dashboard (or media) is NOT playing on NestHub!
2024-03-10 17:19:53.337 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Casting dashboard to NestHub
2024-03-10 17:19:53.337 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing stop command...
2024-03-10 17:19:55.688 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 0...
2024-03-10 17:19:57.212 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing the dashboard cast command...
2024-03-10 17:19:58.713 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 10...
2024-03-10 17:20:44.618 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] All device map: {'NestHub': {'instances': [{'dashboard_url': 'http://192.168.100.100:8123/dashboard-googlenest/0', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': 1, 'start_time': datetime.time(7, 0), 'end_time': datetime.time(4, 0), 'instance_change': False}], 'current_instance': 0}}
2024-03-10 17:20:44.618 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Current local time: 17:20:44.617938
2024-03-10 17:20:44.618 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Local time is inside the allowed casting time for NestHub. Start time: 07:00:00 - End time: 04:00:00
2024-03-10 17:20:46.089 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for NestHub when checking for dashboard state 'Dummy': Volume: 10
2024-03-10 17:20:47.612 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for NestHub when checking for dashboard state 'Dummy': Volume: 10
2024-03-10 17:20:47.612 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] HA Dashboard (or media) is NOT playing on NestHub!
2024-03-10 17:20:47.612 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Casting dashboard to NestHub
2024-03-10 17:20:47.613 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing stop command...
2024-03-10 17:20:50.749 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 0...
2024-03-10 17:20:52.545 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing the dashboard cast command...
2024-03-10 17:20:54.844 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 10...
2024-03-10 17:21:41.140 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] All device map: {'NestHub': {'instances': [{'dashboard_url': 'http://192.168.100.100:8123/dashboard-googlenest/0', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': 1, 'start_time': datetime.time(7, 0), 'end_time': datetime.time(4, 0), 'instance_change': False}], 'current_instance': 0}}
2024-03-10 17:21:41.140 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Current local time: 17:21:41.140551
2024-03-10 17:21:41.140 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Local time is inside the allowed casting time for NestHub. Start time: 07:00:00 - End time: 04:00:00
2024-03-10 17:21:42.702 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for NestHub when checking for dashboard state 'Dummy': Volume: 10
2024-03-10 17:21:44.843 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for NestHub when checking for dashboard state 'Dummy': Volume: 10
2024-03-10 17:21:44.843 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] HA Dashboard (or media) is NOT playing on NestHub!
2024-03-10 17:21:44.843 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Casting dashboard to NestHub
2024-03-10 17:21:44.843 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing stop command...
2024-03-10 17:21:47.619 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 0...
2024-03-10 17:21:49.397 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing the dashboard cast command...
2024-03-10 17:21:51.744 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 10...
2024-03-10 17:22:37.561 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] All device map: {'NestHub': {'instances': [{'dashboard_url': 'http://192.168.100.100:8123/dashboard-googlenest/0', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': 1, 'start_time': datetime.time(7, 0), 'end_time': datetime.time(4, 0), 'instance_change': False}], 'current_instance': 0}}
2024-03-10 17:22:37.561 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Current local time: 17:22:37.561635
2024-03-10 17:22:37.561 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Local time is inside the allowed casting time for NestHub. Start time: 07:00:00 - End time: 04:00:00
2024-03-10 17:22:39.031 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for NestHub when checking for dashboard state 'Dummy': Volume: 10
2024-03-10 17:22:40.770 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for NestHub when checking for dashboard state 'Dummy': Volume: 10
2024-03-10 17:22:40.770 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] HA Dashboard (or media) is NOT playing on NestHub!
2024-03-10 17:22:40.770 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Casting dashboard to NestHub
2024-03-10 17:22:40.771 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing stop command...
2024-03-10 17:22:43.739 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 0...
2024-03-10 17:22:45.287 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing the dashboard cast command...
2024-03-10 17:22:47.415 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 10...
2024-03-10 17:23:32.992 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] All device map: {'NestHub': {'instances': [{'dashboard_url': 'http://192.168.100.100:8123/dashboard-googlenest/0', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': 1, 'start_time': datetime.time(7, 0), 'end_time': datetime.time(4, 0), 'instance_change': False}], 'current_instance': 0}}
2024-03-10 17:23:32.992 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Current local time: 17:23:32.992682
2024-03-10 17:23:32.992 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Local time is inside the allowed casting time for NestHub. Start time: 07:00:00 - End time: 04:00:00
2024-03-10 17:23:34.537 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for NestHub when checking for dashboard state 'Dummy': Volume: 10
2024-03-10 17:23:36.314 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for NestHub when checking for dashboard state 'Dummy': Volume: 10
2024-03-10 17:23:36.314 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] HA Dashboard (or media) is NOT playing on NestHub!
2024-03-10 17:23:36.314 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Casting dashboard to NestHub
2024-03-10 17:23:36.315 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing stop command...
2024-03-10 17:23:39.149 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 0...
2024-03-10 17:23:40.837 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing the dashboard cast command...
2024-03-10 17:23:43.397 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 10...
2024-03-10 17:24:30.540 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] All device map: {'NestHub': {'instances': [{'dashboard_url': 'http://192.168.100.100:8123/dashboard-googlenest/0', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': 1, 'start_time': datetime.time(7, 0), 'end_time': datetime.time(4, 0), 'instance_change': False}], 'current_instance': 0}}
2024-03-10 17:24:30.540 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Current local time: 17:24:30.540146
2024-03-10 17:24:30.540 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Local time is inside the allowed casting time for NestHub. Start time: 07:00:00 - End time: 04:00:00
2024-03-10 17:24:32.114 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for NestHub when checking for dashboard state 'Dummy': Volume: 10
2024-03-10 17:24:33.723 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for NestHub when checking for dashboard state 'Dummy': Volume: 10
2024-03-10 17:24:33.723 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] HA Dashboard (or media) is NOT playing on NestHub!
2024-03-10 17:24:33.723 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Casting dashboard to NestHub
2024-03-10 17:24:33.724 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing stop command...
2024-03-10 17:24:36.502 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 0...
2024-03-10 17:24:38.047 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing the dashboard cast command...
2024-03-10 17:24:40.580 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 10...
2024-03-10 17:25:26.886 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] All device map: {'NestHub': {'instances': [{'dashboard_url': 'http://192.168.100.100:8123/dashboard-googlenest/0', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': 1, 'start_time': datetime.time(7, 0), 'end_time': datetime.time(4, 0), 'instance_change': False}], 'current_instance': 0}}
2024-03-10 17:25:26.886 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Current local time: 17:25:26.886248
2024-03-10 17:25:26.886 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Local time is inside the allowed casting time for NestHub. Start time: 07:00:00 - End time: 04:00:00
2024-03-10 17:25:28.821 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for NestHub when checking for dashboard state 'Dummy': Volume: 10
2024-03-10 17:25:30.301 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Status output for NestHub when checking for dashboard state 'Dummy': Volume: 10
2024-03-10 17:25:30.302 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] HA Dashboard (or media) is NOT playing on NestHub!
2024-03-10 17:25:30.302 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Casting dashboard to NestHub
2024-03-10 17:25:30.302 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing stop command...
2024-03-10 17:25:33.093 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 0...
2024-03-10 17:25:34.608 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing the dashboard cast command...
2024-03-10 17:25:35.991 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Setting volume to 10...
b0mbays commented 6 months ago

Hey @wunyee you mentioned you don't have ha-catt-fix installed? That is required to keep it from recasting.

You can follow the install instructions here:

https://github.com/b0mbays/continuously_casting_dashboards#-requirements

wunyee commented 6 months ago

Thank you very much! I didn't notice that ha-catt-fix should be installed.

b0mbays commented 6 months ago

No problem! Enjoy 😄