diff --git a/bundles/org.openhab.binding.valloxmv/src/main/java/org/openhab/binding/valloxmv/internal/ValloxMVBindingConstants.java b/bundles/org.openhab.binding.valloxmv/src/main/java/org/openhab/binding/valloxmv/internal/ValloxMVBindingConstants.java index 0425506336f10..05e8e4977f418 100644 --- a/bundles/org.openhab.binding.valloxmv/src/main/java/org/openhab/binding/valloxmv/internal/ValloxMVBindingConstants.java +++ b/bundles/org.openhab.binding.valloxmv/src/main/java/org/openhab/binding/valloxmv/internal/ValloxMVBindingConstants.java @@ -97,6 +97,11 @@ public class ValloxMVBindingConstants { */ public static final String CHANNEL_HUMIDITY = "humidity"; + /** + * Current CO2 of the air flow exhausting the building. + */ + public static final String CHANNEL_CO2 = "co2"; + /** * Current cell state (0=heat recovery, 1=cool recovery, 2=bypass, 3=defrosting). */ diff --git a/bundles/org.openhab.binding.valloxmv/src/main/java/org/openhab/binding/valloxmv/internal/ValloxMVWebSocket.java b/bundles/org.openhab.binding.valloxmv/src/main/java/org/openhab/binding/valloxmv/internal/ValloxMVWebSocket.java index 369b70ad455d4..8ea53d7b8ec0c 100644 --- a/bundles/org.openhab.binding.valloxmv/src/main/java/org/openhab/binding/valloxmv/internal/ValloxMVWebSocket.java +++ b/bundles/org.openhab.binding.valloxmv/src/main/java/org/openhab/binding/valloxmv/internal/ValloxMVWebSocket.java @@ -428,7 +428,9 @@ public void onBinary(InputStream in) { BigDecimal bdTempOutside = getTemperature(bytes, 134); BigDecimal bdTempIncomingBeforeHeating = getTemperature(bytes, 136); BigDecimal bdTempIncoming = getTemperature(bytes, 138); - int iHumidity = getNumberBE(bytes, 166); + + int iHumidity = getNumberBE(bytes, 148); + int iCo2 = getNumberBE(bytes, 150); int iStateOrig = getNumberBE(bytes, 214); int iBoostTimer = getNumberBE(bytes, 220); @@ -503,6 +505,7 @@ public void onBinary(InputStream in) { updateChannel(ValloxMVBindingConstants.CHANNEL_TEMPERATURE_INCOMING, new QuantityType<>(bdTempIncoming, SIUnits.CELSIUS)); updateChannel(ValloxMVBindingConstants.CHANNEL_HUMIDITY, new QuantityType<>(iHumidity, Units.PERCENT)); + updateChannel(ValloxMVBindingConstants.CHANNEL_CO2, new DecimalType(iCo2)); updateChannel(ValloxMVBindingConstants.CHANNEL_CELLSTATE, new DecimalType(iCellstate)); updateChannel(ValloxMVBindingConstants.CHANNEL_UPTIME_YEARS, new DecimalType(iUptimeYears)); updateChannel(ValloxMVBindingConstants.CHANNEL_UPTIME_HOURS, new DecimalType(iUptimeHours)); diff --git a/bundles/org.openhab.binding.valloxmv/src/main/resources/OH-INF/i18n/valloxmv_de.properties b/bundles/org.openhab.binding.valloxmv/src/main/resources/OH-INF/i18n/valloxmv_de.properties index 34dd5eff0fd0d..54327020e246c 100644 --- a/bundles/org.openhab.binding.valloxmv/src/main/resources/OH-INF/i18n/valloxmv_de.properties +++ b/bundles/org.openhab.binding.valloxmv/src/main/resources/OH-INF/i18n/valloxmv_de.properties @@ -37,6 +37,8 @@ channel-type.valloxmv.tempincoming.label = Temperatur Zuluft channel-type.valloxmv.tempincoming.description = Aktuelle Temperatur der Zuluft channel-type.valloxmv.humidity.label = Luftfeuchtigkeit channel-type.valloxmv.humidity.description = Aktuelle Luftfeuchtigkeit der Abluft +channel-type.valloxmv.co2.label = Co2 +channel-type.valloxmv.co2.description = Aktueller Kohlenstoffdioxid Gehalt in der Abluft channel-type.valloxmv.cellstate.label = Status W�rmetauscher channel-type.valloxmv.cellstate.description = Status W�rmetauscher channel-type.valloxmv.cellstate.state.option.0 = W�rmer�ckgewinnung diff --git a/bundles/org.openhab.binding.valloxmv/src/main/resources/OH-INF/thing/thing-types.xml b/bundles/org.openhab.binding.valloxmv/src/main/resources/OH-INF/thing/thing-types.xml index 66fccd0d11da1..9a8b6f601ec51 100644 --- a/bundles/org.openhab.binding.valloxmv/src/main/resources/OH-INF/thing/thing-types.xml +++ b/bundles/org.openhab.binding.valloxmv/src/main/resources/OH-INF/thing/thing-types.xml @@ -18,6 +18,7 @@ + @@ -151,6 +152,13 @@ + + Number:Dimensionless + + CO2 measurement + + + Number