Skip to content

Commit 8a11e6a

Browse files
authored
[airq] Add Radon sensor and correct spelling mistake (openhab#20146)
* Add radon to README and fix spelling mistake for CO Signed-off-by: Merlin10437 <152161717+Merlin10437@users.noreply.github.com>
1 parent d06e38f commit 8a11e6a

5 files changed

Lines changed: 22 additions & 1 deletion

File tree

bundles/org.openhab.binding.airq/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ The rw column is empty if the channel is only readable, w if the channel can be
7474
| fineDustConc02_5 | Number | | Fine Dust concentration >2.5 µm |
7575
| fineDustConc10 | Number | | Fine Dust concentration >10 µm |
7676
| pressure | Number:Pressure | | Barometric Pressure |
77+
| radon | Number:RadiationSpecificActivity | | Radon concentration |
7778
| so2 | Number | | Sulfur dioxide (SO₂) concentration |
7879
| sound | Number:Dimensionless | | Noise |
7980
| temperature | Number:Temperature | | Temperature |
@@ -164,6 +165,7 @@ Number airQ_fineDustConc01 "Fine Dust Concentration >1µ"
164165
Number airQ_fineDustConc02_5 "Fine Dust Concentration >2.5µ" {channel="airq:airq:1:fineDustConc02_5"}
165166
Number airQ_fineDustConc10 "Fine Dust Concentration >10µ" {channel="airq:airq:1:fineDustConc10"}
166167
Number:Pressure airQ_pressure "Pressure" {channel="airq:airq:1:pressure"}
168+
Number:RadiationSpecificActivity airQ_radon "Radon Concentration" {channel="airq:airq:1:radon"}
167169
Number airQ_so2 "SO2 concentration" {channel="airq:airq:1:so2"}
168170
Number:Dimensionless airQ_sound "Noise" {channel="airq:airq:1:sound"}
169171
Number:Temperature airQ_temperature "Temperature" {channel="airq:airq:1:temperature"}

bundles/org.openhab.binding.airq/src/main/java/org/openhab/binding/airq/internal/AirqHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ public void pollData() {
474474
processType(decObj, "pm2_5", "fineDustConc02_5", "pair");
475475
processType(decObj, "pm10", "fineDustConc10", "pair");
476476
processType(decObj, "pressure", "pressure", "pair");
477+
processType(decObj, "radon", "radon", "pair");
477478
processType(decObj, "so2", "so2", "pair");
478479
processType(decObj, "sound", "sound", "pairDB");
479480
processType(decObj, "temperature", "temperature", "pair");

bundles/org.openhab.binding.airq/src/main/resources/OH-INF/i18n/airq.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ channel-type.airq.pm2_5_maxerr.label = Max. Error Fine Dust Conc. >2,5μm
103103
channel-type.airq.ppm_and_ppb.label = Values in Particles
104104
channel-type.airq.pressure.label = Barometric Pressure
105105
channel-type.airq.pressure_maxerr.label = Max. Error Pressure
106+
channel-type.airq.radon.label = Radon
106107
channel-type.airq.so2.label = SO₂ Concentration
107108
channel-type.airq.so2_maxerr.label = Max. Error SO₂ Conc.
108109
channel-type.airq.sound.label = Noise

bundles/org.openhab.binding.airq/src/main/resources/OH-INF/thing/thing-types.xml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
<channel id="fineDustConc02_5" typeId="pm2_5"/>
4141
<channel id="fineDustConc10" typeId="pm10"/>
4242
<channel id="pressure" typeId="pressure"/>
43+
<channel id="radon" typeId="radon"/>
4344
<channel id="so2" typeId="so2"/>
4445
<channel id="sound" typeId="sound"/>
4546
<channel id="temperature" typeId="temperature"/>
@@ -124,7 +125,7 @@
124125
<property name="sensorList">Unknown sensor list</property>
125126
<property name="sensorInfo">No info about sensors</property>
126127
<property name="industry">No industry info</property>
127-
<property name="thingTypeVersion">3</property>
128+
<property name="thingTypeVersion">4</property>
128129
</properties>
129130

130131
<config-description>
@@ -316,6 +317,16 @@
316317
<state readOnly="true" pattern="%.2f %unit%"></state>
317318
</channel-type>
318319

320+
<channel-type id="radon" advanced="false">
321+
<item-type unitHint="Bq/m³">Number:RadiationSpecificActivity</item-type>
322+
<label>Radon</label>
323+
<tags>
324+
<tag>Measurement</tag>
325+
<tag>Radon</tag>
326+
</tags>
327+
<state readOnly="true" pattern="%.0f %unit%"></state>
328+
</channel-type>
329+
319330
<channel-type id="so2" advanced="false">
320331
<item-type>Number</item-type>
321332
<label>SO₂ Concentration</label>

bundles/org.openhab.binding.airq/src/main/resources/OH-INF/update/update.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@
9595
<description>Maximum tolerated error in the Mold-Free Index measurement.</description>
9696
</add-channel>
9797
</instruction-set>
98+
<instruction-set targetVersion="4">
99+
<add-channel id="radon">
100+
<type>airq:radon</type>
101+
<label>Radon</label>
102+
</add-channel>
103+
</instruction-set>
98104
</thing-type>
99105

100106
</update:update-descriptions>

0 commit comments

Comments
 (0)