jneilliii / OctoPrint-TasmotaMQTT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GCODE ON/OFF commands don't support single relay

paran0ic opened this issue · comments

Hello!

in line 168 (octoprint_tasmota_mqtt/init.py) condition:
if cmd.startswith("M8") and cmd.count(" ") >= 2:

not accept mqtt command for single relay:
M81 sonoff-basic

Add a 1 to the end of your gcode command.

My apologies, this is a bug. I updated the logic on my other tasmota web based plugin not this one. I'll review and post an update this weekend.