Activities are a grouping of one or more devices (physical or logical) to perform a usable task inside a specific room. Activities are comprised of:
- Potential instruction on source selection
- The type of media (AudioVideo or audio only…)
- Cascading sources (if more than one device needs to change inputs)
- A MediaPlayer if it cannot be interferred from the list of participating devices
- A list of participating devices
Here is an extract of the system’s configuration file that describes participating elements and then the activity definitions.
<ir name="HomeTheater" type="iTach" ip="00:0c:1e:02:a7:07" port="4998" />
<device name="KodiHomeTheater" type="KodiDevice" location="HomeTheater" upnp="Kodi - HomeTheater" connected="HDMI" />
<device name="HomeTheater" type="Playlist">
<input source="MUSIC" device="KodiHomeTheater"/>
<input source="TV_MUSIC" device="AVM70UPNP"/>
<input source="PC_MUSIC" device="AVM70UPNP"/>
<input source="FireTV_MUSIC" device="AVM70UPNP"/>
</device>
<device name="SonyX700" type="UPnPIRDevice" location="HomeTheater" ir="HomeTheater" port="3" spacing="100" boot="1000" upnp="SonyX700" connected="HDMI" />
<location name="HomeTheater" tv="OptomaCinemaXP2" audio="AVM70" video="AVM70" volume="AVM70">
<activity name="BD3D" devices="SonyX700" sources="AVM70,Game" media="AudioVideo"/>
<activity name="MUSIC" sources="AVM70,Music" cascadingsources="HomeTheater,MUSIC" media="AudioOnly" mediaplayer="HomeTheater"/>
</location>