| player#artist | String | Artist name of the current song (available if playing from Network or USB) |
| player#currentPlayingTime | String | Current playing time of the current song (available if playing from Network or USB) |
| player#listenmode | Number | Current listening mode e.g. Stereo, 5.1ch Surround, ... |
+| player#audioinfo | String | Current audio info (Refresh timer must be configured for updates) |
| player#playuri | String | Plays the URI provided to the channel |
| player#albumArt | Image | Image of the current album art of the current song |
| player#albumArtUrl | String | URL to the current album art of the current song |
public static final String CHANNEL_ALBUM_ART = "player#albumArt";
public static final String CHANNEL_ALBUM_ART_URL = "player#albumArtUrl";
public static final String CHANNEL_LISTENMODE = "player#listenmode";
+ public static final String CHANNEL_AUDIOINFO = "player#audioinfo";
public static final String CHANNEL_PLAY_URI = "player#playuri";
public static final String CHANNEL_NET_MENU_TITLE = "netmenu#title";
VOLUME_SET("MVL", "%02X"),
VOLUME("MVL", ""),
+ AUDIOINFO("IFA", ""),
+ AUDIOINFO_QUERY("IFA", "QSTN"),
+
SOURCE_UP("SLI", "UP"),
SOURCE_DOWN("SLI", "DOWN"),
SOURCE_QUERY("SLI", "QSTN"),
updateStatus(ThingStatus.ONLINE);
sendCommand(EiscpCommand.INFO_QUERY);
+ sendCommand(EiscpCommand.AUDIOINFO_QUERY);
}
});
sendCommand(EiscpCommand.NETUSB_TITLE_QUERY);
}
break;
-
+ case CHANNEL_AUDIOINFO:
+ if (command.equals(RefreshType.REFRESH)) {
+ sendCommand(EiscpCommand.AUDIOINFO_QUERY);
+ }
+ break;
/*
* MISC
*/
/*
* MISC
*/
-
+ case AUDIOINFO:
+ updateState(CHANNEL_AUDIOINFO, convertDeviceValueToOpenHabState(data.getValue(), StringType.class));
+ logger.debug("audioinfo message: '{}'", data.getValue());
+ break;
case INFO:
processInfo(data.getValue());
logger.debug("Info message: '{}'", data.getValue());
sendCommand(EiscpCommand.NETUSB_TITLE_QUERY);
sendCommand(EiscpCommand.LISTEN_MODE_QUERY);
sendCommand(EiscpCommand.INFO_QUERY);
+ sendCommand(EiscpCommand.AUDIOINFO_QUERY);
if (isChannelAvailable(CHANNEL_POWERZONE2)) {
sendCommand(EiscpCommand.ZONE2_POWER_QUERY);
<channel id="album" typeId="album"/>
<channel id="artist" typeId="artist"/>
<channel id="listenmode" typeId="listenmode"/>
+ <channel id="audioinfo" typeId="audioinfo"/>
<channel id="playuri" typeId="playuri"/>
<channel id="albumArt" typeId="albumArt"/>
<channel id="albumArtUrl" typeId="albumArtUrl"/>
<label>Play URI</label>
<description>Plays a given URI</description>
</channel-type>
+ <channel-type id="audioinfo" advanced="true">
+ <item-type>String</item-type>
+ <label>Audio Info</label>
+ <description>Detailed audio info</description>
+ </channel-type>
<channel-type id="netControl" advanced="true">
<item-type>String</item-type>
<label>Control</label>