code: def set_power_mask(self, sid_mask, state):
      
  
      packet = bytearray(16)
      packet[0x00] = 0x0d
      packet[0x02] = 0xa5
      packet[0x03] = 0xa5
      packet[0x04] = 0x5a
      packet[0x05] = 0x5a
      packet[0x06] = 0xb2 + ((sid_mask<<1) if state else sid_mask)
      packet[0x07] = 0xc0
      packet[0x08] = 0x02
      packet[0x0a] = 0x03
      packet[0x0d] = sid_mask
      packet[0x0e] = sid_mask if state else 0
  
      response = self.send_packet(0x6a, packet)
  
      err = response[0x22] | (response[0x23] << 8)
docs: Sets the power state of the smart power strip.