diff --git a/bthome_phy6222/web/PHY62x2BTHome.html b/bthome_phy6222/web/PHY62x2BTHome.html
index 3cef18b..b6c2171 100644
--- a/bthome_phy6222/web/PHY62x2BTHome.html
+++ b/bthome_phy6222/web/PHY62x2BTHome.html
@@ -1606,7 +1606,7 @@ function setTrgCfg() {
if(len > 0) {
let blk = new Uint8Array(len + 1);
blk[0] = 0x44;
- let idx = 0;
+ let idx = 1;
if(len != 9) {
devtrg.temp_min = Math.round($("inputTempMin").value * 100);
devtrg.temp_max = Math.round($("inputTempMax").value * 100);