Overview Block music system trivum

The function block connects one zone of a trivum MusicCenter or trivum AudioBox through the HTTP API of the device: switching on and off, volume, playback, source and favorites, plus several rooms playing together.

One function block is created per zone. All function blocks with the same IP address and port share one poll, so the device is not polled several times. Switching times and presence apply per zone.

The matching control is Block music system trivum. Sound, volume limits, alarm and presence are set there. Title, cover and favorites come directly from the device and are not on any output.

Setup

1. Create the function block, enter the IP address and Zone. The first zone of the device has the number 0.
2. Generate addresses: this creates all inputs except brightness and all outputs.
3. Drag the control onto the page and link it to the function block with a right click.

Inputs

ZE Zone on/off Optional. Non-zero switches the zone on, 0 switches it off. Every write telegram is evaluated; on a drawn connection, the change. If the zone was off, the power-on volume applies. Not connected: switched only through the control, switching times and presence.
LP Volume percent Optional. Volume 0…100 %, limited to the maximum volume. A value above 0 cancels mute. In a group the value applies to this zone only. Not connected: no effect.
LD Volume 4 bit Optional. Relative adjustment (DPT 3.007): bit 3 = louder, bits 0…2 the step (1 = 100 % to 7 = 1.5 %), 0 = stop. Adjusted in steps of 2 % every 0.3 seconds up to the limit. Not connected: no effect.
ST Mute Optional. Non-zero mutes, 0 cancels. Every write telegram is evaluated. Not connected: no effect.
PL Play Optional. Starts playback. Every write telegram with a non-zero value is evaluated; on a drawn connection, the change to non-zero. If the zone is off, it is switched on. If the zone follows another one, the command goes there. Not connected: no effect.
PA Pause Optional. Pauses playback, evaluated like PL. No effect while the zone is off, and on FM and line-in. Not connected: no effect.
VT Previous title Optional. Previous track or station, evaluated like PL. No effect while the zone is off. Not connected: no effect.
NT Next title Optional. Next track or station, evaluated like PL. No effect while the zone is off. Not connected: no effect.
FV Favorite Optional. Starts the favorite with this number (1…), 0 has no effect. Every write telegram is evaluated. The zone is switched on if necessary. Not connected: no effect.
SC Sleep minutes Optional. Switches the zone off after this time, 0 cancels. A zone that is off is switched on. Sleep also ends when the zone is switched off another way and does not survive a controller restart. Not connected: only through the control.
HE Brightness Optional. Brightness in lux for the condition When bright / When dark of switching times and presence. Not connected: the condition is not offered, switching times and presence always act.
LA Volume up 1 bit Optional. Every pulse (value not 0) raises the volume by the step size of the parameter, at most up to the maximum volume; a muted zone becomes audible again. Only acts on a zone that is playing or paused. Not connected: no effect.
LE Volume down 1 bit Optional. Every pulse (value not 0) lowers the volume by the step size, at most down to 0. Otherwise like LA.
ZF Shuffle The trivum MusicCenter does not offer shuffle; the input has no effect here.
WH Repeat The trivum MusicCenter does not offer repeat; the input has no effect here.

Outputs

SZ Status zone 1 = zone is on, as polled from the device.
SL Status volume Volume of the zone in percent.
SS Status mute 1 = the zone is muted, as polled from the device.
SP Playing 1 = the zone is currently playing. FM and line-in have no pause, they count as playing as long as the zone is on.
VB Connected 1 = the device answers. 0 after three consecutive errors.
GR Follows zone 0 = the zone plays on its own, otherwise the number of the lead zone plus 1.
SR Sleep remaining Remaining sleep time in minutes, 0 = off.
TX Title text What is playing as one text, for example for a display switch: "Artist - Title", for radio the station or service. Empty when the zone is off.
SF Status shuffle Always 0 with trivum.
WD Status repeat Always 0 with trivum.

Parameters

IP address Address of the device. Empty: the function block polls nothing.
Port HTTP port of the device, default 80.
Zone Number of the zone in the device, the first zone has the number 0.
Poll every (s) Interval of the polls, default 2 seconds. With several function blocks on one device the smallest value applies.
Debug Writes every request to the diagnostics.
Step volume up/down (%) Step size of the inputs LA and LE in percent, 1…20. Default 5.