Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jkwim opened this issue Oct 28, 2024 · 1 comment

Comments

@jkwim
Copy link

jkwim commented Oct 28, 2024

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:

  • Version 1.17.756
  • Device: DS-101JL 4Gang Wall Switch
  • Chip/model: BK7231N
  • Device config:

Flags (Current value=1075840004)
Flag 2 - [MQTT] Broadcast self state every N (def: 60) seconds (delay configurable by 'mqtt_broadcastInterval' and 'mqtt_broadcastItemsPerSec' commands)
Flag 10 - [MQTT] Broadcast self state on MQTT connect
Flag 21 - [MQTT] Retain power channels (Relay channels, etc)
Flag 30 - [MQTT] Enable Tasmota TELE etc publishes (for ioBroker etc)

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants