Comments (9)
This is an issue for me as well, no chromecasts will be discovered (running latest master).
from pychromecast.
The problem is within my uPnP implementation.
The Cast platform started using zeroconf next to uPnP. I wouldn't be surprised if uPnP would eventually be deprecated. The plan for PyChromecast is to use python-zeroconf.
Migrating would also fix this bug as they just added preliminary support for multiple network interfaces.
from pychromecast.
I just upgraded PyChromecast to use python-zeroconf. The latest version of python-zeroconf on Pypi does not have support for multiple devices yet so this bug is not fixed yet.
from pychromecast.
I have the same issue. I ended up switching my cable to the other port and changing my network configuration to work around the issue for now.
from pychromecast.
Can confirm this is still an issue :(
from pychromecast.
I have the same issue.
Therefore, i can't use chromecasts as media_player on HA.
from pychromecast.
@fryyk0220 You can still add them manually. See host:
on https://home-assistant.io/components/media_player.cast/
from pychromecast.
@OttoWinter Adding this setting to my config resolved the issue, Thank you for your advice.
from pychromecast.
I'm having the same issue using Home Assistant within Docker. Docker is running on the host network but can see all networks. After installing tcpdump I see the following when trying to discover Cast devices.
17:41:39.252896 IP 172.17.0.1.5353 > 224.0.0.251.5353: 0 PTR (QM)? _googlecast._tcp.local. (40) 17:41:40.254188 IP 172.17.0.1.5353 > 224.0.0.251.5353: 0 PTR (QM)? _googlecast._tcp.local. (40) 17:41:42.253728 IP 172.17.0.1.5353 > 224.0.0.251.5353: 0 PTR (QM)? _googlecast._tcp.local. (40)
My home network is on a 192.168.0.0/24 range but Zeroconf is using the IP from the default Docker bridge network. Pychromecast works correctly from a device with a single nic and the Home Assistant container is able to ping all Chromecast devices. I see it should be possible to manually set the interface within Zeroconf but I haven't been able to get it to work successfully. I'm not sure I'm adding the code correctly. If this were to work the IP could possibly be set via an environment variable?
from pychromecast.
Related Issues (20)
- ValueError: too many values to unpack (expected 5)
- Discovery doesn't work in an async context HOT 4
- Data difference when using GoogleTV Youtube vs Casting
- Custom http headers
- Idle chromecast custom screen example
- Command feedback
- Detect tv is on or off
- SiriusXM/Chromecast Casting Issue HOT 8
- Cannot initialize 'Chromecast' class HOT 2
- Not working with updated modules ('str' object has no attribute 'cast_type') HOT 1
- How to know if a specific connected TV is compatible ? HOT 1
- BBC Sounds conroller stopped working HOT 3
- Python 3.10 Depreciation Warning ssl.SSLContext()
- How to work with spotify HOT 5
- BBC iPlayer Live Stream - unable to get working
- Join existing chromecast session without interrupting it?
- pychromecast entering spin loop when a cast device reboots [if browser.stop_discovery() was called] HOT 2
- Mocking Chromecast?
- How to handle AssertionError for assert self.socket is not None?
- WARNING:pychromecast.controllers:SEEK command requested but no session is active HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pychromecast.