From e98ce29fea62ab72d8b1c759b49ae70cfb4410fd Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Thu, 11 Apr 2024 15:35:00 +0200 Subject: [PATCH] Fix SGP4 domoticz air quality (#18880) --- tasmota/tasmota_xsns_sensor/xsns_109_sgp4x.ino | 4 +++- tasmota/tasmota_xsns_sensor/xsns_98_sgp40.ino | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tasmota/tasmota_xsns_sensor/xsns_109_sgp4x.ino b/tasmota/tasmota_xsns_sensor/xsns_109_sgp4x.ino index 64b1c65a2..058b843af 100644 --- a/tasmota/tasmota_xsns_sensor/xsns_109_sgp4x.ino +++ b/tasmota/tasmota_xsns_sensor/xsns_109_sgp4x.ino @@ -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 { diff --git a/tasmota/tasmota_xsns_sensor/xsns_98_sgp40.ino b/tasmota/tasmota_xsns_sensor/xsns_98_sgp40.ino index c72794912..da0825de9 100644 --- a/tasmota/tasmota_xsns_sensor/xsns_98_sgp40.ino +++ b/tasmota/tasmota_xsns_sensor/xsns_98_sgp40.ino @@ -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 {