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 (openhab#10970)

Set semantics to the powerstate channel type

Signed-off-by: Laurent Garnier <[email protected]>
  • Loading branch information
lolodomo authored and thinkingstone committed Nov 7, 2021
1 parent c237fc2 commit 0d5f1c7
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 0d5f1c7

Please sign in to comment.