diff --git a/bundles/org.openhab.binding.airq/README.md b/bundles/org.openhab.binding.airq/README.md index 6466a485b4c59..48d130cf02528 100644 --- a/bundles/org.openhab.binding.airq/README.md +++ b/bundles/org.openhab.binding.airq/README.md @@ -79,6 +79,8 @@ The rw column is empty if the channel is only readable, w if the channel can be | temperature | Number:Temperature | | Temperature | | timestamp | DateTime | | Timestamp of measurement | | tvoc | Number:Dimensionless | | VOC concentration | +| virus-free | Number:Dimensionless | r | Virus-Free index in percent; the lower the index, the higher the potential virus risk. | +| mold-free | Number:Dimensionless | r | Mold-Free index in percent; the lower the index, the higher the potential mold risk. | | uptime | Number:Time | | uptime in seconds | | wifi | Switch | | WLAN on or off | | ssid | String | | WLAN SSID | @@ -168,6 +170,8 @@ Number:Temperature airQ_temperature "Temperature" DateTime airQ_timestamp "TimeStamp [%1$td.%1$tm.%1$tY %1$tH:%1$tM]" {channel="airq:airq:1:timestamp"} Number:Dimensionless airQ_voc "VOC concentration" {channel="airq:airq:1:tvoc"} Number:Time airQ_uptime "Uptime" {channel="airq:airq:1:uptime"} +Number:Dimensionless airQ_Virus_free "Virus-Free index" {unit="%",channel="airq:airq:1:virus_free"} +Number:Dimensionless airQ_Mold_free "Mold-Free index" {unit="%",channel="airq:airq:1:mold_free"} Number:Dimensionless airQ_cnt03_maxerr "Maximum error of Fine Dust >0,3 µm" {channel="airq:airq:1:cnt0_3_maxerr"} Number:Dimensionless airQ_cnt05_maxerr "Maximum error of Fine Dust >0,5 µm" {channel="airq:airq:1:cnt0_5_maxerr"} @@ -190,6 +194,8 @@ Number:Dimensionless airQ_so2_maxerr "Maximum error of SO2 concentrati Number:Dimensionless airQ_sound_maxerr "Maximum error of Noise" {channel="airq:airq:1:sound_maxerr"} Number:Dimensionless airQ_temperature_maxerr "Maximum error of Temperature" {channel="airq:airq:1:temperature_maxerr"} Number:Dimensionless airQ_voc_maxerr "Maximum error of VOC concentration" {channel="airq:airq:1:tvoc_maxerr"} +Number:Dimensionless airQ_virus_free_maxerr "Maximum error of Virus-Free" {unit="%",channel="airq:airq:1:virus_free_maxerr"} +Number:Dimensionless airQ_mold_free_maxerr "Maximum error of Mold-Free" {unit="%",channel="airq:airq:1:mold_free_maxerr"} Switch airQ_wifi "WLAN on or off" {channel="airq:airq:1:wifi"} String airQ_SSID "WLAN SSID" {channel="airq:airq:1:ssid"} diff --git a/bundles/org.openhab.binding.airq/src/main/java/org/openhab/binding/airq/internal/AirqHandler.java b/bundles/org.openhab.binding.airq/src/main/java/org/openhab/binding/airq/internal/AirqHandler.java index 4be279bee85e7..0a608d7d69de3 100644 --- a/bundles/org.openhab.binding.airq/src/main/java/org/openhab/binding/airq/internal/AirqHandler.java +++ b/bundles/org.openhab.binding.airq/src/main/java/org/openhab/binding/airq/internal/AirqHandler.java @@ -496,6 +496,8 @@ public void pollData() { processType(decObj, "timestamp", "timestamp", "datetime"); processType(decObj, "uptime", "uptime", "numberTimePeriod"); processType(decObj, "tvoc", "tvoc", "pairPPB"); + processType(decObj, "virus", "virus_free", "pair"); + processType(decObj, "mold", "mold_free", "pair"); updateStatus(ThingStatus.ONLINE); } catch (JsonSyntaxException e) { diff --git a/bundles/org.openhab.binding.airq/src/main/resources/OH-INF/i18n/airq.properties b/bundles/org.openhab.binding.airq/src/main/resources/OH-INF/i18n/airq.properties index a316c648dddcf..f2e8c0eadcf11 100644 --- a/bundles/org.openhab.binding.airq/src/main/resources/OH-INF/i18n/airq.properties +++ b/bundles/org.openhab.binding.airq/src/main/resources/OH-INF/i18n/airq.properties @@ -75,6 +75,9 @@ channel-type.airq.humidity.label = Humidity channel-type.airq.humidity_abs.label = Absolute Humidity channel-type.airq.humidity_abs_maxerr.label = Max. Error Abs. Humidity channel-type.airq.humidity_maxerr.label = Max. Error Humidity +channel-type.airq.mold_free.label = Mold-Free Index +channel-type.airq.mold_free_maxerr.label = Max. Error Mold-Free +channel-type.airq.mold_free_maxerr.description = Maximum tolerated error in the Mold-Free Index measurement. channel-type.airq.mtime.label = Time Needed for Measurement channel-type.airq.nightmodeBrightnessDay.label = Day Brightness of LED channel-type.airq.nightmodeBrightnessNight.label = Night Brightness of LED @@ -113,3 +116,6 @@ channel-type.airq.tvoc_maxerr.label = Max. Error VOC Conc. channel-type.airq.typps.label = Average Size of Fine Dust channel-type.airq.uptime.label = Uptime channel-type.airq.usercalib.label = Last Sensor Calibration +channel-type.airq.virus_free.label = Virus-Free Index +channel-type.airq.virus_free_maxerr.label = Max. Error Virus-Free +channel-type.airq.virus_free_maxerr.description = Maximum tolerated error in the Virus-Free Index measurement. diff --git a/bundles/org.openhab.binding.airq/src/main/resources/OH-INF/thing/thing-types.xml b/bundles/org.openhab.binding.airq/src/main/resources/OH-INF/thing/thing-types.xml index 55d24456bac8e..53be7e59ca7cd 100644 --- a/bundles/org.openhab.binding.airq/src/main/resources/OH-INF/thing/thing-types.xml +++ b/bundles/org.openhab.binding.airq/src/main/resources/OH-INF/thing/thing-types.xml @@ -46,6 +46,8 @@ + + @@ -71,6 +73,8 @@ + + @@ -120,7 +124,7 @@ Unknown sensor list No info about sensors No industry info - 2 + 3 @@ -348,6 +352,18 @@ + + Number:Dimensionless + + + + + + Number:Dimensionless + + + + Number:Dimensionless @@ -487,6 +503,20 @@ + + Number:Dimensionless + + Maximum tolerated error in the Virus-Free Index measurement. + + + + + Number:Dimensionless + + Maximum tolerated error in the Mold-Free Index measurement. + + + diff --git a/bundles/org.openhab.binding.airq/src/main/resources/OH-INF/update/update.xml b/bundles/org.openhab.binding.airq/src/main/resources/OH-INF/update/update.xml index ce06ce5b7e127..e8c0acd8d84cd 100644 --- a/bundles/org.openhab.binding.airq/src/main/resources/OH-INF/update/update.xml +++ b/bundles/org.openhab.binding.airq/src/main/resources/OH-INF/update/update.xml @@ -75,6 +75,26 @@ + + + airq:virus_free + + + + airq:virus-free_maxerr + + Maximum tolerated error in the Virus-Free Index measurement. + + + airq:mold_free + + + + airq:mold_free_maxerr + + Maximum tolerated error in the Mold-Free Index measurement. + +