krikk/Hiking-DDS238-2-WIFI-Din-Rail-Energy-Meter-flashing-Tasmota

Suppressing mqtt messages

Closed this issue · 2 comments

Hi,
I have installed tasmota 11.0.0 on my 3x DDS238, and just from the one I have connected up I am getting mqtt messages continually, so with all 3 connected I am thinking they will block out all other mqtt messages.

Is the a way to suppress the amount of mqtt messages from TuyaReceived ?

I have read the documentation on TuyaMCU here https://tasmota.github.io/docs/TuyaMCU/ but not sure what I am doing and don't want to stuff it up.

What I would like is to get a message at boot and then one every 60 seconds about power usage, and when the device is turned off an on, and the state of the device (on/off) every minute.

At the moment my pi is getting so many mqtt messages from the one DDS238 that I am not get all messages from other sensors,

I have tried with:
Rule1 on System#Boot do RuleTimer1 5 endon on Rules#Timer=1 do backlog TuyaSend8; RuleTimer1 60 endon
and this
Rule1 on System#Boot do RuleTimer1 60 endon on Rules#Timer=1 do backlog TuyaSend8; RuleTimer1 60 endon
Both the above didn't seem to do anything.

Below is a snapshot of what I get in less than 2 seconds.

08:35:01 - tele/tasmota_09C676/RESULT {"TuyaReceived":{"Data":"55AA030000010104","Cmnd":0,"CmndData":"01"}}
08:35:08 - tele/tasmota_09C676/RESULT {"TuyaReceived":{"Data":"55AA03070008120200040000000029","Cmnd":7,"CmndData":"1202000400000000","DpType2Id18":0,"18":{"DpId":18,"DpIdType":2,"DpIdData":"00000000"}}}
08:35:09 - tele/tasmota_09C676/RESULT {"TuyaReceived":{"Data":"55AA0307000813020004000000002A","Cmnd":7,"CmndData":"1302000400000000","DpType2Id19":0,"19":{"DpId":19,"DpIdType":2,"DpIdData":"00000000"}}}
08:35:10 - tele/tasmota_09C676/RESULT {"TuyaReceived":{"Data":"55AA0307000814020004000009A5D9","Cmnd":7,"CmndData":"14020004000009A5","DpType2Id20":2469,"20":{"DpId":20,"DpIdType":2,"DpIdData":"000009A5"}}}
08:35:11 - tele/tasmota_09C676/RESULT {"TuyaReceived":{"Data":"55AA03070008650200040000000A86","Cmnd":7,"CmndData":"650200040000000A","DpType2Id101":10,"101":{"DpId":101,"DpIdType":2,"DpIdData":"0000000A"}}}
08:35:12 - tele/tasmota_09C676/RESULT {"TuyaReceived":{"Data":"55AA030000010104","Cmnd":0,"CmndData":"01"}}
08:35:23 - tele/tasmota_09C676/RESULT {"TuyaReceived":{"Data":"55AA030000010104","Cmnd":0,"CmndData":"01"}}
08:35:34 - tele/tasmota_09C676/RESULT {"TuyaReceived":{"Data":"55AA030000010104","Cmnd":0,"CmndData":"01"}}
08:35:38 - tele/tasmota_09C676/RESULT {"TuyaReceived":{"Data":"55AA03070008120200040000000029","Cmnd":7,"CmndData":"1202000400000000","DpType2Id18":0,"18":{"DpId":18,"DpIdType":2,"DpIdData":"00000000"}}}
08:35:39 - tele/tasmota_09C676/RESULT {"TuyaReceived":{"Data":"55AA0307000813020004000000002A","Cmnd":7,"CmndData":"1302000400000000","DpType2Id19":0,"19":{"DpId":19,"DpIdType":2,"DpIdData":"00000000"}}}
08:35:40 - tele/tasmota_09C676/RESULT {"TuyaReceived":{"Data":"55AA0307000814020004000009A5D9","Cmnd":7,"CmndData":"14020004000009A5","DpType2Id20":2469,"20":{"DpId":20,"DpIdType":2,"DpIdData":"000009A5"}}}
08:35:41 - tele/tasmota_09C676/RESULT {"TuyaReceived":{"Data":"55AA03070008650200040000000A86","Cmnd":7,"CmndData":"650200040000000A","DpType2Id101":10,"101":{"DpId":101,"DpIdType":2,"DpIdData":"0000000A"}}}
08:35:45 - tele/tasmota_09C676/RESULT {"TuyaReceived":{"Data":"55AA030000010104","Cmnd":0,"CmndData":"01"}}
08:35:56 - tele/tasmota_09C676/RESULT {"TuyaReceived":{"Data":"55AA030000010104","Cmnd":0,"CmndData":"01"}}
08:36:07 - tele/tasmota_09C676/RESULT {"TuyaReceived":{"Data":"55AA030000010104","Cmnd":0,"CmndData":"01"}}
08:36:08 - tele/tasmota_09C676/RESULT {"TuyaReceived":{"Data":"55AA03070008120200040000000029","Cmnd":7,"CmndData":"1202000400000000","DpType2Id18":0,"18":{"DpId":18,"DpIdType":2,"DpIdData":"00000000"}}}
08:36:09 - tele/tasmota_09C676/RESULT {"TuyaReceived":{"Data":"55AA0307000813020004000000002A","Cmnd":7,"CmndData":"1302000400000000","DpType2Id19":0,"19":{"DpId":19,"DpIdType":2,"DpIdData":"00000000"}}}
08:36:10 - tele/tasmota_09C676/RESULT {"TuyaReceived":{"Data":"55AA0307000814020004000009A5D9","Cmnd":7,"CmndData":"14020004000009A5","DpType2Id20":2469,"20":{"DpId":20,"DpIdType":2,"DpIdData":"000009A5"}}}
08:36:11 - tele/tasmota_09C676/RESULT {"TuyaReceived":{"Data":"55AA03070008650200040000000A86","Cmnd":7,"CmndData":"650200040000000A","DpType2Id101":10,"101":{"DpId":101,"DpIdType":2,"DpIdData":"0000000A"}}}
08:36:18 - tele/tasmota_09C676/RESULT {"TuyaReceived":{"Data":"55AA030000010104","Cmnd":0,"CmndData":"01"}}
08:36:29 - tele/tasmota_09C676/RESULT {"TuyaReceived":{"Data":"55AA030000010104","Cmnd":0,"CmndData":"01"}}
08:36:38 - tele/tasmota_09C676/RESULT {"TuyaReceived":{"Data":"55AA03070008120200040000000029","Cmnd":7,"CmndData":"1202000400000000","DpType2Id18":0,"18":{"DpId":18,"DpIdType":2,"DpIdData":"00000000"}}}
08:36:39 - tele/tasmota_09C676/RESULT {"TuyaReceived":{"Data":"55AA0307000813020004000000002A","Cmnd":7,"CmndData":"1302000400000000","DpType2Id19":0,"19":{"DpId":19,"DpIdType":2,"DpIdData":"00000000"}}}
08:36:40 - tele/tasmota_09C676/RESULT {"TuyaReceived":{"Data":"55AA030000010104","Cmnd":0,"CmndData":"01"}}
08:36:40 - tele/tasmota_09C676/RESULT {"TuyaReceived":{"Data":"55AA0307000814020004000009A4D8","Cmnd":7,"CmndData":"14020004000009A4","DpType2Id20":2468,"20":{"DpId":20,"DpIdType":2,"DpIdData":"000009A4"}}}
08:36:41 - tele/tasmota_09C676/RESULT {"TuyaReceived":{"Data":"55AA03070008650200040000000A86","Cmnd":7,"CmndData":" 650200040000000A","DpType2Id101":10,"101":{"DpId":101,"DpIdType":2,"DpIdData":"0000000A"}}}
08:36:51 - tele/tasmota_09C676/RESULT {"TuyaReceived":{"Data":"55AA030000010104","Cmnd":0,"CmndData":"01"}}

I have reset the DDS238 and instead of the console command:

Backlog` SetOption72 1; SetOption66 1; VoltRes 1; WattRes 1;

I removed out the "SetOption66 1;" and that has gotten rid of all the unwanted messages, and now I only get an update every 5 minutes with the below comand.

Backlog` SetOption72 1; VoltRes 1; WattRes 1;

I had tried before resetting, but it didn't do anything.
Is there any adverse effect for leaving out "SetOption66 1;"

So now I just want to change the interval of of SENSOR message with power consumption etc to 1 min, how can I do this ?

krikk commented

see here: https://tasmota.github.io/docs/Commands/
SetOption66: Set publishing TuyaReceived to MQTT

so yes you can disable this

intervall of sensor messages:
TelePeriod 60

changes this...