I have finally found something that works for me so that I can use the Tellstick Duos that I have around my house and cabin (I bought a bunch of them cheap when they were going out of style, so quite some years ago). This Docker container can be set up with whatever MQTT topic you want, so it's usable with Node-RED too, not just Home Assistant:
The only problem is that it sends separate messages for humidity and temperature, so my old node making it into the format I would like it in (it's sent to a webpage for display) does not work. This is the code I use in the function node:
var id = msg.topic.split('/');
var tmp = msg.payload.temperature;
var hum = msg.payload.humidity;
msg.payload = id+','+tmp+','+hum;
But then there are separate messages for humitidy and temperature, here's one with the ID 167, they come within milliseconds of each other:
In addition to that the mesages come three times each, and I have not found , I get messages out like this, with the humidity:
And one with temperature from the same sensor:
So two things, first remove the extra sends and then combine the two messages into one. I have looked at the filter node, but it seems like that can't filter out same messages within x seconds, only filter out changes. I would like the mesages to come in each time the sensor sends, not just when it changes.
Here's a screenshot of two of the raw messages, if that helps:
And here it's shown that it sends three times:
And then there's one thing: Some of the sensors do not have humidity, only temperature. So I hope it can be done so they send the temp, without waiting for humidity that never comes.