From 1e9ee0174c3b8af2805811961c2c6eb5cab84b43 Mon Sep 17 00:00:00 2001 From: Mikael Gustafsson Date: Thu, 22 Apr 2021 21:32:31 +0300 Subject: [PATCH] [valloxmv] Fix co2 channel, hopefully working this time (#10555) Signed-off-by: Mikael Gustafsson --- .../openhab/binding/valloxmv/internal/ValloxMVWebSocket.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 62f0adbb8fa73..1d4c12aff8697 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 @@ -506,8 +506,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 QuantityType<>(iHumidity, Units.PARTS_PER_MILLION)); + updateChannel(ValloxMVBindingConstants.CHANNEL_CO2, new QuantityType<>(iCo2, Units.PARTS_PER_MILLION)); updateChannel(ValloxMVBindingConstants.CHANNEL_CELLSTATE, new DecimalType(iCellstate)); updateChannel(ValloxMVBindingConstants.CHANNEL_UPTIME_YEARS, new DecimalType(iUptimeYears)); updateChannel(ValloxMVBindingConstants.CHANNEL_UPTIME_HOURS, new DecimalType(iUptimeHours));