]> git.basschouten.com Git - openhab-addons.git/commitdiff
[valloxmv] Fix co2 channel, hopefully working this time (#10555)
authorMikael Gustafsson <mikael.gustafsson80@gmail.com>
Thu, 22 Apr 2021 18:32:31 +0000 (21:32 +0300)
committerGitHub <noreply@github.com>
Thu, 22 Apr 2021 18:32:31 +0000 (20:32 +0200)
Signed-off-by: Mikael Gustafsson <mikael.gustafsson80@gmail.com>
bundles/org.openhab.binding.valloxmv/src/main/java/org/openhab/binding/valloxmv/internal/ValloxMVWebSocket.java

index 62f0adbb8fa73606ad0da921fed9696e668868a2..1d4c12aff8697734a102e7bb5f7a159a0239a5cb 100644 (file)
@@ -506,8 +506,7 @@ public class ValloxMVWebSocket {
                 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));