[haywardomnilogic] Fix item-type value for channel types waterflow and (#12727)

Related to #12712

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
lolodomo 2022-05-12 23:14:50 +02:00 committed by GitHub
parent cc43251b5d
commit 6c2363d524
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 3 deletions

View 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) {

View 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"/>

View 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"/>