Comments (3)
Hi!
Interesting error. As all of my chromecast devices have spaces in their names (e.g. Living Room Audio
) I do not believe that this is the issue.
According to the log the mqtt
property seems not to be a valid MQTT object. On second view of the logfile, this is also visible (compare the order of the messages connecting to mqtt
, the errors and the final mqtt connected callback has been invoked
message).
Seems to be a race-condition of some kind when the MQTT connection is not established fast enough yet devices already have been found.
Edit:
You can verify this by starting a "dummy mqtt server" with netcat, e.g nc -k -l 1883
. This will never successfully connect, so this error will even happen with your device called Badezimmer
.
from chromecast-mqtt-connector.
You can try the version available in PR #11.
from chromecast-mqtt-connector.
Before you made any changes only the Badezimmer (≙ Bathroom) topics showed up in MQTT - nothing else.
With the #9 branch however:
Here everything starts to work in the end, the 'workflow' to get everything working is as bit struggling:
- Connection status is
WAITING
for all devices (but they appear right after starting the script) - Connection status changes to
CONNECTED
for Badezimmer and at the same time every topic (likevolume_level
) gets populated. All other devices remain onWAITING
- Using Spotify on my iPhone, I make a change to the current player state (from Playing to Pause, or vice versa)
- All
/media/
topics get populated for e.g. theSimon's Zimmer
speakers, leaving theconnection_status
still onWAITING
. - If you now change the volume on the iPhone, the
connection_status
will be set toCONNECTED
and all other topics (like thevolume_level
) appear in MQTT right after that.
So basically once every device was in use and somebody changed the volume, they'll appear in MQTT.
What I haven't thought about until now: The Bathroom speakers are the only one's connected via WiFi. For the other two, I'm using the Ethernet Adapter. I'll try to connect one of them with WiFi as well, tomorrow.
from chromecast-mqtt-connector.
Related Issues (9)
- Bad management of relative volume HOT 2
- Song without album art prevents successful update of media status
- How to use HOT 2
- Use absolut Path for config.ini HOT 1
- Support for audio groups HOT 5
- ImportError: cannot import name 'get_chromecast' HOT 6
- friendly_name not available through MQTT HOT 1
- Play command is not sent to chromecast HOT 2
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 chromecast-mqtt-connector.