[airq] Add Hydrogen Sulfide (H₂S) (#16696)

* [airq] Add Hydrogen Sulfide (H₂S)

Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
This commit is contained in:
Fabian Wolter 2024-05-01 11:41:03 +02:00 committed by GitHub
parent 94b4639f55
commit e812d2dcbe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 39 additions and 1 deletions

View File

@ -59,6 +59,7 @@ The rw column is empty if the channel is only readable, w if the channel can be
| dHdt | Number | | Change of Humidity |
| dewpt | Number:Temperature | | Dew Point |
| doorEvent | Number | | Door Event (experimental, might not work reliably) |
| h2s | Number:Density | | Hydrogen sulfide (H₂S) |
| health | Number:Dimensionless | | Health Index (0 to 1000, -200 for gas alarm, -800 for fire alarm) |
| humidityRelative | Number:Dimensionless | | Humidity in percent |
| humidityAbsolute | Number | | Absolute Humidity |
@ -69,7 +70,7 @@ The rw column is empty if the channel is only readable, w if the channel can be
| performance | Number:Dimensionless | | Performance Index (0 to 1000) |
| fineDustConc01 | Number | | Fine Dust concentration >1 µm |
| fineDustConc02_5 | Number | | Fine Dust concentration >2.5 µm |
| fineDustConc10 | Number | | Fine Dust concentration >10 µm fni |
| fineDustConc10 | Number | | Fine Dust concentration >10 µm |
| pressure | Number:Pressure | | Pressure |
| so2 | Number | | SO₂ concentration |
| sound | Number:Dimensionless | | Noise |

View File

@ -464,6 +464,7 @@ public class AirqHandler extends BaseThingHandler {
processType(decObj, "co", "co", "pair");
processType(decObj, "co2", "co2", "pairPPM");
processType(decObj, "dewpt", "dewpt", "pair");
processType(decObj, "h2s", "h2s", "pair");
processType(decObj, "humidity", "humidityRelative", "pair");
processType(decObj, "humidity_abs", "humidityAbsolute", "pair");
processType(decObj, "no2", "no2", "pair");

View File

@ -67,6 +67,8 @@ channel-type.airq.dewpt_maxerr.label = Max. Error Dew Point
channel-type.airq.dhdt.label = Change of Humidity
channel-type.airq.door.label = Door Event (exp)
channel-type.airq.geopos.label = Location of air-Q Device
channel-type.airq.h2s.label = Hydrogen Sulfide (H₂S)
channel-type.airq.h2s_maxerr.label = Max. Error H₂S Conc.
channel-type.airq.health.label = Health Index
channel-type.airq.humidity.label = Humidity
channel-type.airq.humidity_abs.label = Absolute Humidity

View File

@ -24,6 +24,7 @@
<channel id="dHdt" typeId="dhdt"/>
<channel id="dewpt" typeId="dewpt"/>
<channel id="doorEvent" typeId="door"/>
<channel id="h2s" typeId="h2s"/>
<channel id="health" typeId="health"/>
<channel id="humidityRelative" typeId="humidity"/>
<channel id="humidityAbsolute" typeId="humidity_abs"/>
@ -53,6 +54,7 @@
<channel id="co_maxerr" typeId="co_maxerr"/>
<channel id="co2_maxerr" typeId="co2_maxerr"/>
<channel id="dewpt_maxerr" typeId="dewpt_maxerr"/>
<channel id="h2s_maxerr" typeId="h2s_maxerr"/>
<channel id="humidityRelative_maxerr" typeId="humidity_maxerr"/>
<channel id="humidityAbsolute_maxerr" typeId="humidity_abs_maxerr"/>
<channel id="no2_maxerr" typeId="no2_maxerr"/>
@ -115,6 +117,7 @@
<property name="sensorList">Unknown sensor list</property>
<property name="sensorInfo">No info about sensors</property>
<property name="industry">No industry info</property>
<property name="thingTypeVersion">1</property>
</properties>
<config-description>
@ -216,6 +219,12 @@
<state readOnly="true"></state>
</channel-type>
<channel-type id="h2s" advanced="false">
<item-type unitHint="µg/m³">Number:Density</item-type>
<label>Hydrogen Sulfide (H₂S)</label>
<state readOnly="true" pattern="%.2f %unit%"></state>
</channel-type>
<channel-type id="health" advanced="false">
<item-type>Number:Dimensionless</item-type>
<label>Health Index</label>
@ -379,6 +388,12 @@
<state readOnly="true" pattern="± %.2f %%"></state>
</channel-type>
<channel-type id="h2s_maxerr" advanced="true">
<item-type>Number:Dimensionless</item-type>
<label>Max. Error H₂S Conc.</label>
<state readOnly="true" pattern="± %.2f %%"></state>
</channel-type>
<channel-type id="humidity_maxerr" advanced="true">
<item-type unitHint="%">Number:Dimensionless</item-type>
<label>Max. Error Humidity</label>

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<update:update-descriptions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:update="https://openhab.org/schemas/update-description/v1.0.0"
xsi:schemaLocation="https://openhab.org/schemas/update-description/v1.0.0 https://openhab.org/schemas/update-description-1.0.0.xsd">
<thing-type uid="airq:airq">
<instruction-set targetVersion="1">
<add-channel id="h2s">
<type>airq:h2s</type>
<label>Hydrogen Sulfide (H₂S)</label>
</add-channel>
<add-channel id="h2s_maxerr">
<type>airq:h2s_maxerr</type>
<label>Max. Error H₂S Conc.</label>
</add-channel>
</instruction-set>
</thing-type>
</update:update-descriptions>