Controls a Squeezebox Server a.k.a. Logitech Media Server and its players.
Install this adapter via ioBroker Admin.
- Open instance config dialog
- Enter the IP address or host name of your Squeezebox Server
- Lower the time update interval value if you have enough performance in your system.
- Save the configuration
- Start the adapter
This is the IP address or host name of your Squeezebox Server.
This is the TCP port of your Squeezebox Server. Optional, default value is 9090. The server must listen to telnet commands on this port (don't confuse this with the web (HTTP) port which will always be a different one).
This is the username of your Squeezebox Server. By default this can be left empty. It is only needed if your server has password protection turned on.
This is the password of your Squeezebox Server. By default this can be left empty. It is only needed if your server has password protection turned on.
Every N seconds the elapsed time of playing tracks is updated. Leave this at 5 seconds if you are not using this for visualization. If you need more precision, set it to 2 or 1 seconds.
The adapter automatically connects to the configured Squeezebox Server and creates the following states for each player connected to the Squeezebox Server.
The names of the states are formatted like this: squeezebox.<instance>.<player>.<state>
- <instance> is the ioBroker adapter instance index (usually "0")
- <player> is the name you gave to the player when configuring it (spaces are replaced by underscores "_")
- <state> is described in the following sections
Boolean, read-write
- true: player is powered on
- false: plyer is on stand-by
Enumeration, read-write
- 0: Pause
- 1: Play
- 2: Stop
Integer (0...100), read-write
Playback volume from nothing (0) to maximum (100) Be careful when setting high values (>50) as this might hurt your ears (or your loved ones')!
Boolean, read-write
- true: player is muted (playback continues, but loudspeaker is off)
- false: player is in regular playback mode
String, read-write
The URL of the currently playing (or paused) song or stream.
String, read-only
The name of the currently playing (or paused) song or stream. Can be empty.
String, read-only
The name of the album of the currently playing (or paused) song or stream. Can be empty.
String, read-only
The name of the artist of the currently playing (or paused) song or stream. Can be empty.
String (URL), read-only
The URL to an artwork for the currently playing (or paused) song or stream. Should never be empty. If a stream is played, its artwork URL is used (see CLI "songinfo" tag "K"). If there is no artwork URL available (e.g. for a regular MP3 from LMS), the generic "current player artwork" link is used. To the generic artwork link, the adapter adds a "random" number to make sure the URL changes whenever the song changes.
Integer, read-only
The total length in seconds of the current song or stream.
String, read-only
The formatted total length of the current song or stream. (Format: "[hh:]mm:ss")
Integer, read-only
The number of seconds the current song or stream has been played already. This value is updated every "Track time update interval" (see Configuration above)
String, read-only
The formatted time the current song or stream has been played already. This value is updated every "Track time update interval" (see Configuration above)
Integer, read-write
The number of seconds until the player goes to sleep. Set this state to fade out and turn off the player with the given number of seconds as a duration. If this value is zero, the player is either off or not going to sleep; otherwise this player is going to sleep.
Button, write-only
Jumps to the next track in the playlist.
Button, write-only
Jumps to the previous track in the playlist.
Button, write-only
Switches to given preset number stored in the player.
- (mrMuppet) Fixed title error in streams and artwork.
- (mafof) Added buttons for forward/rewind and presets.
- (mafof) Added playlist path URL and sleep states.
- (UncleSamSwiss) Fixed issue with more than 9 players (fix in logitechmediaserver package)
- (UncleSamSwiss) Added support for optional TCP port number (default is still 9090)
- (UncleSamSwiss) Added support for optional login using username and password (by default still no authentication is used)
- (UncleSamSwiss) Ready to be published to NPM (no further changes)
- (UncleSamSwiss) Support for artwork (will use stream artwork if available, otherwise server artwork)
- (UncleSamSwiss) Initial version
- State for playlist [Arminhh]
- Synchronization of players [Arminhh]
- Control LMS from ioBroker (e.g. choose a radio station from the favorites) [ak1]
Apache 2.0
Copyright (c) 2015 UncleSamSwiss