alexxit / dashcast Goto Github PK
View Code? Open in Web Editor NEWDashCast component for Home Assistant
Home Page: https://github.com/AlexxIT/Blog
License: MIT License
DashCast component for Home Assistant
Home Page: https://github.com/AlexxIT/Blog
License: MIT License
WARNING (MainThread) [homeassistant.loader] No 'version' key in the manifest file for custom integration 'dash_cast'. As of Home Assistant 2021.6, this integration will no longer be loaded. Please report this to the maintainer of 'dash_cast'
After updating to HA 2024.3, all my dashcast based automations fail with the following error:
File "/config/custom_components/dash_cast/__init__.py", line 25, in play_media
dash.load_url(url, force)
TypeError: DashCastController.load_url() takes 2 positional arguments but 3 were given
I guess it is caused by an additional parameter of load_url() which was recently added to pychromecast:
home-assistant-libs/pychromecast@540fd67
This seems to be part of home assistants effort to improve their APIs:
home-assistant-libs/pychromecast#779
This is the first step in refactoring the callback functions to accept a bool status and an optional response.
For some reason when I try and cast it displays an error:
Cast to Displays: Error Executing Script. Unexpected error for call_service at pos1:’SonosMediaPlayerEntity’ object has no attribute ‘_chromecast’
The automation is not referencing anything to do with Sonos and not sure its conflicting
Had it working yesterday no issues with WebRTC RTSP stream. Today all I get is DashCast screen with URL at bottom. Its working ok still on 1 Chromecast but not on my other 2 which are all on the same network. I've restarted everything but same issue.
Im trying to cast a lovelace dashboard however when I do it I get to the login screen for HA on the google home screen but it wont let me push any buttons or hit ok or anything
I have a script which casts the dashboard. I have the following in configuration.yaml:
homeassistant:
auth_providers:
- type: homeassistant
- type: trusted_networks
trusted_networks:
- Xxx.xxx.x.xxx # my Google Nest Hub IP
trusted_users:
Xxx.xxx.x.xxx: 'User id between brackets'
allow_bypass_login: true
However I cannot get past the login screen. I do not see a ‘hidden button’ to continue. What am I missing?
Today I've updated to HA 2023.4.5 / supervisor 10.0.
My service calls to DashCast stopped working, with errors like the one below in the HA logging.
It complains: Namespace urn:x-cast:com.madmod.dashcast is not supported by current app.
This when executing a DashCast:DashCast service call which was working fine before (I was a really happy user :)
Is there anything I can do / test to help solving this?
Logging:
Logger: homeassistant.helpers.script.websocket_api_script
Source: custom_components/dash_cast/__init__.py:25
Integration: DashCast ([documentation](https://github.com/AlexxIT/DashCast), [issues](https://github.com/AlexxIT/DashCast/issues))
First occurred: 17:29:17 (1 occurrences)
Last logged: 17:29:17
websocket_api script: Error executing script. Unexpected error for call_service at pos 1: Namespace urn:x-cast:com.madmod.dashcast is not supported by current app. Supported are urn:x-cast:com.google.cast.cac, urn:x-cast:com.google.cast.debugoverlay, urn:x-cast:com.google.cast.broadcast, urn:x-cast:com.google.cast.media
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 452, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 685, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1820, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1857, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/config/custom_components/dash_cast/__init__.py", line 25, in play_media
dash.load_url(url, force)
File "/usr/local/lib/python3.10/site-packages/pychromecast/controllers/dashcast.py", line 55, in load_url
self.launch(callback_function=launch_callback)
File "/usr/local/lib/python3.10/site-packages/pychromecast/controllers/__init__.py", line 60, in launch
self._socket_client.receiver_controller.launch_app(
File "/usr/local/lib/python3.10/site-packages/pychromecast/controllers/receiver.py", line 147, in launch_app
self._send_launch_message(app_id, force_launch, callback_function)
File "/usr/local/lib/python3.10/site-packages/pychromecast/controllers/receiver.py", line 169, in _send_launch_message
callback_function()
File "/usr/local/lib/python3.10/site-packages/pychromecast/controllers/dashcast.py", line 51, in launch_callback
self.send_message(
File "/usr/local/lib/python3.10/site-packages/pychromecast/controllers/__init__.py", line 107, in send_message
self.launch(
File "/usr/local/lib/python3.10/site-packages/pychromecast/controllers/__init__.py", line 60, in launch
self._socket_client.receiver_controller.launch_app(
File "/usr/local/lib/python3.10/site-packages/pychromecast/controllers/receiver.py", line 147, in launch_app
self._send_launch_message(app_id, force_launch, callback_function)
File "/usr/local/lib/python3.10/site-packages/pychromecast/controllers/receiver.py", line 169, in _send_launch_message
callback_function()
File "/usr/local/lib/python3.10/site-packages/pychromecast/controllers/__init__.py", line 108, in <lambda>
callback_function=lambda: self.send_message_nocheck(
File "/usr/local/lib/python3.10/site-packages/pychromecast/controllers/__init__.py", line 133, in send_message_nocheck
self._message_func(
File "/usr/local/lib/python3.10/site-packages/pychromecast/socket_client.py", line 958, in send_app_message
raise UnsupportedNamespace(
pychromecast.error.UnsupportedNamespace: Namespace urn:x-cast:com.madmod.dashcast is not supported by current app. Supported are urn:x-cast:com.google.cast.cac, urn:x-cast:com.google.cast.debugoverlay, urn:x-cast:com.google.cast.broadcast, urn:x-cast:com.google.cast.medi
Hi, attempting to get this to work, but get teh following error when calling the Service to display on Google Nest Hub:
'DlnaDmrEntity' object has no attribute '_chromecast'
If i use Dashcast via https://stestagg.github.io/dashcast/ it works as expected and displays on the hub.
What am I doping wrong?
The screen gets stuck on the DashCast logo with 'Loading:url' at the bottom.
I think this repo is missing a LICENSE file
How can I change the DashCast logo to something else when it begins casting? Would be nice to remove it.
Hi, I'am using DashCast on Home Assistant and i want know if i can add some cookies to DashCast when loading website.
I need cast a video stream service and a i need stay logged in website to view stream.
Hi,
After the Nest Hub is updated to Fuchsia it stops if I cast home assistant after 30 seconds now instead of 10 minutes as before.
Would it be possible to Use disableIdleTimeout as mentioned in Google docs?
https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.CastReceiverOptions
window.castReceiverManager.start({statusText: "Application is starting", disableIdleTimeout: true});
Using this integration with no issues on a Nest Hub Max in my kitchen. However, I have a second Nest Hub Max that I'm planning on putting in a guest bedroom, for people who will be caretaking me after a major surgery. I have the lovelace view to be cast ready to go - I know I can make that second Hub a trusted network, but is there any way to have it login as a specific user? I'd like to largely limit their access to HA via that device (though the view doesn't give them many navigation options).
Thanks for your thoughts/assistance.
I can't figure out what triggered it, and if something I did triggered it or that it just wend dead.
My casting towards my nest hubs doesn't work anymore. I get the following out of the trace:
Namespace urn:x-cast:com.madmod.dashcast is not supported by current app. Supported are urn:x-cast:com.google.cast.cac, urn:x-cast:com.google.cast.debugoverlay, urn:x-cast:com.google.cast.broadcast, urn:x-cast:com.google.cast.media
Someone an idea?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.