jneilliii / OctoPrint-TasmotaMQTT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: configured MQTT topic

paran0ic opened this issue · comments

MQTT topic is hardcoded as %topic%/%prefix%/

It is possible to add configuration setting to use custom topic? For example I use: switches/%prefix%/%topic%/. I changed it in local code, because my all other "SmartHome" solutions using this topic format.

This will require a good amount of updating to the code to get to work. I will consider the change.

To add my config, I have multiple sonoffs in the house, and the one for the printer has following topics:

tasmota/stat/sonoff-prusa/POWER

with "sonoff-prusa" being the name that I configured in the UI of your plugin.

Works great now, thank you 👍