Skip to content

Commit

Permalink
[enocean] Standardize config URI (#11009)
Browse files Browse the repository at this point in the history
Signed-off-by: Laurent Garnier <[email protected]>
  • Loading branch information
lolodomo authored Jul 17, 2021
1 parent d8aacd8 commit 8367aae
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:config-description="https://openhab.org/schemas/config-description/v1.0.0"
xsi:schemaLocation="https://openhab.org/schemas/config-description/v1.0.0 https://openhab.org/schemas/config-description-1.0.0.xsd">

<config-description uri="enocean:genericChannel:config">
<config-description uri="channel-type:enocean:genericChannel">
<parameter name="transformationType" type="text" required="true">
<label>Transformation Type</label>
<description>The type of the transformation, e.g. "MAP"</description>
Expand All @@ -15,7 +15,7 @@
</parameter>
</config-description>

<config-description uri="enocean:listeningRockerChannel:config">
<config-description uri="channel-type:enocean:listeningRockerChannel">
<parameter name="enoceanId" type="text">
<label>EnOceanId</label>
<description>EnOcean Id to listen to</description>
Expand All @@ -40,7 +40,7 @@
</parameter>
</config-description>

<config-description uri="enocean:virtualRockerChannel:config">
<config-description uri="channel-type:enocean:virtualRockerChannel">
<parameter name="duration" type="integer" unit="ms">
<label>Time Between Press and Release Message</label>
<default>250</default>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@
<item-type>Switch</item-type>
<label>Rocker Switch</label>
<description>The virtual rocker switch channel allows to send rocker msg.</description>
<config-description-ref uri="enocean:virtualRockerChannel:config"/>
<config-description-ref uri="channel-type:enocean:virtualRockerChannel"/>
</channel-type>

<!-- virtual rocker switch channel -->
<channel-type id="virtualRollershutterA">
<item-type>Rollershutter</item-type>
<label>Rollershutter</label>
<description>This channels allows to control a rollershutter through rocker msg.</description>
<config-description-ref uri="enocean:virtualRockerChannel:config"/>
<config-description-ref uri="channel-type:enocean:virtualRockerChannel"/>
</channel-type>

<!-- virtual rocker switch channel -->
Expand All @@ -90,14 +90,14 @@
<channel-type id="rockerswitchListenerSwitch">
<item-type>Switch</item-type>
<label>Rocker Switch Listener (Switch)</label>
<config-description-ref uri="enocean:listeningRockerChannel:config"/>
<config-description-ref uri="channel-type:enocean:listeningRockerChannel"/>
</channel-type>

<!-- rocker switch listener channel -->
<channel-type id="rockerswitchListenerRollershutter">
<item-type>Rollershutter</item-type>
<label>Rocker Switch Listener (Rollershutter)</label>
<config-description-ref uri="enocean:listeningRockerChannel:config"/>
<config-description-ref uri="channel-type:enocean:listeningRockerChannel"/>
</channel-type>

</thing:thing-descriptions>
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<label>Switch</label>
<description>The switch channel allows to switch something on and off.</description>
<category>Switch</category>
<config-description-ref uri="enocean:genericChannel:config"/>
<config-description-ref uri="channel-type:enocean:genericChannel"/>
</channel-type>

<!-- Rollershutter Channel with transformation configuration -->
Expand All @@ -19,7 +19,7 @@
<label>Rollershutter</label>
<description>Rollershutter</description>
<category>Blinds</category>
<config-description-ref uri="enocean:genericChannel:config"/>
<config-description-ref uri="channel-type:enocean:genericChannel"/>
</channel-type>

<!-- Dimmer Channel with transformation configuration -->
Expand All @@ -28,26 +28,26 @@
<label>Dimmer</label>
<description>Dimmer</description>
<category>DimmableLight</category>
<config-description-ref uri="enocean:genericChannel:config"/>
<config-description-ref uri="channel-type:enocean:genericChannel"/>
</channel-type>

<channel-type id="genericNumber">
<item-type>Number</item-type>
<label>Number</label>
<description>Number</description>
<config-description-ref uri="enocean:genericChannel:config"/>
<config-description-ref uri="channel-type:enocean:genericChannel"/>
</channel-type>

<channel-type id="genericString">
<item-type>String</item-type>
<label>String</label>
<config-description-ref uri="enocean:genericChannel:config"/>
<config-description-ref uri="channel-type:enocean:genericChannel"/>
</channel-type>

<channel-type id="genericColor">
<item-type>Color</item-type>
<label>Color</label>
<config-description-ref uri="enocean:genericChannel:config"/>
<config-description-ref uri="channel-type:enocean:genericChannel"/>
</channel-type>

<!-- generic Teach in Channel -->
Expand All @@ -56,7 +56,7 @@
<label>Teach In</label>
<description>The teach in channel allows to send a teach in msg.</description>
<category>Switch</category>
<config-description-ref uri="enocean:genericChannel:config"/>
<config-description-ref uri="channel-type:enocean:genericChannel"/>
</channel-type>

</thing:thing-descriptions>

0 comments on commit 8367aae

Please sign in to comment.