I’m currently working on a project in which I want to react to some MQTT text sensors (display on a display) and install this project in multiple instances. I thought to myself that it would be great if you could easily set the MQTT topic name via the web interface of the installed devices. I’ve now tried that, with the text component I manage to enter a topic name in the web interface and save it in a global variable, but I can’t set or change the topic in the sensor. All attempts fail because a set_topic command is not available, which I e.g. could use in a lambda. But maybe I’m just being stupid
Since there are over 10 topics in my project that I need to adjust in some devices, it would be really great if I could find a solution for this. I hope I was able to explain well enough what I’m trying to do
That’s my problem, that it doesn’t work and I would like a solution for it. Since I couldn’t find a solution to this on my own, I asked the question here in the forum with the hope that someone could help me.