diff --git a/bundles/org.openhab.binding.intesis/README.md b/bundles/org.openhab.binding.intesis/README.md index 506b0f896..78ec5640a 100644 --- a/bundles/org.openhab.binding.intesis/README.md +++ b/bundles/org.openhab.binding.intesis/README.md @@ -42,7 +42,7 @@ The binding uses the following configuration parameters. | outdoorTemperature | Number:Temperature | (Readonly) The outdoor air temperature (if applicable) | | | errorStatus | String | (Readonly) The error status of the device | OK,ERR | | 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. diff --git a/bundles/org.openhab.binding.intesis/src/main/java/org/openhab/binding/intesis/internal/handler/IntesisHomeHandler.java b/bundles/org.openhab.binding.intesis/src/main/java/org/openhab/binding/intesis/internal/handler/IntesisHomeHandler.java index 35aea4fd9..617415da2 100644 --- a/bundles/org.openhab.binding.intesis/src/main/java/org/openhab/binding/intesis/internal/handler/IntesisHomeHandler.java +++ b/bundles/org.openhab.binding.intesis/src/main/java/org/openhab/binding/intesis/internal/handler/IntesisHomeHandler.java @@ -392,6 +392,16 @@ public class IntesisHomeHandler extends BaseThingHandler { itemType = "Number:Temperature"; addChannel(channelId, itemType, null); 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: channelId = CHANNEL_TYPE_OUTDOORTEMP; itemType = "Number:Temperature"; @@ -485,6 +495,13 @@ public class IntesisHomeHandler extends BaseThingHandler { stateValue = QuantityType.valueOf(unit, SIUnits.CELSIUS); updateState(CHANNEL_TYPE_AMBIENTTEMP, stateValue); 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: unit = Math.round((element.value) / 10); stateValue = QuantityType.valueOf(unit, SIUnits.CELSIUS); diff --git a/bundles/org.openhab.binding.intesis/src/main/resources/OH-INF/thing/dynamic-channels.xml b/bundles/org.openhab.binding.intesis/src/main/resources/OH-INF/thing/dynamic-channels.xml index 3be613ad9..0e5e91911 100644 --- a/bundles/org.openhab.binding.intesis/src/main/resources/OH-INF/thing/dynamic-channels.xml +++ b/bundles/org.openhab.binding.intesis/src/main/resources/OH-INF/thing/dynamic-channels.xml @@ -46,5 +46,18 @@ @text/channel-type.intesis.outdoorTemperature.description + + String + + @text/channel-type.intesis.errorCode.description + + + + + Switch + + @text/channel-type.intesis.errorStatus.description + + diff --git a/bundles/org.openhab.binding.intesis/src/main/resources/OH-INF/thing/thing-types.xml b/bundles/org.openhab.binding.intesis/src/main/resources/OH-INF/thing/thing-types.xml index ecb15189e..b89de7883 100644 --- a/bundles/org.openhab.binding.intesis/src/main/resources/OH-INF/thing/thing-types.xml +++ b/bundles/org.openhab.binding.intesis/src/main/resources/OH-INF/thing/thing-types.xml @@ -6,7 +6,7 @@ - IntesisHome WiFi Adapter + Represents a single IntesisHome WiFi adapter on the network, connected to an A/C unit. @@ -26,7 +26,7 @@ - Represents a single IntesisBox adapter on the network, connected to an A/C unit. + Represents a single IntesisBox WiFi adapter on the network, connected to an A/C unit.