A total of 144+r
ZigBee messages are sent from the smart socket to home
gateway in a day, where 144 is the number of time periods
in a day and r is the times of the aperiodic control command
sent by home gateway to control the state of the smart socket
also in a day