diff --git a/tasmota/tasmota_xsns_sensor/xsns_109_sgp4x.ino b/tasmota/tasmota_xsns_sensor/xsns_109_sgp4x.ino index 64b1c65a2748..058b843afb34 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 c7279491239d..da0825de9314 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 {