When a Chromecast is used as an audio sink, the Chromecast connects to openHAB to get the audio streams.
The binding sends the Chromecast URLs for getting the audio streams based on the Primary Address (Network Settings configuration) and openHAB HTTP port.
| control | Player | R/W | Player control; currently only supports play/pause/next and does not correctly update, if the state changes on the device itself |
| stop | Switch | R/W | Send `ON` to this channel: Stops the Chromecast. If this channel is `ON`, the Chromecast is stopped, otherwise it is in another state (see control channel) |
| volume | Dimmer | R/W | Control the volume, this is also updated if the volume is changed by another app |
| mute | Switch | R/W | Mute the audio |
| playuri | String | R/W | Can be used to tell the Chromecast to play media from a given url |
| appName | String | R | Name of currently running application |
| appId | String | R | ID of currently running application |
| idling | Switch | R | Indication on whether Chromecast is on idle screen |
| statustext | String | R | |
| currentTime | Number:Time | R | Current time of currently playing media |
| duration | Number:Time | R | Duration of current track (null if between tracks) |
| metadataType | String | R | Type of metadata, this indicates what metadata may be available. One of: GenericMediaMetadata, MovieMediaMetadata, TvShowMediaMetadata, MusicTrackMediaMetadata, PhotoMediaMetadata. |
| albumArtist | String | R | (MusicTrackMediaMetadata) Name of the artist associated with the album featuring this track |
| albumName | String | R | (MusicTrackMediaMetadata) Album or collection from which this track is drawn |
| artist | String | R | (MusicTrackMediaMetadata) Name of the artist associated with the media track |
| broadcastDate | DateTime | R | (TvShowMediaMetadata) ISO 8601 date and time this episode was released |
| composer | String | R | (MusicTrackMediaMetadata) Name of the composer associated with the media track |
| creationDate | DateTime | R | (PhotoMediaMetadata) ISO 8601 date and time this photograph was taken |
| discNumber | Number | R | (MusicTrackMediaMetadata) Number of the volume (for example, a disc) of the album |
| episodeNumber | Number | R | (TvShowMediaMetadata) Episode number (in the season) of the t.v. show |
| image | Image | R | (GenericMediaMetadata) Image for current media |
| imageSrc | String | R | (GenericMediaMetadata) URL of image for current media |
| locationName | String | R | (PhotoMediaMetadata) Verbal location where the photograph was taken; for example, "Madrid, Spain." |
| location | Location | R | (PhotoMediaMetadata) Geographical location of where the photograph was taken |
| releaseDate | DateTime | R | (GenericMediaMetadata) ISO 8601 date and time this content was released |
| seasonNumber | Number | R | (TvShowMediaMetadata) Season number of the t.v. show |
| seriesTitle | String | R | (TvShowMediaMetadata) Descriptive title of the t.v. series |
| studio | String | R | (TvShowMediaMetadata) Studio which released the content |
| subtitle | String | R | (GenericMediaMetadata) Descriptive subtitle of the content |
| title | String | R | (GenericMediaMetadata) Descriptive title of the content |
| trackNumber | Number | R | (MusicTrackMediaMetadata) Number of the track on the album |