[openweathermap] Semantics added to channel types (#10972)

Also fix few categories to use only official categories

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
lolodomo 2022-02-08 19:06:25 +01:00 committed by GitHub
parent 60f9f60faf
commit 99cfb65aba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 27 additions and 3 deletions

View File

@ -455,6 +455,10 @@
<label>Apparent Temperature</label> <label>Apparent Temperature</label>
<description>Current apparent temperature.</description> <description>Current apparent temperature.</description>
<category>Temperature</category> <category>Temperature</category>
<tags>
<tag>Measurement</tag>
<tag>Temperature</tag>
</tags>
<state readOnly="true" pattern="%.1f %unit%"/> <state readOnly="true" pattern="%.1f %unit%"/>
</channel-type> </channel-type>
@ -502,7 +506,11 @@
<item-type>Number:Length</item-type> <item-type>Number:Length</item-type>
<label>Precipitation</label> <label>Precipitation</label>
<description>Precipitation volume of the related timespan.</description> <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%"/> <state readOnly="true" pattern="%.2f %unit%"/>
</channel-type> </channel-type>
@ -551,6 +559,10 @@
<label>Gust Speed</label> <label>Gust Speed</label>
<description>Current gust speed.</description> <description>Current gust speed.</description>
<category>Wind</category> <category>Wind</category>
<tags>
<tag>Measurement</tag>
<tag>Wind</tag>
</tags>
<state readOnly="true" pattern="%.1f %unit%"/> <state readOnly="true" pattern="%.1f %unit%"/>
</channel-type> </channel-type>
@ -566,7 +578,7 @@
<item-type>Number:Dimensionless</item-type> <item-type>Number:Dimensionless</item-type>
<label>Cloudiness</label> <label>Cloudiness</label>
<description>Current cloudiness.</description> <description>Current cloudiness.</description>
<category>Clouds</category> <category>Sun_Clouds</category>
<state readOnly="true" min="0" max="100" pattern="%d %unit%"/> <state readOnly="true" min="0" max="100" pattern="%d %unit%"/>
</channel-type> </channel-type>
@ -574,7 +586,7 @@
<item-type>Number:Dimensionless</item-type> <item-type>Number:Dimensionless</item-type>
<label>Forecasted Cloudiness</label> <label>Forecasted Cloudiness</label>
<description>Forecasted cloudiness.</description> <description>Forecasted cloudiness.</description>
<category>Clouds</category> <category>Sun_Clouds</category>
<state readOnly="true" min="0" max="100" pattern="%d %unit%"/> <state readOnly="true" min="0" max="100" pattern="%d %unit%"/>
</channel-type> </channel-type>
@ -583,6 +595,10 @@
<label>Rain</label> <label>Rain</label>
<description>Rain volume of the last hour.</description> <description>Rain volume of the last hour.</description>
<category>Rain</category> <category>Rain</category>
<tags>
<tag>Measurement</tag>
<tag>Rain</tag>
</tags>
<state readOnly="true" pattern="%.2f %unit%"/> <state readOnly="true" pattern="%.2f %unit%"/>
</channel-type> </channel-type>
@ -614,6 +630,10 @@
<item-type>Number</item-type> <item-type>Number</item-type>
<label>UV Index</label> <label>UV Index</label>
<description>Current UV Index.</description> <description>Current UV Index.</description>
<tags>
<tag>Measurement</tag>
<tag>Ultraviolet</tag>
</tags>
<state readOnly="true" pattern="%.1f"/> <state readOnly="true" pattern="%.1f"/>
</channel-type> </channel-type>
@ -686,6 +706,10 @@
<item-type>Number:Density</item-type> <item-type>Number:Density</item-type>
<label>Carbon Monoxide</label> <label>Carbon Monoxide</label>
<description>Current concentration of carbon monoxide.</description> <description>Current concentration of carbon monoxide.</description>
<tags>
<tag>Measurement</tag>
<tag>CO</tag>
</tags>
<state readOnly="true" pattern="%.1f %unit%"/> <state readOnly="true" pattern="%.1f %unit%"/>
</channel-type> </channel-type>