DaveMDS / node-red-contrib-tasmota

Tasmota devices for NodeRed
MIT License
23 stars 9 forks source link

Custom MQTT full topic #2

Closed kumy closed 4 years ago

kumy commented 4 years ago

The Tasmota firmware/documentation allow us to create full topics such as:

Unfortunately this node has only 2 predefined templates %prefix%/%topic%/ %topic%/%prefix%/.

May you please allow us to define our custom FullTopic in advanced configuration?

Thanks :)

kumy commented 4 years ago

As a workaround I've overridden topic prefixes as: tasmota/bedroom/cmnd tasmota/bedroom/stat tasmota/bedroom/tele

I hope it'll work

DaveMDS commented 4 years ago

Indeed, that config need to be a free string, and real susbstitution need to be done. working on it right now...

DaveMDS commented 4 years ago

OK, I made a new release (0.9.1) that accept a free string as full-topic, in the same format as in Tasmota (replace "%topic%" and "%prefix%"), now I think you can now make any possible combination :) Can you please update and test?

kumy commented 4 years ago

Seems to work nicely :) Thanks!!!

DaveMDS commented 4 years ago

Great ! Thanks for reporting and testing :)