mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
[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:
parent
cc43251b5d
commit
6c2363d524
@ -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) {
|
||||
|
@ -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"/>
|
||||
|
@ -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"/>
|
||||
|
Loading…
Reference in New Issue
Block a user