Skip to content

Commit

Permalink
[sonyprojector] Switch to the default system channel type for power c…
Browse files Browse the repository at this point in the history
…hannel (#10970)

Set semantics to the powerstate channel type

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
  • Loading branch information
lolodomo committed Jul 12, 2021
1 parent 1f92039 commit 29acaf6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@
xmlns:thing="https://openhab.org/schemas/thing-description/v1.0.0"
xsi:schemaLocation="https://openhab.org/schemas/thing-description/v1.0.0 https://openhab.org/schemas/thing-description-1.0.0.xsd">

<channel-type id="power">
<item-type>Switch</item-type>
<label>Power</label>
<description>Power ON/OFF the projector</description>
</channel-type>

<channel-type id="powerstate">
<item-type>String</item-type>
<label>Power State</label>
<description>Current detailed power state of the projector</description>
<tags>
<tag>Status</tag>
<tag>Power</tag>
</tags>
<state readOnly="true"></state>
</channel-type>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<description>Ethernet connection to the Sony projector using PJ Talk</description>

<channels>
<channel id="power" typeId="power"/>
<channel id="power" typeId="system.power"/>
<channel id="powerstate" typeId="powerstate"/>
<channel id="input" typeId="input"/>
<channel id="calibrationpreset" typeId="calibrationpreset"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<description>Serial connection to the Sony projector</description>

<channels>
<channel id="power" typeId="power"/>
<channel id="power" typeId="system.power"/>
<channel id="powerstate" typeId="powerstate"/>
<channel id="input" typeId="input"/>
<channel id="calibrationpreset" typeId="calibrationpreset"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<description>Serial over IP connection to the Sony projector</description>

<channels>
<channel id="power" typeId="power"/>
<channel id="power" typeId="system.power"/>
<channel id="powerstate" typeId="powerstate"/>
<channel id="input" typeId="input"/>
<channel id="calibrationpreset" typeId="calibrationpreset"/>
Expand Down

0 comments on commit 29acaf6

Please sign in to comment.