]> git.basschouten.com Git - openhab-addons.git/commitdiff
[haywardomnilogic] Fix item-type value for channel types waterflow and (#12727)
authorlolodomo <lg.hc@free.fr>
Thu, 12 May 2022 21:14:50 +0000 (23:14 +0200)
committerGitHub <noreply@github.com>
Thu, 12 May 2022 21:14:50 +0000 (23:14 +0200)
Related to #12712

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
bundles/org.openhab.binding.haywardomnilogic/src/main/java/org/openhab/binding/haywardomnilogic/internal/HaywardThingHandler.java
bundles/org.openhab.binding.haywardomnilogic/src/main/resources/OH-INF/thing/bow.xml
bundles/org.openhab.binding.haywardomnilogic/src/main/resources/OH-INF/thing/heater.xml

index 129d95a47b6d9e80ccfab30a57b99bf7d5e7922e..f9c722418337a11b7dac87224cf589c15c1f7081 100644 (file)
@@ -67,7 +67,6 @@ public abstract class HaywardThingHandler extends BaseThingHandler {
             case "Number":
                 return new DecimalType(value);
             case "Switch":
-            case "system.power":
                 return Integer.parseInt(value) > 0 ? OnOffType.ON : OnOffType.OFF;
             case "Number:Dimensionless":
                 switch (channelID) {
index 3363189dc8a7c111ba1ae587843790be4579bcb0..ff786265f9e2ced758311ba18ccd487601e8097d 100644 (file)
@@ -31,7 +31,7 @@
        </thing-type>
 
        <channel-type id="waterFlow">
-               <item-type>system.power</item-type>
+               <item-type>Switch</item-type>
                <label>Flow Sensor</label>
                <description>Flow Sensor</description>
                <state readOnly="true"/>
index be76ca46ded8a0d32f84546e613b8540797ca81a..b282edaa25b2d076c1440a3457dec5ac380df9d9 100644 (file)
@@ -39,7 +39,7 @@
        </channel-type>
 
        <channel-type id="enable">
-               <item-type>system.power</item-type>
+               <item-type>Switch</item-type>
                <label>Heater Enable</label>
                <description>Heater Enable</description>
                <state readOnly="true"/>