Open Goose66 opened 9 months ago
yes, that's why you need to change the relevant lines for your setup
Ok. In case it's helpful for future users, here are the changes we made to the r24d.be file:
var topic = tasmota.cmd('Status ', true)['Status']['Topic']
we added the following line:
var fulltopic = tasmota.cmd('FullTopic ', true)['FullTopic']
var pubtopic =
to build from the fulltopic. E.g., we changed:
var pubtopic = "stat/" + topic + "/CONFIG"
to:
var pubtopic = string.replace(string.replace(fulltopic, "%topic%", topic), "%prefix%", "stat") + "CONFIG"
MQTT messages are being published without considering the configured "Full Topic". For example, in the R24D driver, in parse_config() method, the topic for the CONFIG messages is built like this:
resulting in messages published to "stat/\<device ID>/CONFIG". But if the full topic is configured to, e.g., "tasmota/%prefix%/%topic%", then any listeners for "tasmota/stat/\<device ID>/CONFIG" messages will not receive the messages.