Skip to content

Commit

Permalink
Added sensor CO (was omitted in API description, but data is available)
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelio1 committed Feb 4, 2021
1 parent 99cd64a commit 9daeb9f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -357,14 +357,15 @@ public void run() {
JsonElement decEl = gson.fromJson(jsonAnswer, JsonElement.class);
if (decEl != null) {
JsonObject decObj = decEl.getAsJsonObject();
logger.trace("air-Q - airqHandler - run(): decObj={}", decObj);
logger.debug("air-Q - airqHandler - run(): decObj={}", decObj);
processType(decObj, "bat", "bat", "pair");
processType(decObj, "cnt0_3", "cnt0_3", "pair");
processType(decObj, "cnt0_5", "cnt0_5", "pair");
processType(decObj, "cnt1", "cnt1", "pair");
processType(decObj, "cnt2_5", "cnt2_5", "pair");
processType(decObj, "cnt5", "cnt5", "pair");
processType(decObj, "cnt10", "cnt10", "pair");
processType(decObj, "co", "co", "pair");
processType(decObj, "co2", "co2", "pair");
processType(decObj, "dewpt", "dewpt", "pair");
processType(decObj, "humidity", "humidity", "pair");
Expand Down Expand Up @@ -623,7 +624,7 @@ public void run() {
JsonElement decEl = gson.fromJson(jsonAnswer, JsonElement.class);
if (decEl != null) {
JsonObject decObj = decEl.getAsJsonObject();
logger.trace("air-Q - airqHandler - processConfigData(): decObj={}", decObj);
logger.debug("air-Q - airqHandler - processConfigData(): decObj={}", decObj);
processType(decObj, "Wifi", "Wifi", "boolean");
processType(decObj, "WLANssid", "WLANssid", "arr");
processType(decObj, "pass", "pass", "string");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<channel id="cnt2_5" typeId="cnt2_5"/>
<channel id="cnt5" typeId="cnt5"/>
<channel id="cnt10" typeId="cnt10"/>
<channel id="co" typeId="co"/>
<channel id="co2" typeId="co2"/>
<channel id="dCO2dt" typeId="dco2dt"/>
<channel id="dHdt" typeId="dhdt"/>
Expand Down Expand Up @@ -53,6 +54,7 @@
<channel id="cnt2_5_maxerr" typeId="cnt2_5_maxerr"/>
<channel id="cnt5_maxerr" typeId="cnt5_maxerr"/>
<channel id="cnt10_maxerr" typeId="cnt10_maxerr"/>
<channel id="co_maxerr" typeId="co_maxerr"/>
<channel id="co2_maxerr" typeId="co2_maxerr"/>
<channel id="dewpt_maxerr" typeId="dewpt_maxerr"/>
<channel id="humidity_maxerr" typeId="humidity_maxerr"/>
Expand Down Expand Up @@ -207,12 +209,18 @@ also sends data from other devices (then with another Device ID)
<state readOnly="true" pattern="%.0f"></state>
</channel-type>

<channel-type id="co2" advanced="false">
<channel-type id="co" advanced="false">
<item-type>Number</item-type>
<label>CO2 Concentration</label>
<state readOnly="true" pattern="%.0f ppm"></state>
<label>CO Concentration</label>
<state readOnly="true" pattern="%.0f mg/m³"></state>
</channel-type>

<channel-type id="co2" advanced="false">
<item-type>Number</item-type>
<label>CO2 Concentration</label>
<state readOnly="true" pattern="%.0f ppm"></state>
</channel-type>

<channel-type id="dco2dt" advanced="false">
<item-type>Number</item-type>
<label>Change of CO2 Concentr.</label>
Expand Down

0 comments on commit 9daeb9f

Please sign in to comment.