diff --git a/tasmota/xsns_01_counter.ino b/tasmota/xsns_01_counter.ino index 8ed615c86..c664ff811 100644 --- a/tasmota/xsns_01_counter.ino +++ b/tasmota/xsns_01_counter.ino @@ -150,6 +150,9 @@ void CounterShow(bool json) ResponseAppend_P(PSTR(",\"COUNTER\":{")); } ResponseAppend_P(PSTR("%s\"C%d\":%s"), (header)?",":"", i +1, counter); + if ((0 == tele_period ) && (Settings.flag3.counter_reset_on_tele)) { + RtcSettings.pulse_counter[i] = 0; + } header = true; #ifdef USE_DOMOTICZ if ((0 == tele_period) && (1 == dsxflg)) {