[intesis] Fixed error channels not being updated (#8863)
Signed-off-by: Hans-Jörg Merk <github@hmerk.de>
This commit is contained in:
parent
c7b86c09d9
commit
ba5488f040
@ -76,6 +76,9 @@ String acVanesLeftRight "Vanes Left/Right Position" { ch
|
|||||||
Number:Temperature acSetPoint "Target Temperature" <heating> { channel="intesis:intesisHome:acOffice:targetTemperature" }
|
Number:Temperature acSetPoint "Target Temperature" <heating> { channel="intesis:intesisHome:acOffice:targetTemperature" }
|
||||||
Number:Temperature acAmbientTemp "Ambient Temperature" <temperature> { channel="intesis:intesisHome:acOffice:ambientTemperature" }
|
Number:Temperature acAmbientTemp "Ambient Temperature" <temperature> { channel="intesis:intesisHome:acOffice:ambientTemperature" }
|
||||||
Number:Temperature acOutdoorTemp "Outdoor Temperature" <temperature> { channel="intesis:intesisHome:acOffice:outdoorTemperature" }
|
Number:Temperature acOutdoorTemp "Outdoor Temperature" <temperature> { channel="intesis:intesisHome:acOffice:outdoorTemperature" }
|
||||||
|
String acErrorStatus "Errorstatus" { channel="intesis:intesisBox:acOffice:errorStatus" }
|
||||||
|
String acErrorCode "Errorcode" { channel="intesis:intesisBox:acOffice:errorCode" }
|
||||||
|
String acWifiSignal "Wifi Signal Quality" <qualityofservice> { channel="intesis:intesisBox:acOffice:wifiSignal" }
|
||||||
```
|
```
|
||||||
|
|
||||||
**Sitemap**
|
**Sitemap**
|
||||||
@ -92,6 +95,10 @@ sitemap intesishome label="My AC control" {
|
|||||||
Setpoint item=acSetPoint icon="temperature" minValue=16 maxValue=28 step=1
|
Setpoint item=acSetPoint icon="temperature" minValue=16 maxValue=28 step=1
|
||||||
Text item=acAmbientTemp icon="temperature"
|
Text item=acAmbientTemp icon="temperature"
|
||||||
Text item=acOutdoorTemp icon="temperature"
|
Text item=acOutdoorTemp icon="temperature"
|
||||||
|
Text item=acErrorStatus
|
||||||
|
Text item=acErrorCode
|
||||||
|
Text item=acWifiSignal icon="qualityofservice"
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
@ -263,12 +263,10 @@ public class IntesisBoxHandler extends BaseThingHandler implements IntesisBoxCha
|
|||||||
updateState(CHANNEL_TYPE_VANESLR, new StringType(value));
|
updateState(CHANNEL_TYPE_VANESLR, new StringType(value));
|
||||||
break;
|
break;
|
||||||
case "ERRCODE":
|
case "ERRCODE":
|
||||||
properties.put("errorCode", value);
|
updateState(CHANNEL_TYPE_ERRORCODE, new StringType(value));
|
||||||
updateProperties(properties);
|
|
||||||
break;
|
break;
|
||||||
case "ERRSTATUS":
|
case "ERRSTATUS":
|
||||||
properties.put("errorStatus", value);
|
updateState(CHANNEL_TYPE_ERRORSTATUS, new StringType(value));
|
||||||
updateProperties(properties);
|
|
||||||
if ("ERR".equals(value)) {
|
if ("ERR".equals(value)) {
|
||||||
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR,
|
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR,
|
||||||
"device reported an error");
|
"device reported an error");
|
||||||
|
|||||||
@ -59,12 +59,14 @@
|
|||||||
<item-type>String</item-type>
|
<item-type>String</item-type>
|
||||||
<label>@text/channel-type.intesis.errorCode.label</label>
|
<label>@text/channel-type.intesis.errorCode.label</label>
|
||||||
<description>@text/channel-type.intesis.errorCode.description</description>
|
<description>@text/channel-type.intesis.errorCode.description</description>
|
||||||
|
<state readOnly="true"></state>
|
||||||
</channel-type>
|
</channel-type>
|
||||||
|
|
||||||
<channel-type id="errorStatus">
|
<channel-type id="errorStatus">
|
||||||
<item-type>String</item-type>
|
<item-type>String</item-type>
|
||||||
<label>@text/channel-type.intesis.errorStatus.label</label>
|
<label>@text/channel-type.intesis.errorStatus.label</label>
|
||||||
<description>@text/channel-type.intesis.errorStatus.description</description>
|
<description>@text/channel-type.intesis.errorStatus.description</description>
|
||||||
|
<state readOnly="true"></state>
|
||||||
</channel-type>
|
</channel-type>
|
||||||
|
|
||||||
</thing:thing-descriptions>
|
</thing:thing-descriptions>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user