Klipper / Moonraker & Tuya smart plugs

So with everything I’m doing with my 3D printer, I thought it would be a nice idea to get some smart plugs to integrate with Moonraker so that I can remotely control the printer’s power, and also a light when it eventually arrives.

Unfortunately, the smart plugs I got are Tuya/Smart Life based, which Moonraker doesn’t support. But Moonraker does support a generic http interface for controlling smart devices.

So I wrote the Moonraker Tuya Generic HTTP Server.

1 Like

Fwiw (via home assistant)

Yep. I’m not using home assistant anymore. I repurposed the Pi to run Mainsail/Klipper. I wasn’t really doing anything worthwhile with HA.