Read the statement by Michael Teeuw here.
Problem with MM-MQTT module
-
To receive MQTT messages I use Otto Paulsen’s MM-MQTT Module (https://github.com/ottopaulsen/MMM-MQTT) and that is nice software. Unfortunately, there is a problem, the output seems to be refreshed every 5 seconds, so that the text in question flashes briefly every time.
I have created an issue on Paul’s GitHub page about this, but unfortunately no answer after a few months of waiting. Does anyone know what could be the cause? Please let me know.
This is my code in config.js:
{ module: 'MMM-MQTT', position: 'bottom_right', header: 'ELEKTRA\xa0', config: { logging: false, useWildcards: false, mqttServers: [ { address: '192.168.2.155', port: '1883', subscriptions: [ { topic: 'MM/Accu/Lader1', label: 'Acculader 1', broadcast: false, }, { topic: 'MM/Accu/Lader2', label: 'Acculader 2', broadcast: false, }, { topic: 'Energie/power_delivered', label: 'Verbruik', suffix: 'kWh', broadcast: false, } ] } ], } },
-
@MM-Hans is the send side sending info every 5 seconds?
-
@sdetweil
No Sam, both MM/Accu/ topics send every 5 minutes and Energy topic every 2.5 minute. -
@MM-Hans there should be messages posted to the log for every mqtt message received
and in the developers window, ctrl-shift-i on the keyboard and select the console tab and put part of the module name in the filter field
-
@sdetweil
I forgot to mention that my mirror runs on a Raspberry Pi CM4 (in a Waveshare Magic Mirror). In the terminal (SSH) I can view logs with “pm2 log mm” but do not see any relevant details. CTRL-Shift-I doesn’t work if the software runs on a Raspberry, or am I mistaken?I just got a message from Otto Paulsen, the creator of the module, and he hadn’t heard of this problem yet. That would mean it has nothing to do with the module.
-
In general, “\xa0” can be used to add a space to the header, which works fine with all the modules I use. Unfortunately, that causes the mentioned problem with the MMM-MQTT module.
As soon as I remove “\xa0” the problem is solved and the module works properly. I know, it’s strange and I can’t explain it, but it’s what I see happening in my setup.