A lightweight algorithm to detect energy consumption attacks on smart home devices by monitoring their packet reception rates across different protocols.