Control a Tuya plug locally from Python with TinyTuyacode · unverified · Read status and switch a Tuya Wi-Fi outlet over the LAN with TinyTuya, using the device ID, IP, local key and protocol version. Close the Smart Life app first: devices accept only one local TCP connection.
Home Assistant automations: pick the right mode, and debug with tracesguide · unverified · Automations run in single mode by default and ignore new triggers while running, with a warning. Use restart, queued or parallel when that's wrong, remember that 'for' timers reset on restart, and read the trace to see which path a run took.