[airvisualnode] Support AirVisual Pro version (#8686)

* [airvisualnode] Support AirVisual Pro version
* [airvisualnode] Autodetect Pro version
* [airvisualnode] Remove unused channels

Signed-off-by: Oleg Davydyuk <ilveann@gmail.com>
This commit is contained in:
Oleg Davudyuk
2020-10-13 02:46:27 +03:00
committed by GitHub
parent 0eac453308
commit 6d2bb8a216
18 changed files with 909 additions and 21 deletions

View File

@@ -14,7 +14,9 @@
<channel id="co2" typeId="Co2"/>
<channel id="humidity" typeId="Humidity"/>
<channel id="aqi" typeId="Aqi"/>
<channel id="pm_01" typeId="Pm_01"/>
<channel id="pm_25" typeId="Pm_25"/>
<channel id="pm_10" typeId="Pm_10"/>
<channel id="temperature" typeId="Temperature"/>
<channel id="timestamp" typeId="Timestamp"/>
<channel id="used_memory" typeId="Used_memory"/>
@@ -90,6 +92,20 @@
<state readOnly="true" pattern="%.1f %unit%"/>
</channel-type>
<channel-type id="Pm_10">
<item-type>Number:Density</item-type>
<label>PM10</label>
<description>PM10 level, µg/m&#179;(Only in Pro version)</description>
<state readOnly="true" pattern="%.1f %unit%"/>
</channel-type>
<channel-type id="Pm_01">
<item-type>Number:Density</item-type>
<label>PM0.1</label>
<description>PM0.1 level, µg/m&#179;(Only in Pro version)</description>
<state readOnly="true" pattern="%.1f %unit%"/>
</channel-type>
<channel-type id="Temperature">
<item-type>Number:Temperature</item-type>
<label>Temperature</label>