fix t31 fire and system statuses (#12252)

Signed-off-by: Luca Calcaterra <calcaterra.luca@gmail.com>
This commit is contained in:
Luca Calcaterra 2022-02-26 11:04:11 +01:00 committed by GitHub
parent 505258c234
commit a78f73eecd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 7 deletions

View File

@ -49,7 +49,6 @@ public class SoulissT31Handler extends SoulissGenericHandler {
StringType fanStateValue = StringType.EMPTY;
StringType powerState = StringType.EMPTY;
StringType fireState = StringType.EMPTY;
StringType lastModeState = StringType.EMPTY;
StringType modeStateValue = StringType.EMPTY;
@ -166,6 +165,12 @@ public class SoulissT31Handler extends SoulissGenericHandler {
break;
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:
if (!modeStateValue.equals(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:
if (!fireState.equals(state)) {
this.updateState(SoulissBindingConstants.T31_FIRE_CHANNEL, OnOffType.ON);
powerState = (StringType) state;
fireState = (StringType) state;
}
break;
case SoulissBindingConstants.T31_OFF_MESSAGE_FIRE_CHANNEL:
if (!fireState.equals(state)) {
this.updateState(SoulissBindingConstants.T31_FIRE_CHANNEL, OnOffType.OFF);
powerState = (StringType) state;
fireState = (StringType) state;
}
break;

View File

@ -1042,14 +1042,14 @@
</channel-type>
<channel-type id="button">
<kind>trigger</kind>
<item-type>Switch</item-type>
<label>Button</label>
<description>Button to trigger something</description>
<category>Switch</category>
</channel-type>
<channel-type id="buttonReadOnly">
<kind>trigger</kind>
<item-type>Switch</item-type>
<label>Button</label>
<description>Button to trigger something</description>
<category>Switch</category>
@ -1154,7 +1154,6 @@
<channel-type id="float6n">
<item-type>Number</item-type>
<kind>trigger</kind>
<label>Setpoint</label>
<description>Floating Point Input</description>
<category>Temperature</category>
@ -1186,7 +1185,7 @@
<state readOnly="true" pattern="%.1f %unit%"/>
</channel-type>
<channel-type id="setpointTemperature" advanced="true">
<channel-type id="setpointTemperature">
<item-type>Number:Temperature</item-type>
<label>Setpoint Temperature</label>
<description>Setpoint temperature</description>