[intesis] Fixed error channels not being updated (#8863)
Signed-off-by: Hans-Jörg Merk <github@hmerk.de>
This commit is contained in:
@@ -263,12 +263,10 @@ public class IntesisBoxHandler extends BaseThingHandler implements IntesisBoxCha
|
||||
updateState(CHANNEL_TYPE_VANESLR, new StringType(value));
|
||||
break;
|
||||
case "ERRCODE":
|
||||
properties.put("errorCode", value);
|
||||
updateProperties(properties);
|
||||
updateState(CHANNEL_TYPE_ERRORCODE, new StringType(value));
|
||||
break;
|
||||
case "ERRSTATUS":
|
||||
properties.put("errorStatus", value);
|
||||
updateProperties(properties);
|
||||
updateState(CHANNEL_TYPE_ERRORSTATUS, new StringType(value));
|
||||
if ("ERR".equals(value)) {
|
||||
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR,
|
||||
"device reported an error");
|
||||
|
||||
@@ -59,12 +59,14 @@
|
||||
<item-type>String</item-type>
|
||||
<label>@text/channel-type.intesis.errorCode.label</label>
|
||||
<description>@text/channel-type.intesis.errorCode.description</description>
|
||||
<state readOnly="true"></state>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="errorStatus">
|
||||
<item-type>String</item-type>
|
||||
<label>@text/channel-type.intesis.errorStatus.label</label>
|
||||
<description>@text/channel-type.intesis.errorStatus.description</description>
|
||||
<state readOnly="true"></state>
|
||||
</channel-type>
|
||||
|
||||
</thing:thing-descriptions>
|
||||
|
||||
Reference in New Issue
Block a user