Controlling a tuya smart plug from the command line

Background

I have a hybrid home automation system that includes some old X10 devices, Philips hue devices, wemo devices, and tp-link devices. Part of the system is some software that emulates a Philips hue bridge (ha-bridge) that lets me control devices by running linux programs and scripts. This lets me use old X10 radio frequency controllers and motion detectors in my home automation. So far this has worked great.

Continue reading “Controlling a tuya smart plug from the command line”