[airthings] Fix thing types (#15013)

Signed-off-by: Jan N. Klug <github@klug.nrw>
This commit is contained in:
J-N-K 2023-05-21 17:32:52 +02:00 committed by GitHub
parent 1b7dbd7ef9
commit 0724c3febc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 2 deletions

View File

@ -132,13 +132,13 @@
<state readOnly="true" pattern="%.0f %unit%"/>
</channel-type>
<channel-type id="airthings_radon_st_avg">
<item-type>Number:Density</item-type>
<item-type>Number:RadiationSpecificActivity</item-type>
<label>Radon Short Term Average Level</label>
<description>Radon gas level</description>
<state readOnly="true" pattern="%.0f %unit%"/>
</channel-type>
<channel-type id="airthings_radon_lt_avg">
<item-type>Number:Density</item-type>
<item-type>Number:RadiationSpecificActivity</item-type>
<label>Radon Long Term Average Level</label>
<description>Radon gas level</description>
<state readOnly="true" pattern="%.0f %unit%"/>

View File

@ -0,0 +1,28 @@
<?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="bluetooth:airthings_wave_gen1">
<instruction-set targetVersion="1">
<update-channel id="radon_st_avg">
<type>bluetooth:airthings_radon_st_avg</type>
</update-channel>
<update-channel id="radon_lt_avg">
<type>bluetooth:airthings_radon_lt_avg</type>
</update-channel>
</instruction-set>
</thing-type>
<thing-type uid="bluetooth:airthings_wave_plus">
<instruction-set targetVersion="1">
<update-channel id="radon_st_avg">
<type>bluetooth:airthings_radon_st_avg</type>
</update-channel>
<update-channel id="radon_lt_avg">
<type>bluetooth:airthings_radon_lt_avg</type>
</update-channel>
</instruction-set>
</thing-type>
</update:update-descriptions>