openshwprojects / OpenBK7231T_App

Open source firmware (Tasmota/Esphome replacement) for BK7231T, BK7231N, BL2028N, T34, XR809, W800/W801, W600/W601, BL602 and LN882H
https://openbekeniot.github.io/webapp/devicesList.html
1.49k stars 279 forks source link

Is it a Bug? additional 'tele' messages get generated when switch state is published via MQTT #1404

Open jkwim opened 1 month ago

jkwim commented 1 month ago

Describe the bug I have used TasTeleInterval 10 60 to control tele message interval to 60 seconds.

tele messages get generated at 60 seconds intervals.

Additionally tele messages get generated every time when Switch/Relay status gets published.

eg: Info:MQTT:Publishing val 0 to openbk7231N/1/get retain=1

Is this the expected behavior or is it a bug?

Firmware:

To Reproduce Logs:

$ nc 192.168.1.114 9000 | awk '/val \(37|val 0/ {print(strftime(), $0)}'
Mon Oct 28 15:11:37 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:11:37 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0

Mon Oct 28 15:11:38 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:11:38 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/1/get retain=1
Mon Oct 28 15:11:38 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:11:39 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:11:39 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:11:39 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/2/get retain=1
Mon Oct 28 15:11:39 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:11:39 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:11:40 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:11:40 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/3/get retain=1
Mon Oct 28 15:11:40 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:11:41 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:11:41 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/4/get retain=1
Mon Oct 28 15:11:41 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0

Mon Oct 28 15:12:39 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:12:39 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0

Mon Oct 28 15:12:51 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:12:51 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:12:52 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:12:52 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/1/get retain=1
Mon Oct 28 15:12:52 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:12:53 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:12:53 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/2/get retain=1
Mon Oct 28 15:12:53 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:12:54 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:12:54 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/3/get retain=1
Mon Oct 28 15:12:54 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:12:55 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:12:55 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/4/get retain=1
Mon Oct 28 15:12:55 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0

Mon Oct 28 15:13:39 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:13:39 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0

Mon Oct 28 15:14:05 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:14:05 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:14:06 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:14:06 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/1/get retain=1
Mon Oct 28 15:14:06 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:14:07 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:14:07 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/2/get retain=1
Mon Oct 28 15:14:07 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:14:08 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:14:08 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/3/get retain=1
Mon Oct 28 15:14:08 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:14:09 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:14:09 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/4/get retain=1
Mon Oct 28 15:14:09 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0

Mon Oct 28 15:14:39 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:14:39 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0

Mon Oct 28 15:15:19 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:15:19 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:15:20 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:15:20 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/1/get retain=1
Mon Oct 28 15:15:20 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:15:21 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:15:21 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/2/get retain=1
Mon Oct 28 15:15:21 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:15:22 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:15:22 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/3/get retain=1
Mon Oct 28 15:15:22 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:15:23 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:15:23 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/4/get retain=1
Mon Oct 28 15:15:23 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0

Mon Oct 28 15:15:39 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:15:39 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0

Mon Oct 28 15:16:33 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:16:33 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:16:34 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:16:34 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/1/get retain=1
Mon Oct 28 15:16:34 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:16:35 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:16:35 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/2/get retain=1
Mon Oct 28 15:16:35 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:16:36 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:16:36 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/3/get retain=1
Mon Oct 28 15:16:36 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:16:37 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:16:37 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/4/get retain=1
Mon Oct 28 15:16:37 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0

Mon Oct 28 15:16:39 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:16:39 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0

Mon Oct 28 15:17:39 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:17:39 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0

Mon Oct 28 15:17:47 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:17:47 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:17:48 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:17:48 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/1/get retain=1
Mon Oct 28 15:17:48 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:17:49 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:17:49 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/2/get retain=1
Mon Oct 28 15:17:49 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:17:50 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:17:50 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/3/get retain=1
Mon Oct 28 15:17:50 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:17:51 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:17:51 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/4/get retain=1
Mon Oct 28 15:17:51 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0

Mon Oct 28 15:18:39 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:18:39 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0

Mon Oct 28 15:19:01 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:19:01 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:19:02 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:19:02 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/1/get retain=1
Mon Oct 28 15:19:02 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:19:03 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:19:03 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/2/get retain=1
Mon Oct 28 15:19:03 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:19:04 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:19:04 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/3/get retain=1
Mon Oct 28 15:19:04 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:19:05 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:19:05 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/4/get retain=1
Mon Oct 28 15:19:05 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0

Mon Oct 28 15:19:39 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:19:39 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0

Mon Oct 28 15:20:15 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:20:15 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:20:16 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:20:16 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/1/get retain=1
Mon Oct 28 15:20:16 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:20:17 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:20:17 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/2/get retain=1
Mon Oct 28 15:20:17 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:20:18 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:20:18 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/3/get retain=1
Mon Oct 28 15:20:18 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:20:19 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:20:19 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/4/get retain=1
Mon Oct 28 15:20:19 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0

Mon Oct 28 15:20:39 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:20:39 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0

Mon Oct 28 15:21:29 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:21:29 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:21:30 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:21:30 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/1/get retain=1
Mon Oct 28 15:21:30 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:21:31 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:21:31 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/2/get retain=1
Mon Oct 28 15:21:31 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:21:32 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:21:32 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/3/get retain=1
Mon Oct 28 15:21:32 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
Mon Oct 28 15:21:33 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:21:33 +0530 2024 Info:MQTT:Publishing val 0 to openbk7231N/4/get retain=1
Mon Oct 28 15:21:33 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0

Mon Oct 28 15:21:39 +0530 2024 Info:MQTT:Publishing val (373 bytes) to tele/openbk7231N/STATE retain=0
Mon Oct 28 15:21:39 +0530 2024 Info:MQTT:Publishing val (373 bytes) to stat/openbk7231N/RESULT retain=0
openshwprojects commented 4 weeks ago

This might have been introduced to make sure that all meaurements are sent up to date, I can't see how it can hurt. Is it a problem in some use cases? I can try to look into it soon, but I'm not sure.