Skip to content

Commit

Permalink
Fix SGP4 domoticz air quality (#18880)
Browse files Browse the repository at this point in the history
  • Loading branch information
arendst committed Apr 11, 2024
1 parent 1b5fdb5 commit e98ce29
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tasmota/tasmota_xsns_sensor/xsns_109_sgp4x.ino
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,9 @@ void Sgp4xShow(bool json)
}
ResponseJsonEnd();
#ifdef USE_DOMOTICZ
if (0 == TasmotaGlobal.tele_period) DomoticzSensor(DZ_AIRQUALITY, srawVoc);
if (0 == TasmotaGlobal.tele_period) {
DomoticzSensor(DZ_AIRQUALITY, voc_index_sgp4x);
}
#endif // USE_DOMOTICZ
#ifdef USE_WEBSERVER
} else {
Expand Down
4 changes: 3 additions & 1 deletion tasmota/tasmota_xsns_sensor/xsns_98_sgp40.ino
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ void Sgp40Show(bool json)
}
ResponseJsonEnd();
#ifdef USE_DOMOTICZ
if (0 == TasmotaGlobal.tele_period) DomoticzSensor(DZ_AIRQUALITY, raw_base);
if (0 == TasmotaGlobal.tele_period) {
DomoticzSensor(DZ_AIRQUALITY, voc_index);
}
#endif // USE_DOMOTICZ
#ifdef USE_WEBSERVER
} else {
Expand Down

0 comments on commit e98ce29

Please sign in to comment.