[intesis] Add error channels to intesisHome thing (#9221)
Signed-off-by: Hans-Jörg Merk <github@hmerk.de>
This commit is contained in:
parent
84995bac83
commit
7bc48a220b
|
@ -42,7 +42,7 @@ The binding uses the following configuration parameters.
|
||||||
| outdoorTemperature | Number:Temperature | (Readonly) The outdoor air temperature (if applicable) | |
|
| outdoorTemperature | Number:Temperature | (Readonly) The outdoor air temperature (if applicable) | |
|
||||||
| errorStatus | String | (Readonly) The error status of the device | OK,ERR |
|
| errorStatus | String | (Readonly) The error status of the device | OK,ERR |
|
||||||
| errorCode | String | (Readonly) The error code if an error encountered | not documented |
|
| errorCode | String | (Readonly) The error code if an error encountered | not documented |
|
||||||
| wifiSignal | Number | (Readonly) WiFi signal strength (IntesisBox only) | 4=excellent, 3=good, 2=not string, 1=unreliable, 0=none |
|
| wifiSignal | Number | (Readonly) WiFi signal strength (IntesisBox only) | 4=excellent, 3=very good, 2=good, 1=acceptable, 0=low |
|
||||||
|
|
||||||
Note that individual A/C units may not support all channels, or all possible values for those channels.
|
Note that individual A/C units may not support all channels, or all possible values for those channels.
|
||||||
|
|
||||||
|
|
|
@ -392,6 +392,16 @@ public class IntesisHomeHandler extends BaseThingHandler {
|
||||||
itemType = "Number:Temperature";
|
itemType = "Number:Temperature";
|
||||||
addChannel(channelId, itemType, null);
|
addChannel(channelId, itemType, null);
|
||||||
break;
|
break;
|
||||||
|
case 14:
|
||||||
|
channelId = CHANNEL_TYPE_ERRORSTATUS;
|
||||||
|
itemType = "Switch";
|
||||||
|
addChannel(channelId, itemType, null);
|
||||||
|
break;
|
||||||
|
case 15:
|
||||||
|
channelId = CHANNEL_TYPE_ERRORCODE;
|
||||||
|
itemType = "String";
|
||||||
|
addChannel(channelId, itemType, null);
|
||||||
|
break;
|
||||||
case 37:
|
case 37:
|
||||||
channelId = CHANNEL_TYPE_OUTDOORTEMP;
|
channelId = CHANNEL_TYPE_OUTDOORTEMP;
|
||||||
itemType = "Number:Temperature";
|
itemType = "Number:Temperature";
|
||||||
|
@ -485,6 +495,13 @@ public class IntesisHomeHandler extends BaseThingHandler {
|
||||||
stateValue = QuantityType.valueOf(unit, SIUnits.CELSIUS);
|
stateValue = QuantityType.valueOf(unit, SIUnits.CELSIUS);
|
||||||
updateState(CHANNEL_TYPE_AMBIENTTEMP, stateValue);
|
updateState(CHANNEL_TYPE_AMBIENTTEMP, stateValue);
|
||||||
break;
|
break;
|
||||||
|
case 14:
|
||||||
|
updateState(CHANNEL_TYPE_ERRORSTATUS,
|
||||||
|
String.valueOf(element.value).equals("0") ? OnOffType.OFF : OnOffType.ON);
|
||||||
|
break;
|
||||||
|
case 15:
|
||||||
|
updateState(CHANNEL_TYPE_ERRORCODE, StringType.valueOf(String.valueOf(element.value)));
|
||||||
|
break;
|
||||||
case 37:
|
case 37:
|
||||||
unit = Math.round((element.value) / 10);
|
unit = Math.round((element.value) / 10);
|
||||||
stateValue = QuantityType.valueOf(unit, SIUnits.CELSIUS);
|
stateValue = QuantityType.valueOf(unit, SIUnits.CELSIUS);
|
||||||
|
|
|
@ -46,5 +46,18 @@
|
||||||
<description>@text/channel-type.intesis.outdoorTemperature.description</description>
|
<description>@text/channel-type.intesis.outdoorTemperature.description</description>
|
||||||
<state pattern="%.1f %unit%" step="0.5" readOnly="true"></state>
|
<state pattern="%.1f %unit%" step="0.5" readOnly="true"></state>
|
||||||
</channel-type>
|
</channel-type>
|
||||||
|
<channel-type id="errorCode">
|
||||||
|
<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>Switch</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>
|
</thing:thing-descriptions>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
<thing-type id="intesisHome">
|
<thing-type id="intesisHome">
|
||||||
<label>IntesisHome WiFi Adapter</label>
|
<label>IntesisHome WiFi Adapter</label>
|
||||||
<description>IntesisHome WiFi Adapter</description>
|
<description>Represents a single IntesisHome WiFi adapter on the network, connected to an A/C unit.</description>
|
||||||
<channels>
|
<channels>
|
||||||
<channel id="power" typeId="system.power"/>
|
<channel id="power" typeId="system.power"/>
|
||||||
</channels>
|
</channels>
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
<thing-type id="intesisBox">
|
<thing-type id="intesisBox">
|
||||||
<label>IntesisBox Adapter</label>
|
<label>IntesisBox Adapter</label>
|
||||||
<description>Represents a single IntesisBox adapter on the network, connected to an A/C unit.</description>
|
<description>Represents a single IntesisBox WiFi adapter on the network, connected to an A/C unit.</description>
|
||||||
<channels>
|
<channels>
|
||||||
<channel id="power" typeId="system.power"/>
|
<channel id="power" typeId="system.power"/>
|
||||||
<channel id="wifiSignal" typeId="system.signal-strength"/>
|
<channel id="wifiSignal" typeId="system.signal-strength"/>
|
||||||
|
|
Loading…
Reference in New Issue