This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers. For more details and for information how to disable the error reporting see Sentry-Plugin Documentation! Sentry reporting is used starting with js-controller 3.0.
This plugin allows to detect video and/or audio Google Home devices. For each detected Home device an ioBroker device is created. This device displays the status of the device and allows to send it a new URL to cast.
Build on top of the following projects:
- ioBroker
- node-castv2-client as Home client library.
- Install this adapter into ioBroker
- (optional) If you plan to stream local files or if your chromecast devices are located in a different subnet, you need to configure the adapter
- you need to have an ioBroker web server instance to stream local files
- you need to manually add information (name, IP, port, ad type) for each device located in a different subnet than your ioBroker server. If you want names to correspond to the names of the automatically found devices, use the MAC address as name. You can define any name you want. Make sure, each name is unique! To avoid problems, names should only contain upper case characters A-Z, lower case characters a-z, digits 0-9, - (minus), and _ (underscore).
- Check your log: you should see logs about the detected devices
- Write a URL such as http://edge.live.mp3.mdn.newmedia.nacamar.net/ps-dieneue_rock/livestream_hi.mp3 to the chromecast.0.
<your chromecast name>
.player.url2play - The URL should start playing on your device
- detect devices with multicast-dns
- optionally add additional manually configured devices in admin pannel, tab "devices"
- create ioBroker objects for each found device
- status, player, media and metadata channels
- control Google Home device from adapter
- set volume
- mute/unmute
- stop broadcasting
- pause
- play url (chromecast.0.
<your Google Home name>
.player.url2play)- tested with MP3
- Full list of formats here.
- when the url does not start with http then assume that this is a local file
- export file via ioBroker web server
- it only plays fist file from playlist files such as .m3u
- tested with MP3
- Vis widget
- NOTE: requires patched vis adapter.
- Initial support for Chromecast audio groups
- Note: this does not work with SSDP -> disable by default in adapter settings
- Play again last played stream: just set chromecast.0.
<your device>
.status.playing to true
- add state machine to track states: detected ->connected -> player loader -> playing
- add retries: sometimes the Google Home fails to respond to a request
- more testing
- (neopholus) Fixed #274 which was introduced in 3.4.0 enabling support for devices located in different subnets has been added. Possibly a breaking change for some people.
- (foxriver76) migrated binary state to file
- (neopholus) Support for devices located in different subnets has been added. [#154, #160]
- (mcm1957) Dependencies have been updated
- (mcm1957) Adapter requires node.js 18 and js-controller >= 5 now
- (mcm1957) Dependencies have been updated
- (mcm1957) changed: Testing has been updated to use node.js 16/18/20
- (mcm1957) changed: Dependencies have been updated
- (raintonr) YouTube videos are allowed now (#75)
- (raintonr) AppId has been added to status (#151)
- (raintonr) Storing of webserver settings has been corrected if web instance listens on only one address (#145)
- (bluefox) Refactoring done
- (bluefox) Removed dependency with nettools
- (bluefox) Added support of web port other than 8082
- (jey cee) Breaking change: Object IDs are now mac addresses instead names
- (Bjoern3003) set album name as song if provided in icy-nlicame
- (Apollon77/aortmannm) Make compatible with Node.js 16+
- (Apollon77) Add Sentry for crash reporting
- (angelnu) Tested compact mode works in Linux and Windows
- news
- Fix missing reference when mDNS update is received
- Remove mandatory dependency on vis adapter
- Option to configure device URLs manually (when devices are in a different subnetwork)
- Reconnect on mDNS updates
- (angelnu) compact mode support
- (bluefox) refactoring and add new states for material
- Added enabled flag so some adapters can be ignored
- Always use volume parameter for announcements
- Fix for languages in io-package
- (angelnu) Support for additional languages
- (angelnu) Support for version 3 of the Admin adapter
- (angelnu) Update to latest cast2-player - wait for announcement
- (angelnu) Rename to Google Home
- (bluefox) bump a version
- (Vegetto) recognize uncompleted playlist status and trigger a new getStatus
- (Vegetto) Fix updateStates to accept null values
- (Vegetto) Add playlist currentItemdId
- (Vegetto) Create playlist channel with raw playlist and repeat modes
- (Vegetto) Moved jump and repeatMode from player to plalist channel
- (Vegetto) Forgot to step up version.
- (Vegetto) Update to player 1.1.3 - support relative paths in playlists
- (Vegetto) Update to player 1.1.2 - reconnect on url2play
- (Vegetto) Mayor rework
- Chromecast player and scanner splitted into a separated module
- Support for playlists
- Improved MIME detection - OGG files work now
- Support for announcements - playlist resume after completing announcement
- Support to jump between playlist entries
- (Vegetto) bugfix - media title was not kept to url when streamTitle not present
- (Vegetto) Update npm dependencies in package.json to latest versions
- (Vegetto) bugfix - not playing when another chromecast playing same url
- (Vegetto) added additional logs
- (Vegetto) Added support for playlist m3u, asx and pls files - play first entry
- (Vegetto) Do not use this in callbacks. Replaced with that
- (Vegetto) Fix contentId not being updated. This was breaking the play last stream feature
- (Vegetto) Do not try to stop if not playing
- (Vegetto) Show MultizoneLeader as playing
- (Vegetto) Set pause state to false when modified and device is not playing
- (Vegetto) Fix widget crashing when devId is not set
- (Vegetto) Fix deprecation warning - use dns-txt instead of mdns-txt
- (Vegetto) Fix exception
- (Vegetto) Try to play last played URL when setting playing state to true
- (Vegetto) Fix jshint and jscs findings
- (Vegetto) Update readme
- (Vegetto) Integrated into iobroker: listed there
- (Vegetto) Add vis widget (Alpha)
- (Vegetto) Performance improvements
- (Vegetto) Stability fixes - error handling, race-condition fixes, etc
- (Vegetto) Clean getMediaInfo handler when disconnecting player
- (Vegetto) Added support to retrieve ICY metadata from https sources
- (Vegetto) Moved code for querying media info to a separate class
- (Vegetto) Support dynamic IP/port changes (audio groups)
- (Vegetto) Added re-connection with retries. Will try for up 42 hours.
- (Vegetto) Support for triggering a reconnection by writing to .status.connected
- (Vegetto) Fixed race condition when playing local file
- (Vegetto) Added support for playing local files
- (Bluefox) Russian translations
- (Vegetto) Update stale metadata when not present in player status
- (Vegetto) Initial support for audio groups
- (Vegetto) Retrieve media type and title from URLs that support ICY
- (Vegetto) Added displayName, isActiveInput and isStandBy status
- (Vegetto) Merge base
- (Vegetto) Fix package syntax
- (Vegetto) Fix package dependencies
- (Vegetto) Initial release
The MIT License (MIT)
Copyright (c) 2024 iobroker-community-adapters iobroker-community-adapters@gmx.de Copyright (c) 2015-2022 Vegetto iobroker@angelnu.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.