Skip to content

YamlSlotPlayer

olialb edited this page Jun 8, 2026 · 1 revision

ohItem slot type player

The player is a special slot type which can only be used in slot 1 of Card type cardMedia

It has the following slot attributs:

Slot attribute default value optional / Mandetory Description
item - M Must be an item of type Player or String
volumeItem - M Must be a Dimmer item to control the volume
powerItem disabled O Can be used for a Switch item to switch the power of the player
powerItemColor ON=green,OFF=grey O color of the power icon
shuffleItem disabled O Can be used to control the shuffle status of the player
shuffleIcon ON=shuffle,OFF=shuffle-disabled O Defines the icon which is shown for different shuffle item states
line1Item empty O String item with text for first text field of the player
line2Item empty O String item with text for second text field of the player
line1Color blue O color of the first text field
line2Color blue O color of the second text field

Example in cardMedia:

    ...
    slots:
      - class: ohItem
        type: player
        item: YamahaControl
        volumeItem: YamahaVolume
        powerItem: YamahaPower
        shuffleItem: YamahaShuffle
        shuffleIcon: Off=shuffle-disabled,Songs=shuffle,Album=shuffle-variant
        line1Item: YamahaStation
        line2Item: YamahaTitle
        line1Color: red
        line2Color: green

image

Clone this wiki locally