Giter Site home page Giter Site logo

dashcast's Introduction

DashCast for Home Assistant

hacs_badge

This Home Assistant service allows you to cast a website to a Google Chromecast.

PS. All thanks to @stestagg, developer of DashCast app for Google Chromecast.

Installation

Method 1. HACS custom repo:

HACS > Integrations > 3 dots (upper top corner) > Custom repositories > URL: AlexxIT/DashCast, Category: Integration > Add > wait > DashCast > Install

Method 2. Manually copy dash_cast folder from latest release to /config/custom_components folder.

Configuration

Method 1. GUI:

Configuration > Integrations > Add Integration > DashCast

If the integration is not in the list, you need to clear the browser cache.

Method 2. YAML:

dash_cast:

Usage

New service dash_cast.load_url:

service: dash_cast.load_url
data:
  entity_id: media_player.hall_tv
  url: https://www.home-assistant.io/
  force: true  # use this option if iframe blocking is enabled on the site
  reload_seconds: 60  # reload page every X seconds

dashcast's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

dashcast's Issues

Is this possible?

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.

DashCast no stream

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.

Won’t work is Sonos integration is active

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

Can’t get past login screen on Google Hub

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?

Dashcast stopped working after updating to HA 2024.3

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.

LICENSE

I think this repo is missing a LICENSE file

Cant use touchscreen

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

Dashcast namespace issue in HA 2023.4.5 / supervisor 10.0

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

No 'version' key in the manifest

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'

cant even add the ghub

Hi hi, can yuou help me out, perhaps im doing something terrable wrong but the device does work in HA, i just cant setup the device in dashcast intergrations.

it just giving no options to add devices, its all blank

image

image

Add cookies to DashCast when loading website

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.

Change logo when casting

How can I change the DashCast logo to something else when it begins casting? Would be nice to remove it.

Dashcast not working anymore towards google nest hub

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.