core
core copied to clipboard
Able to replicate (cause but not fix) issue with casting - "Error Loading the View Strategy: TypeError: Cannot convert undefined or null to object"
The problem
When I simply try to CAST to my Google Nest Hub Max, it no longer works. I think it is a bug with Home Assistant and I will list here, why: I was copying and modifying a large number of automations for new devices on my HA setup, and many of the Automations then had the dreaded error message about me not being able to edit them because several of them had a "non-unique ID", but deleting a bunch of the newly cloned automations and re-adding and testing new ones one at a time in between automation refreshed and/or many Home Assistant restarts resolved those issues. However, this is when the propblem with my ability to cast to a Google Net Hub Max started, and that problem has not gone away, although all the automations are working fine. My simple script used for casting is shown below - and this script has been working for a very long time - until the above use case broke this script. ALso, there are no errors shown in any of the logs:
(This script simply stops casting (in case it already was), waits one second, and then casts the default lovelace view:
`alias: Start Casting Dashboard (Lovelace/0) sequence:
- service: media_player.turn_off data: {} target: entity_id: media_player.google_nest_hub_max
- delay: hours: 0 minutes: 0 seconds: 1 milliseconds: 0
- service: cast.show_lovelace_view data: entity_id: media_player.google_nest_hub_max dashboard_path: lovelace/ view_path: "0" mode: single icon: mdi:tablet-dashboard`
What version of Home Assistant Core has the issue?
core-2023.2.5
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Supervised
Integration causing the issue
Google Cast
Link to integration documentation on our website
https://www.home-assistant.io/integrations/cast/
Diagnostics information
There is no ability for this for this integration to download diagnostic data
Example YAML snippet
Already supplied in the description
Anything in the logs that might be useful for us?
No, no errors are shown in the logs, except the screen display on the google nest hub max shows:
"Error Loading the View Strategy:
TypeError: Cannot convery undefined or null to object"
Additional information
Here is my current setup:
System Information
version | core-2023.2.5 |
---|---|
installation_type | Home Assistant Supervised |
dev | false |
hassio | true |
docker | true |
user | root |
virtualenv | false |
python_version | 3.10.7 |
os_name | Linux |
os_version | 5.10.0-21-arm64 |
arch | aarch64 |
timezone | America/New_York |
config_dir | /config |
Home Assistant Community Store
GitHub API | ok |
---|---|
GitHub Content | ok |
GitHub Web | ok |
GitHub API Calls Remaining | 4984 |
Installed Version | 1.30.1 |
Stage | running |
Available Repositories | 1293 |
Downloaded Repositories | 24 |
AccuWeather
can_reach_server | ok |
---|---|
remaining_requests | 33 |
Home Assistant Cloud
logged_in | false |
---|---|
can_reach_cert_server | ok |
can_reach_cloud_auth | ok |
can_reach_cloud | ok |
Home Assistant Supervisor
host_os | Debian GNU/Linux 11 (bullseye) |
---|---|
update_channel | stable |
supervisor_version | supervisor-2023.01.1 |
agent_version | 1.4.1 |
docker_version | 23.0.1 |
disk_total | 915.4 GB |
disk_used | 16.7 GB |
healthy | true |
supported | true |
supervisor_api | ok |
version_api | ok |
installed_addons | AppDaemon (0.11.0), Core DNS Override (0.1.1), Duck DNS (1.15.0), File editor (5.5.0), Home Assistant Google Drive Backup (0.110.1), Log Viewer (0.14.0), Mosquitto broker (6.1.3), Samba share (10.0.0), Terminal & SSH (9.6.1), AdGuard Home (4.7.6) |
Dashboards
dashboards | 5 |
---|---|
resources | 15 |
views | 31 |
mode | storage |
Recorder
oldest_recorder_run | January 26, 2023 at 4:08 PM |
---|---|
current_recorder_run | February 24, 2023 at 7:53 PM |
estimated_db_size | 2203.47 MiB |
database_engine | sqlite |
database_version | 3.38.5 |
Hey there @emontnemery, mind taking a look at this issue as it has been labeled with an integration (cast
) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of cast
can trigger bot actions by commenting:
-
@home-assistant close
Closes the issue. -
@home-assistant rename Awesome new title
Renames the issue. -
@home-assistant reopen
Reopen the issue. -
@home-assistant unassign cast
Removes the current integration label and assignees on the issue, add the integration domain after the command.
(message by CodeOwnersMention)
cast documentation cast source (message by IssueLinks)
There are several people complaining about similar issues with casting (although they might be unrelated if they do not have the same exact error message): https://community.home-assistant.io/t/error-when-trying-to-casting-lovelace/539933/5
A screenshot from my Nest Hub compared to chrome on desktop. This had been working for several months before stopping a few days ago.
Here is what happens with my Google Nest Hub Max. Mine never had the issue of part of the dashboard not working - it all worked, until two days ago - then it all didn't work at all. It looks like an empty screen is being casted with an error mnessage in the top center. Here are photos from a camera of the Google Nest Hub Max screen:
And up closer -
I was three days away and during that time casting to Nest Hub 2 stopped working right. Weather and Entities cards are not showing any more while Button is still showihg. I could not find anything related in logs. Rebooting Nest and HA does not make any difference.
Same issue here. My gauches are not showing anymore
Same here, some entity appears, some apper then disappear. Rebooting everything and problem persist.
Based on discussion in: https://github.com/home-assistant/core/issues/88690 Update to home assistant version 2023.3.0b3 fixed this issue for me.
Updating to Home Assistant 2023.3.0 also fiuxed the issue for me as well :-)