Skip to content

Commit

Permalink
[freeboxos] Fix systeminfo group for active-player thing type (openha…
Browse files Browse the repository at this point in the history
…b#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: Patrik Gfeller <patrik.gfeller@proton.me>
  • Loading branch information
lolodomo authored and pgfeller committed Sep 29, 2024
1 parent 6b81b16 commit f78f60a
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"/>
Expand All @@ -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"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit f78f60a

Please sign in to comment.