]> git.basschouten.com Git - openhab-addons.git/commitdiff
[openweathermap] Semantics added to channel types (#10972)
authorlolodomo <lg.hc@free.fr>
Tue, 8 Feb 2022 18:06:25 +0000 (19:06 +0100)
committerGitHub <noreply@github.com>
Tue, 8 Feb 2022 18:06:25 +0000 (19:06 +0100)
Also fix few categories to use only official categories

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
bundles/org.openhab.binding.openweathermap/src/main/resources/OH-INF/thing/channel-types.xml

index 87a3d5cb037285310d5e794948d62d315e17de78..46be639ce723d1b4393a1e5ea26bbcb58c931d52 100644 (file)
                <label>Apparent Temperature</label>
                <description>Current apparent temperature.</description>
                <category>Temperature</category>
+               <tags>
+                       <tag>Measurement</tag>
+                       <tag>Temperature</tag>
+               </tags>
                <state readOnly="true" pattern="%.1f %unit%"/>
        </channel-type>
 
                <item-type>Number:Length</item-type>
                <label>Precipitation</label>
                <description>Precipitation volume of the related timespan.</description>
-               <category>Precipitation</category>
+               <category>Rain</category>
+               <tags>
+                       <tag>Measurement</tag>
+                       <tag>Rain</tag>
+               </tags>
                <state readOnly="true" pattern="%.2f %unit%"/>
        </channel-type>
 
                <label>Gust Speed</label>
                <description>Current gust speed.</description>
                <category>Wind</category>
+               <tags>
+                       <tag>Measurement</tag>
+                       <tag>Wind</tag>
+               </tags>
                <state readOnly="true" pattern="%.1f %unit%"/>
        </channel-type>
 
                <item-type>Number:Dimensionless</item-type>
                <label>Cloudiness</label>
                <description>Current cloudiness.</description>
-               <category>Clouds</category>
+               <category>Sun_Clouds</category>
                <state readOnly="true" min="0" max="100" pattern="%d %unit%"/>
        </channel-type>
 
                <item-type>Number:Dimensionless</item-type>
                <label>Forecasted Cloudiness</label>
                <description>Forecasted cloudiness.</description>
-               <category>Clouds</category>
+               <category>Sun_Clouds</category>
                <state readOnly="true" min="0" max="100" pattern="%d %unit%"/>
        </channel-type>
 
                <label>Rain</label>
                <description>Rain volume of the last hour.</description>
                <category>Rain</category>
+               <tags>
+                       <tag>Measurement</tag>
+                       <tag>Rain</tag>
+               </tags>
                <state readOnly="true" pattern="%.2f %unit%"/>
        </channel-type>
 
                <item-type>Number</item-type>
                <label>UV Index</label>
                <description>Current UV Index.</description>
+               <tags>
+                       <tag>Measurement</tag>
+                       <tag>Ultraviolet</tag>
+               </tags>
                <state readOnly="true" pattern="%.1f"/>
        </channel-type>
 
                <item-type>Number:Density</item-type>
                <label>Carbon Monoxide</label>
                <description>Current concentration of carbon monoxide.</description>
+               <tags>
+                       <tag>Measurement</tag>
+                       <tag>CO</tag>
+               </tags>
                <state readOnly="true" pattern="%.1f %unit%"/>
        </channel-type>