fix t31 fire and system statuses (#12252)
Signed-off-by: Luca Calcaterra <calcaterra.luca@gmail.com>
This commit is contained in:
parent
505258c234
commit
a78f73eecd
|
@ -49,7 +49,6 @@ public class SoulissT31Handler extends SoulissGenericHandler {
|
||||||
StringType fanStateValue = StringType.EMPTY;
|
StringType fanStateValue = StringType.EMPTY;
|
||||||
StringType powerState = StringType.EMPTY;
|
StringType powerState = StringType.EMPTY;
|
||||||
StringType fireState = StringType.EMPTY;
|
StringType fireState = StringType.EMPTY;
|
||||||
|
|
||||||
StringType lastModeState = StringType.EMPTY;
|
StringType lastModeState = StringType.EMPTY;
|
||||||
StringType modeStateValue = StringType.EMPTY;
|
StringType modeStateValue = StringType.EMPTY;
|
||||||
|
|
||||||
|
@ -166,6 +165,12 @@ public class SoulissT31Handler extends SoulissGenericHandler {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SoulissBindingConstants.T31_HEATINGMODE_MESSAGE_MODE_CHANNEL:
|
case SoulissBindingConstants.T31_HEATINGMODE_MESSAGE_MODE_CHANNEL:
|
||||||
|
if (!modeStateValue.equals(state)) {
|
||||||
|
this.updateState(SoulissBindingConstants.T31_MODE_CHANNEL, (StringType) state);
|
||||||
|
modeStateValue = (StringType) state;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case SoulissBindingConstants.T31_COOLINGMODE_MESSAGE_MODE_CHANNEL:
|
case SoulissBindingConstants.T31_COOLINGMODE_MESSAGE_MODE_CHANNEL:
|
||||||
if (!modeStateValue.equals(state)) {
|
if (!modeStateValue.equals(state)) {
|
||||||
this.updateState(SoulissBindingConstants.T31_MODE_CHANNEL, (StringType) state);
|
this.updateState(SoulissBindingConstants.T31_MODE_CHANNEL, (StringType) state);
|
||||||
|
@ -189,13 +194,13 @@ public class SoulissT31Handler extends SoulissGenericHandler {
|
||||||
case SoulissBindingConstants.T31_ON_MESSAGE_FIRE_CHANNEL:
|
case SoulissBindingConstants.T31_ON_MESSAGE_FIRE_CHANNEL:
|
||||||
if (!fireState.equals(state)) {
|
if (!fireState.equals(state)) {
|
||||||
this.updateState(SoulissBindingConstants.T31_FIRE_CHANNEL, OnOffType.ON);
|
this.updateState(SoulissBindingConstants.T31_FIRE_CHANNEL, OnOffType.ON);
|
||||||
powerState = (StringType) state;
|
fireState = (StringType) state;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SoulissBindingConstants.T31_OFF_MESSAGE_FIRE_CHANNEL:
|
case SoulissBindingConstants.T31_OFF_MESSAGE_FIRE_CHANNEL:
|
||||||
if (!fireState.equals(state)) {
|
if (!fireState.equals(state)) {
|
||||||
this.updateState(SoulissBindingConstants.T31_FIRE_CHANNEL, OnOffType.OFF);
|
this.updateState(SoulissBindingConstants.T31_FIRE_CHANNEL, OnOffType.OFF);
|
||||||
powerState = (StringType) state;
|
fireState = (StringType) state;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -1042,14 +1042,14 @@
|
||||||
</channel-type>
|
</channel-type>
|
||||||
|
|
||||||
<channel-type id="button">
|
<channel-type id="button">
|
||||||
<kind>trigger</kind>
|
<item-type>Switch</item-type>
|
||||||
<label>Button</label>
|
<label>Button</label>
|
||||||
<description>Button to trigger something</description>
|
<description>Button to trigger something</description>
|
||||||
<category>Switch</category>
|
<category>Switch</category>
|
||||||
</channel-type>
|
</channel-type>
|
||||||
|
|
||||||
<channel-type id="buttonReadOnly">
|
<channel-type id="buttonReadOnly">
|
||||||
<kind>trigger</kind>
|
<item-type>Switch</item-type>
|
||||||
<label>Button</label>
|
<label>Button</label>
|
||||||
<description>Button to trigger something</description>
|
<description>Button to trigger something</description>
|
||||||
<category>Switch</category>
|
<category>Switch</category>
|
||||||
|
@ -1154,7 +1154,6 @@
|
||||||
|
|
||||||
<channel-type id="float6n">
|
<channel-type id="float6n">
|
||||||
<item-type>Number</item-type>
|
<item-type>Number</item-type>
|
||||||
<kind>trigger</kind>
|
|
||||||
<label>Setpoint</label>
|
<label>Setpoint</label>
|
||||||
<description>Floating Point Input</description>
|
<description>Floating Point Input</description>
|
||||||
<category>Temperature</category>
|
<category>Temperature</category>
|
||||||
|
@ -1186,7 +1185,7 @@
|
||||||
<state readOnly="true" pattern="%.1f %unit%"/>
|
<state readOnly="true" pattern="%.1f %unit%"/>
|
||||||
</channel-type>
|
</channel-type>
|
||||||
|
|
||||||
<channel-type id="setpointTemperature" advanced="true">
|
<channel-type id="setpointTemperature">
|
||||||
<item-type>Number:Temperature</item-type>
|
<item-type>Number:Temperature</item-type>
|
||||||
<label>Setpoint Temperature</label>
|
<label>Setpoint Temperature</label>
|
||||||
<description>Setpoint temperature</description>
|
<description>Setpoint temperature</description>
|
||||||
|
|
Loading…
Reference in New Issue