The Node send mqtt LWT (last will) simply comes after a time in mqtt that it is offline although this is not the case.
If I lock in and trigger a debung to get a takeover afterwards, the LWT is up to date online again.
Here I do not understand why mqtt does not maintain the LWT, especially since every second the Cerbo node_red is sent via mqtt ( other MQTT server) values
Are there better settings for Retain and QoS than the default ones?
I am using Node.-Red v3.1.5 with the built in mqtt. (preinstalled on a Victron Cerbo device)
A function node is sending every second a payload to the mqtt out node to send it to a mosquito mqqt broker running on a raspberry
Just on my version it is more like Messages not news. (Lost in translation?)
Oh, sorry. My mistake. I wasn't looking on the BROKER machine.
Yes, that looks ok.
Interesting your Birth Certificate is set to qos 1.
But you are talking about the LWT.
(I like how some messages are in German and some in English.) Sorry, just saying.
I'll start with the language mix. I received an IoT as a gift when I was still at the very beginning and was happy that something lit up. Then I never changed it and the howl environment has grown.
Yes, it's mqtt out node and “Nachrichten” are messages.
Nachrichten bei Verbindungsaufbau = birth message and that works . I have adjusted retain and QoS to your values.
The cut off part of picture one I have never seen before and it is by default set to “Bei allen Flows” which translates to all flows.
I can translate with "use clean session" only so delete all MQTT to target MQTT 160 and redo?
Is that correct? I haven't done that yet.
This is what I am using in this Flow:
Getting Infos from Victron Nodes and from Victron MQTT, filtering and formatting, then send it to MQTT Server
At first I had no MQTT read and send to MQTT. I did this to reduce the traffic and the entries in the database. There is no way to tell a mqtt in node to fetch a value only every second. The NodeRed, MQTT and all other Victron features are pre-installed on the Cerbo GX by the manufacturer Victron. you can do all this in this device without any loss of performance.
To the last question, how often it happens, I am trying to find out. I send a time stamp to the MQTT server every minute. It feels like it happens every 2 days if I don't do anything to the NodeRed systems