diff --git a/bundles/org.openhab.binding.tacmi/src/main/java/org/openhab/binding/tacmi/internal/schema/ApiPageParser.java b/bundles/org.openhab.binding.tacmi/src/main/java/org/openhab/binding/tacmi/internal/schema/ApiPageParser.java index c6d9a7a1512..cd5c955a81f 100644 --- a/bundles/org.openhab.binding.tacmi/src/main/java/org/openhab/binding/tacmi/internal/schema/ApiPageParser.java +++ b/bundles/org.openhab.binding.tacmi/src/main/java/org/openhab/binding/tacmi/internal/schema/ApiPageParser.java @@ -342,7 +342,8 @@ public class ApiPageParser extends AbstractSimpleMarkupHandler { channelType = "Number:Temperature"; state = new QuantityType<>(bd, SIUnits.CELSIUS); } else if ("%".equals(valParts[1])) { - channelType = "Number:Percent"; + // channelType = "Number:Percent"; Number:Percent is currently not handled... + channelType = "Number:Dimensionless"; state = new QuantityType<>(bd, SmartHomeUnits.PERCENT); } else if ("Imp".equals(valParts[1])) { // impulses - no idea how to map this to something useful here? diff --git a/bundles/org.openhab.binding.tacmi/src/main/java/org/openhab/binding/tacmi/internal/schema/TACmiSchemaHandler.java b/bundles/org.openhab.binding.tacmi/src/main/java/org/openhab/binding/tacmi/internal/schema/TACmiSchemaHandler.java index 2288a3b1add..9070cc1a83f 100644 --- a/bundles/org.openhab.binding.tacmi/src/main/java/org/openhab/binding/tacmi/internal/schema/TACmiSchemaHandler.java +++ b/bundles/org.openhab.binding.tacmi/src/main/java/org/openhab/binding/tacmi/internal/schema/TACmiSchemaHandler.java @@ -250,6 +250,17 @@ public class TACmiSchemaHandler extends BaseThingHandler { return; } break; + case NUMERIC_FORM: + ChangerX2Entry cx2en = e.changerX2Entry; + if (cx2en != null) { + reqUpdate = prepareRequest(buildUri("INCLUDE/change.cgi?changeadrx2=" + cx2en.address + + "&changetox2=" + command.format("%.2f"))); + reqUpdate.header(HttpHeader.REFERER, this.serverBase + "schema.html"); // required... + } else { + logger.debug("Got command for uninitalized channel {}: {}", channelUID, command); + return; + } + break; case READ_ONLY_NUMERIC: case READ_ONLY_STATE: case READ_ONLY_SWITCH: