]> git.basschouten.com Git - openhab-addons.git/commitdiff
[sonyprojector] Switch to the default system channel type for power channel (#10970)
authorlolodomo <lg.hc@free.fr>
Mon, 12 Jul 2021 07:24:24 +0000 (09:24 +0200)
committerGitHub <noreply@github.com>
Mon, 12 Jul 2021 07:24:24 +0000 (09:24 +0200)
Set semantics to the powerstate channel type

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
bundles/org.openhab.binding.sonyprojector/src/main/resources/OH-INF/thing/channels.xml
bundles/org.openhab.binding.sonyprojector/src/main/resources/OH-INF/thing/ethernet.xml
bundles/org.openhab.binding.sonyprojector/src/main/resources/OH-INF/thing/serial.xml
bundles/org.openhab.binding.sonyprojector/src/main/resources/OH-INF/thing/serialoverip.xml

index 73b4e4bda426dc2e937f05ff2970e099c9245b00..092bf3a9188d3714e451f062f2fde80134c47340 100644 (file)
@@ -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>
 
index bbdd1aa1618c1e31f69a9950ababfe3d8d9ff68c..e186fdf9f7fa13e5730bbf61580d233e64bd315e 100644 (file)
@@ -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"/>
index d732c2e7829bbd79bb43f6c4701ec0f3f219f7f5..ec4898e0a698a2a45f3fb7d920ee19cc366eb3c1 100644 (file)
@@ -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"/>
index 7fcf73fbadc5e953a7516a93c2a64ba741224bd8..c5a852870a30597a8b26a4e297af96b1fd0a5f53 100644 (file)
@@ -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"/>