No matter how I try to configure the interval parameters, I can’t get the refresh interval to match Tasmota for the same device ( Xiaomi LYWSD03MMC temp-hum sensor)
see graph below - Yellow dots are Tasmota, Green : openmqttgateway
Are you using the stock firmware with the LYWSD03MMC ?
If yes OMG retrieve the data by a connection and even if you have intervalcnct at 5s, retrieving data with a connection is less easy than broadcasting.
I would advise to change the LYWSD03MMC firmware with PVVX one. You will get a better battery life.
If you already use an alternative firmware, could you detail the version and configuration options?
would you have any recommendations regarding my omg configuration/parameters above? All scan modes are set below 5 second so what would explain it only captures a fraction of the updates every 5minutes?
Will try the pvvx upgrade but would like to identify the root cause of this.
Ok, looking better already, but not quite what you’re expecting.
Could you do a few more adjustments to your setting?
Initially, can you set
As the LYWSD03MMC do not require active scanning you can set
just for testing to only scan actively every 5 minutres - I don’t know what other sensors you might have which require active scanning.
Then for a more frequent passive scanning you can keep
This should give you a reading every 6 seconds.
Could you also monitor the LYWSD03MMC in MQTT Explorer History for the device. Just to see if there are possibly some undecoded messages in between the decoded ones, in a format which we do not currently decode. What are the reading intervals in parenthesis in the History?
Other than that I am also not sure of some of the PVVX settings you showed above when installing it. Were those the default suggested settings?
Intervalcnt set to 3600000
Doesn’t look too bad.
I think the extra resolution on the tasmota side comes from the fact that I have a secondary esp32 outdoors which probably feeds additional data from the same sensor.
Can I do the same with OMG, IE: have multiple ESP32 publish to the same topic?