jneilliii / OctoPrint-TasmotaMQTT

18 stars 16 forks source link

Can't seem to get it to work right #52

Closed AussieMakerGeek closed 3 years ago

AussieMakerGeek commented 3 years ago

Hi, I can't seem to get this to work

I have installed the Octoprint MQTT plugin and the TasmotaMQTT plugin.

I have configured the fulltopic and topic entries as per the instructions and i am using a single relay Tasmota device.

Fulltopic: ha/mod/%topic%/ (as in tasmota) Topic: BB3CBE

2021-03-02_10h56_24 2021-03-02_10h56_43

When I click on the icon, it sends: ha/mod/BB3CBE/POWER (as in, it does not send any data to the topic) it will do this regardless of the amount of times I click the icon.

Then if I manually turn on the device through the tasmota interface, the plugin then seems to recognize the state (icon goes green) but then clicking on it, it sends: ha/mod/BB3CBE/POWER ON (or OFF)

not: ha/mod/BB3BCE/cmnd/POWER ON (or OFF)

So it does not actually command the switch on.

If I change the Fulltopic to include cmnd then it works as expected but then after a reboot of the pi it does not.

What am I missing?

jneilliii commented 3 years ago

Try changing the Full Topic in your Tasmota and the plugin to this...

ha/mod/%prefix%/%topic%/

The default MQTT Full Topic on a clean install I believe is

%prefix%/%topic%/
AussieMakerGeek commented 3 years ago

Close, but I managed to get it working - I changed it on both to: ha/mod/%topic%/%prefix%/ and it worked. Thanks so much!