]> git.basschouten.com Git - openhab-addons.git/commitdiff
[airthings] Fix thing types (#15013)
authorJ-N-K <github@klug.nrw>
Sun, 21 May 2023 15:32:52 +0000 (17:32 +0200)
committerGitHub <noreply@github.com>
Sun, 21 May 2023 15:32:52 +0000 (17:32 +0200)
Signed-off-by: Jan N. Klug <github@klug.nrw>
bundles/org.openhab.binding.bluetooth.airthings/src/main/resources/OH-INF/thing/airthings.xml
bundles/org.openhab.binding.bluetooth.airthings/src/main/resources/OH-INF/update/update.xml [new file with mode: 0644]

index 7b7277bc96a5673bb0a884f3443433ff0d3a9734..930db3f86d9d960c7732d71e6b14850b173dbaf1 100644 (file)
                <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%"/>
diff --git a/bundles/org.openhab.binding.bluetooth.airthings/src/main/resources/OH-INF/update/update.xml b/bundles/org.openhab.binding.bluetooth.airthings/src/main/resources/OH-INF/update/update.xml
new file mode 100644 (file)
index 0000000..90e49b4
--- /dev/null
@@ -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>