[freeboxos] Fix systeminfo group for active-player thing type (#17097)

* [freeboxos] Fix systeminfo group for active-player thing type

And remove this group from player thing type.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
lolodomo 2024-07-27 14:10:40 +02:00 committed by Ciprian Pascu
parent ec5d11ddef
commit ccad43b965
4 changed files with 44 additions and 3 deletions

View File

@ -189,6 +189,8 @@ channel-group-type.freeboxos.outgoing.channel.timestamp.label = Outgoing Call Ti
channel-group-type.freeboxos.player-actions.label = Player Actions
channel-group-type.freeboxos.player-status.label = Player Status
channel-group-type.freeboxos.player-sysinfo.label = System Informations
channel-group-type.freeboxos.player-sysinfo.channel.box-event.label = Player Event
channel-group-type.freeboxos.player-sysinfo.channel.box-event.description = Triggers when an event related to the Freebox player has been detected
channel-group-type.freeboxos.repeater-misc.label = Repeater Settings
channel-group-type.freeboxos.repeater-misc.channel.box-event.label = Repeater Event
channel-group-type.freeboxos.sensors.label = System Sensors

View File

@ -23,7 +23,10 @@
<label>System Informations</label>
<channels>
<channel id="uptime" typeId="uptime"/>
<channel id="box-event" typeId="box-event"/>
<channel id="box-event" typeId="box-event">
<label>Player Event</label>
<description>Triggers when an event related to the Freebox player has been detected</description>
</channel>
</channels>
</channel-group-type>

View File

@ -14,10 +14,13 @@
<channel-groups>
<channel-group typeId="player-actions" id="player-actions"/>
<channel-group typeId="sysinfo" id="sysinfo"/>
<channel-group typeId="connectivity" id="connectivity"/>
</channel-groups>
<properties>
<property name="thingTypeVersion">1</property>
</properties>
<representation-property>macAddress</representation-property>
<config-description-ref uri="thing-type:freeboxos:player"/>
@ -34,10 +37,14 @@
<channel-groups>
<channel-group typeId="player-actions" id="player-actions"/>
<channel-group typeId="player-status" id="player-status"/>
<channel-group typeId="sysinfo" id="sysinfo"/>
<channel-group typeId="player-sysinfo" id="sysinfo"/>
<channel-group typeId="connectivity" id="connectivity"/>
</channel-groups>
<properties>
<property name="thingTypeVersion">1</property>
</properties>
<representation-property>macAddress</representation-property>
<config-description-ref uri="thing-type:freeboxos:player"/>

View File

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<update:update-descriptions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:update="https://openhab.org/schemas/update-description/v1.0.0"
xsi:schemaLocation="https://openhab.org/schemas/update-description/v1.0.0 https://openhab.org/schemas/update-description-1.0.0.xsd">
<thing-type uid="freeboxos:player">
<instruction-set targetVersion="1">
<remove-channel id="uptime" groupIds="sysinfo"/>
<remove-channel id="ip-address" groupIds="sysinfo"/>
<remove-channel id="box-event" groupIds="sysinfo"/>
</instruction-set>
</thing-type>
<thing-type uid="freeboxos:active-player">
<instruction-set targetVersion="1">
<remove-channel id="ip-address" groupIds="sysinfo"/>
<update-channel id="box-event" groupIds="sysinfo">
<type>freeboxos:box-event</type>
<label>Player Event</label>
<description>Triggers when an event related to the Freebox player has been detected</description>
</update-channel>
</instruction-set>
</thing-type>
</update:update-descriptions>